/*
Theme Name: Est8Pro
Theme URI: https://est8pro.app
Author: Est8Pro
Author URI: https://est8pro.app
Description: Official marketing theme for Est8Pro, the smart real estate companion app. Built to showcase property inventory management, PDF catalog sharing, client matching, and privacy-first local data storage. Includes a dedicated Privacy Policy page template.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
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: est8pro
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, app-landing, real-estate
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Brand colors, sampled from the actual Est8Pro app UI and logo --- */
  --navy:        #0C1A30;   /* logo background, deepest anchor */
  --teal:        #2C6165;   /* primary brand teal (dashboard, buttons) */
  --teal-deep:   #1F474A;   /* darker teal for hover/depth */
  --teal-light:  #E8FAFE;   /* pale teal tint for section backgrounds */
  --blue:        #2B4FD0;   /* clients / secondary accent */
  --blue-deep:   #1F3AA0;
  --green:       #3D8245;   /* success, visits, privacy */
  --green-deep:  #2E6536;
  --amber:       #F0B830;   /* logo accent gold, CTA highlight */
  --amber-deep:  #D49A14;
  --terracotta:  #A85B23;   /* closed deals, warm accent */
  --ink:         #15212E;   /* body text */
  --ink-soft:    #4B5A6B;   /* secondary text */
  --paper:       #F2F5FA;   /* app background tone */
  --white:       #FFFFFF;
  --line:        #DDE4ED;

  /* --- Typography --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* --- Layout --- */
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 16px 40px -12px rgba(12, 26, 48, 0.18);
  --shadow-soft: 0 8px 24px -10px rgba(12, 26, 48, 0.12);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--navy);
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 28px -8px rgba(44, 97, 101, 0.55);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }

.btn-amber {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 10px 28px -8px rgba(240, 184, 48, 0.55);
}
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { border-color: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}

.brand img { width: 112px; height: 112px; border-radius: 24px; flex-shrink: 0; }
.brand span { font-weight: 700; }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--teal); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #122B45 55%, var(--teal-deep) 100%);
  overflow: hidden;
  padding: 90px 0 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(240,184,48,0.16), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(43,79,208,0.25), transparent 45%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: end;
}

.hero__copy { padding-bottom: 80px; max-width: 560px; }

