/*
Theme Name: Estatelio
Theme URI: https://estatelio.com
Author: Estatelio
Description: Boutique real estate representation. Custom theme built to the Estatelio design system v2.0 — navy, bone, one clay accent; Newsreader display, Sora text.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: estatelio
*/

/* ---------------------------------------------------------------
   Tokens — Brand Guidelines 05 (Colour) and 06 (Typography)
   --------------------------------------------------------------- */
:root {
  --navy: #10263F;
  --bone: #F6F2EA;
  --clay: #B4522E;
  --linen: #EFEADE;
  --clay-light: #D98A5F;

  --hairline: #DDD6C8;          /* hairline on bone */
  --hairline-rev: rgba(246,242,234,0.18); /* hairline on navy */
  --rule-soft: #C9C0AE;
  --field-line: #C7BFAF;

  --ink-body: #4A5666;
  --ink-about: #3B4756;
  --ink-soft: #6E7787;
  --stone: #8B8577;
  --nav-link: #C3CBD6;
  --on-navy-body: #B9C2CE;
  --on-navy-soft: #8B97A6;
  --on-navy-strip: #A9B4C2;
  --hero-body: #CBD3DD;

  --shell: 1100px;
  --gutter: 40px;
  --section-y: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: 'Sora', 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: var(--clay); color: var(--bone); }

img { max-width: 100%; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.est-page { background: var(--bone); min-height: 100vh; overflow-x: hidden; }
.est-shell { max-width: var(--shell); margin: 0 auto; }

.est-hp { position: absolute; left: -9999px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   Header — sticky navy bar
   --------------------------------------------------------------- */
.est-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(16,38,63,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246,242,234,0.14);
}
.est-header__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.est-header__logo { display: block; flex: none; }
.est-header__logo img { height: 30px; width: auto; display: block; }

.est-nav { display: flex; align-items: center; gap: 26px; }
.est-nav a {
  color: var(--nav-link);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.est-nav a:hover { color: var(--bone); }
.est-nav .est-nav__cta {
  background: var(--clay); color: var(--bone);
  padding: 10px 18px;
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.est-nav .est-nav__cta:hover { background: var(--bone); color: var(--navy); }

/* Nav toggle — not in the design (no mobile artboard); needed below 860px. */
.est-nav-toggle {
  display: none; flex: none;
  background: transparent; border: 1px solid rgba(246,242,234,0.34);
  color: var(--bone); cursor: pointer;
  padding: 10px 16px;
  font-family: inherit; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
}
.est-nav-toggle:hover { border-color: var(--clay); }

/* ---------------------------------------------------------------
   Shared type — Brand Guidelines 06
   --------------------------------------------------------------- */
.est-eyebrow {
  margin: 0 0 16px;
  font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--clay); font-weight: 600;
}
.est-eyebrow--rev { color: var(--clay-light); }

.est-h2 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -0.01em;
}

/* Buttons — Brand Guidelines 07: zero radius, hover inverts, max 2px lift */
.est-btn {
  display: inline-block;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 14px 24px;
}
.est-btn--primary {
  background: var(--clay); color: var(--bone);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.est-btn--primary:hover { background: var(--bone); color: var(--navy); transform: translateY(-2px); }
.est-btn--ghost {
  border: 1px solid rgba(246,242,234,0.34); color: var(--bone);
  transition: border-color .2s ease;
}
.est-btn--ghost:hover { border-color: var(--clay); color: var(--bone); }

/* Image slots — a real image once set, the design's placeholder until then */
.est-slot { display: block; position: relative; overflow: hidden; background: var(--linen); }
.est-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.est-slot--empty {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--rule-soft); background: var(--linen);
  padding: 24px;
}
.est-slot--empty span {
  font-size: 12.5px; line-height: 1.7; letter-spacing: 0.02em;
  color: var(--stone); font-weight: 300; max-width: 30ch;
}
.est-hero__media .est-slot--empty { border-color: rgba(246,242,234,0.28); background: #16304C; }
.est-hero__media .est-slot--empty span { color: var(--on-navy-soft); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.est-footer {
  max-width: var(--shell); margin: 52px auto 0;
  padding: 22px var(--gutter) 26px;
  border-top: 1px solid rgba(246,242,234,0.18);
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between;
}
.est-footer img { height: 28px; width: auto; display: block; }
.est-footer p { margin: 0; font-size: 12.5px; color: var(--on-navy-soft); font-weight: 300; }

/* ---------------------------------------------------------------
   Responsive — the design ships desktop only; these are the
   minimum adjustments to hold the layout down to 320px.
   --------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --gutter: 24px; --section-y: 64px; }
  .est-nav-toggle { display: block; }
  .est-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(16,38,63,0.98);
    border-bottom: 1px solid rgba(246,242,234,0.14);
    padding: 8px 0 16px;
  }
  .est-nav.is-open { display: flex; }
  .est-nav a { padding: 14px var(--gutter); }
  .est-nav .est-nav__cta { margin: 8px var(--gutter) 0; text-align: center; }
  .est-header__inner { position: relative; padding: 14px var(--gutter); }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --section-y: 56px; }
  .est-header__logo img { height: 28px; }
  .est-btn { padding: 15px 24px; }
  .est-footer { margin-top: 48px; }
}

/* ---------------------------------------------------------------
   Generic pages — the design covers the homepage and the brand
   guidelines only; this keeps anything else on-brand and readable.
   --------------------------------------------------------------- */
.est-prose { background: var(--bone); padding: var(--section-y) var(--gutter); min-height: 60vh; }
.est-prose h1 {
  margin: 0 0 26px;
  font-family: 'Newsreader', Georgia, serif; font-weight: 400;
  font-size: clamp(34px, 3.5vw, 52px); line-height: 1.16; letter-spacing: -0.01em;
}
.est-prose h2, .est-prose h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; line-height: 1.2; }
.est-prose h2 { font-size: 32px; margin: 44px 0 16px; }
.est-prose h3 { font-size: 24px; margin: 32px 0 12px; }
.est-prose p, .est-prose li { font-size: 17px; line-height: 1.85; color: var(--ink-about); font-weight: 300; }
.est-prose p { margin: 0 0 20px; max-width: 62ch; }
.est-prose ul, .est-prose ol { max-width: 62ch; padding-left: 20px; }
.est-prose img { height: auto; }
.est-prose blockquote {
  margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--clay);
  font-family: 'Newsreader', Georgia, serif; font-size: 23px; line-height: 1.4;
}
