/*
Theme Name:  Prestige Home Realty
Theme URI:   https://yoursite.com
Author:      Your Name
Author URI:  https://yoursite.com
Description: A luxury real estate theme with full WordPress Customizer support for logo, favicon, colour scheme, and contact details. Includes a homepage page template, header, and footer.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phr
Tags:        real-estate, custom-colors, custom-logo, full-site-editing
*/

/* ══════════════════════════════════════════════
   GLOBAL RESET & BASE
   ══════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Colour tokens (overridden dynamically by Customizer via inline CSS) ── */
  --phr-ink:        #0f1419;
  --phr-ink-soft:   #1e2832;
  --phr-accent:     #b87a4a;   /* "copper" — primary CTA / highlight colour */
  --phr-accent-lt:  #d4956a;   /* lighter tint of accent */
  --phr-stone:      #f4f1ec;   /* warm off-white background */
  --phr-stone-dk:   #e8e3db;   /* slightly darker stone */
  --phr-white:      #ffffff;
  --phr-text:       #2c3540;
  --phr-muted:      #7a8795;
  --phr-line:       #e0dbd4;

  /* ── Typography ── */
  --phr-serif: 'Cormorant Garamond', Georgia, serif;
  --phr-sans:  'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--phr-sans);
  color: var(--phr-text);
  background: var(--phr-white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--phr-sans); }

/* ── WordPress alignment helpers ── */
.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left:  1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--phr-muted); margin-top: 6px; }

/* ── Screen-reader text (accessibility) ── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════
   GLOBAL UTILITY CLASSES
   ══════════════════════════════════════════════ */

.phr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.phr-section-tag {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phr-accent);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phr-section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--phr-accent);
  display: block;
  flex-shrink: 0;
}

.phr-section-h {
  font-family: var(--phr-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 300;
  color: var(--phr-ink);
  line-height: 1.18;
  margin-bottom: 24px;
}
.phr-section-h em { font-style: italic; }

/* ── Shared button styles ── */
.phr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, gap 0.2s, transform 0.15s;
  white-space: nowrap;
}
.phr-btn-solid  { background: var(--phr-ink);    color: var(--phr-white); }
.phr-btn-solid:hover  { background: var(--phr-accent); gap: 14px; }
.phr-btn-accent { background: var(--phr-accent);  color: var(--phr-white); }
.phr-btn-accent:hover { background: var(--phr-accent-lt); transform: translateY(-1px); }
.phr-btn-line   { border: 1px solid var(--phr-ink); color: var(--phr-ink); }
.phr-btn-line:hover   { background: var(--phr-ink); color: var(--phr-white); }
.phr-btn-ghost  {
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.phr-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.phr-btn-white  { background: var(--phr-white);   color: var(--phr-accent); }
.phr-btn-white:hover  { background: var(--phr-ink); color: var(--phr-white); gap: 14px; }
.phr-btn-dark-solid { background: var(--phr-ink); color: var(--phr-white); }
.phr-btn-dark-solid:hover { background: var(--phr-accent); gap: 14px; }

/* ── Image placeholder ── */
.phr-img-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phr-img-ph svg { opacity: 0.25; }

/* ══════════════════════════════════════════════
   UTILITY BAR
   ══════════════════════════════════════════════ */

.phr-util-bar {
  background: var(--phr-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 48px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.phr-util-bar a { color: rgba(255,255,255,0.5); transition: color .2s; }
.phr-util-bar a:hover { color: var(--phr-accent-lt); }
.phr-util-left,
.phr-util-right { display: flex; gap: 22px; align-items: center; }
.phr-util-div { color: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */

.phr-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--phr-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 76px;
}

.phr-logo          { display: flex; align-items: center; gap: 14px; }
.phr-logo-mark {
  width: 42px; height: 42px;
  background: var(--phr-ink);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  flex-shrink: 0;
  overflow: hidden;
}
.phr-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.phr-logo-mark span {
  color: var(--phr-accent-lt);
  font-family: var(--phr-serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.phr-logo-img { height: 44px; width: auto; }
.phr-logo-text { line-height: 1.25; }
.phr-logo-text strong {
  display: block;
  font-family: var(--phr-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--phr-ink);
}
.phr-logo-text em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phr-muted);
}

.phr-nav-links { display: flex; gap: 2px; }
.phr-nav-links a,
.phr-nav-links > li > a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--phr-text);
  padding: 8px 16px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  display: block;
}
.phr-nav-links a:hover,
.phr-nav-links .current-menu-item > a { color: var(--phr-ink); background: var(--phr-stone); }

.phr-nav-right  { display: flex; gap: 10px; align-items: center; }
.phr-nav-sm     { font-size: 0.78rem; color: var(--phr-muted); padding: 6px 10px; transition: color .2s; }
.phr-nav-sm:hover { color: var(--phr-ink); }
.phr-btn-nav {
  background: var(--phr-ink); color: var(--phr-white);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; padding: 9px 22px; border-radius: 3px;
  transition: background .2s;
}
.phr-btn-nav:hover { background: var(--phr-accent); }

/* Hamburger */
.phr-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.phr-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--phr-ink);
  border-radius: 2px;
  transition: all .3s;
}
.phr-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.phr-hamburger.is-open span:nth-child(2) { opacity: 0; }
.phr-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.phr-nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--phr-white);
  border-top: 1px solid var(--phr-line);
  padding: 16px 24px 24px;
  position: fixed;
  top: 76px; left: 0; right: 0;
  box-shadow: 0 8px 32px rgba(15,20,25,0.1);
  z-index: 199;
}
.phr-nav-drawer.open { display: flex; }
.phr-nav-drawer a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--phr-text); padding: 12px 0;
  border-bottom: 1px solid var(--phr-line);
  transition: color .2s;
}
.phr-nav-drawer a:last-child { border-bottom: none; }
.phr-nav-drawer a:hover { color: var(--phr-accent); }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.phr-footer { background: #080d12; }

.phr-footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 72px 64px 48px;
  max-width: 1300px;
  margin: 0 auto;
}