.hero .eyebrow { color: var(--amber); }
.hero .eyebrow::before { background: var(--amber); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero__sub {
  color: rgba(255,255,255,0.82);
  font-size: 19px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.hero__meta {
  display: flex;
  gap: 28px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  flex-wrap: wrap;
}
.hero__meta strong { color: var(--white); display: block; font-family: var(--font-display); font-size: 22px; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.phone-stack { position: relative; width: 100%; max-width: 420px; }

.phone-frame {
  position: relative;
  width: 248px;
  border-radius: 34px;
  background: var(--navy);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.phone-frame img {
  border-radius: 26px;
  width: 100%;
  display: block;
}

.phone-frame--front {
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-frame--back {
  position: absolute;
  width: 220px;
  top: -38px;
  right: -6px;
  z-index: 1;
  opacity: 0.88;
  transform: rotate(6deg);
}

.hero__badge {
  position: absolute;
  left: -10px;
  bottom: 60px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  max-width: 220px;
}
.hero__badge .dot {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hero__badge .label { font-size: 13px; line-height: 1.3; }
.hero__badge .label strong { display: block; color: var(--navy); font-size: 14px; }

.hero__wave { display: block; width: 100%; margin-top: 70px; }

/* ==========================================================================
   LOGO STRIP / TRUST
   ========================================================================== */

.trust-strip {
  background: var(--paper);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.trust-strip__inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.trust-strip__inner span { display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */

.section { padding: 100px 0; }
.section--tight { padding: 70px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: white; }
.section--navy h2 { color: white; }

.section__head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section__head.center { margin: 0 auto 56px; text-align: center; }

.section h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section__head p {
  font-size: 18px;
  color: var(--ink-soft);
}

/* ==========================================================================
   FEATURES (numbered workflow — list reflects the app's real usage order)
   ========================================================================== */

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row:nth-child(even) .feature-row__media { order: 2; }

.feature-row__step {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

.feature-row h3 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.feature-row p { color: var(--ink-soft); font-size: 17px; }

.feature-row__list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-row__list li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink);
}
.feature-row__list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-row__media {
  display: flex;
  justify-content: center;
}

.device-card {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}
.device-card img { border-radius: 20px; }

/* ==========================================================================
   FEATURE GRID (cards — privacy / ad-supported / general highlights)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.feature-card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }

.icon-teal { background: var(--teal-light); color: var(--teal); }
.icon-blue { background: #E7ECFB; color: var(--blue); }
.icon-green { background: #E6F3E7; color: var(--green); }
.icon-amber { background: #FDF1D6; color: var(--amber-deep); }
.icon-terracotta { background: #F6E7DA; color: var(--terracotta); }
.icon-navy { background: #E4E8EE; color: var(--navy); }

/* ==========================================================================
   STATS BAND
   ========================================================================== */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats-band__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--amber);
}
.stats-band__item span {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
}

/* ==========================================================================
   SHOWCASE / CAROUSEL STRIP
   ========================================================================== */

.showcase-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
}
.showcase-strip::-webkit-scrollbar { height: 8px; }
.showcase-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

.showcase-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
.showcase-card .device-card { max-width: 220px; margin-bottom: 14px; }
.showcase-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* ==========================================================================
   PRIVACY HIGHLIGHT BAND
   ========================================================================== */

.privacy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.privacy-band__art {
  background: var(--teal-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: center;
}

.lock-badge {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}
.lock-badge .glyph { font-size: 44px; line-height: 1; }
.lock-badge strong { font-family: var(--font-display); color: var(--navy); font-size: 16px; line-height: 1.2; }
.lock-badge span {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 140px;
}

.privacy-list { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.privacy-list__item { display: flex; gap: 16px; }
.privacy-list__item .num {
  font-family: var(--font-mono);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  width: 28px;
}
.privacy-list__item h4 { font-size: 16px; margin-bottom: 4px; }
.privacy-list__item p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; font-size: 2rem; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; font-size: 17px; }
.cta-band__actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: white; font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; }
.footer-grid p { font-size: 14.5px; max-width: 280px; }
.footer-col h5 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .socials { display: flex; gap: 16px; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.contact-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--navy);
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0;
  flex: 1;
}

.contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--teal);
  word-break: break-all;
  padding: 12px 18px;
  border-radius: 100px;
  border: 2px solid var(--teal);
  transition: background 0.18s ease, color 0.18s ease;
  margin-top: auto;
}
.contact-card__link:hover {
  background: var(--teal);
  color: var(--white);
}

.contact-card__link-icon { font-style: normal; font-size: 15px; }

@media (max-width: 640px) {
  .contact-card { padding: 28px 22px; }
  .contact-card__link { font-size: 13.5px; }
}

/* ==========================================================================
   PRIVACY POLICY PAGE
   ========================================================================== */

.policy-hero {
  background: var(--paper);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.policy-hero .eyebrow { color: var(--teal); }
.policy-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.policy-hero p { color: var(--ink-soft); font-size: 16px; margin: 0; }

.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 64px 0 100px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 100px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}
.policy-toc span { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); display: block; margin-bottom: 14px; }
.policy-toc ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.policy-toc a { font-size: 14.5px; color: var(--ink-soft); transition: color 0.15s ease; }
.policy-toc a:hover { color: var(--teal); }

.policy-content section { margin-bottom: 44px; }
.policy-content h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.policy-content h2 .tag {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--teal-light);
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 6px;
}
.policy-content p, .policy-content li { color: var(--ink-soft); font-size: 16px; }
.policy-content ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.policy-content strong { color: var(--ink); }

.policy-callout {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink);
  margin: 18px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .site-header__inner { padding: 8px 24px; }
  .brand img { width: 80px; height: 80px; border-radius: 18px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { gap: 8px; }
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn-primary {
    padding: 10px 16px;
    font-size: 14px;
  }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { padding-top: 60px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; border-left: none; padding-left: 0; border-top: 2px solid var(--line); padding-top: 20px; }
}

@media (max-width: 720px) {
  .site-header__inner { padding: 8px 18px; }
  .brand img { width: 56px; height: 56px; border-radius: 14px; }
  .brand span { font-size: 17px; }
  .header-cta .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 48px 32px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .brand img { width: 44px; height: 44px; border-radius: 11px; }
  .brand span { font-size: 15px; }
  .header-cta .btn-primary { padding: 8px 12px; font-size: 12.5px; }
}