.phr-f-logo        { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.phr-f-logo-mark {
  width: 36px; height: 36px;
  background: var(--phr-accent);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  flex-shrink: 0;
  overflow: hidden;
}
.phr-f-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.phr-f-logo-mark span { color: var(--phr-white); font-family: var(--phr-serif); font-size: 1rem; font-weight: 600; }
.phr-f-logo-img    { height: 36px; width: auto; }
.phr-f-logo-text strong { display: block; font-family: var(--phr-serif); font-size: 0.95rem; color: var(--phr-white); }
.phr-f-logo-text em { font-style: normal; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

.phr-f-desc  { font-size: 0.82rem; line-height: 1.85; color: rgba(255,255,255,0.4); font-weight: 300; margin-bottom: 28px; }
.phr-f-contact { font-size: 0.8rem; line-height: 2.1; color: rgba(255,255,255,0.4); }
.phr-f-contact a { color: rgba(255,255,255,0.4); transition: color .2s; }
.phr-f-contact a:hover { color: var(--phr-accent-lt); }

.phr-f-social      { display: flex; gap: 12px; margin-top: 24px; }
.phr-f-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.4); transition: all .2s;
}
.phr-f-social a:hover { background: var(--phr-accent); border-color: var(--phr-accent); color: var(--phr-white); }

.phr-f-col h4 {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); font-weight: 600;
  margin-bottom: 22px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phr-f-col ul li { margin-bottom: 12px; }
.phr-f-col ul li a {
  font-size: 0.82rem; color: rgba(255,255,255,0.45); font-weight: 300;
  transition: color .2s, padding-left .2s; display: block;
}
.phr-f-col ul li a:hover { color: var(--phr-white); padding-left: 6px; }

.phr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 64px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.25);
  flex-wrap: wrap; gap: 12px;
  max-width: 1300px; margin: 0 auto;
}
.phr-f-legal       { display: flex; gap: 22px; flex-wrap: wrap; }
.phr-f-legal a     { color: rgba(255,255,255,0.25); transition: color .2s; }
.phr-f-legal a:hover { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .phr-util-bar    { padding: 9px 24px; }
  .phr-nav         { padding: 0 24px; }
  .phr-nav-links   { display: none; }
  .phr-footer-main { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 32px; }
  .phr-footer-bottom { padding: 20px 32px; }
}

@media (max-width: 600px) {
  .phr-util-bar    { display: none; }
  .phr-nav         { padding: 0 20px; }
  .phr-nav-right .phr-nav-sm { display: none; }
  .phr-hamburger   { display: flex; }
  .phr-footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px; }
  .phr-footer-bottom { flex-direction: column; align-items: flex-start; padding: 20px; }
  .phr-f-legal     { gap: 14px; }
}
