/* ============================================================
   Gene O'Brien | REALTOR | Central Valley Real Estate
   ============================================================ */

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

:root {
  --green:        #2D6A4F;
  --green-dark:   #1B4332;
  --green-light:  #EAF2EE;
  --green-mid:    #3D8B6B;
  --gold:         #B8924A;
  --gold-light:   #F2E8D5;
  --cream:        #F9F6F1;
  --white:        #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #666666;
  --border:       #DDD9D2;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --shadow-sm:    0 1px 6px rgba(0,0,0,0.06);
  --container:    1120px;
  --section-gap:  80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
}

h2 { font-weight: 600; }
h3 { font-weight: 500; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   UTILITIES
   ============================================================ */

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

.section-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.button-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.button-secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.button-secondary:hover { background: var(--green-light); }

.button-full { width: 100%; text-align: center; }

.placeholder-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
}

/* ============================================================
   NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-shamrock {
  font-size: 22px;
  color: var(--green);
  line-height: 1;
}

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.brand-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  padding: 2px 7px;
  border: 1px solid var(--green);
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--green); }

.nav-menu .nav-cta {
  padding: 8px 18px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-menu .nav-cta:hover { background: var(--green-dark); color: var(--white); }

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

.hero {
  background: var(--cream);
  padding: 72px 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 580px; }

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.h1-stats {
  display: block;
  color: var(--green);
}

.hero-copy h1 em {
  display: block;
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.hero-lede {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-headshot { display: none; }

.hero-media {
  position: relative;
}

.portrait {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--green-light);
  box-shadow: 0 8px 40px rgba(45, 106, 79, 0.18);
  margin: 0 auto;
}

.hero-badge {
  position: absolute;
  bottom: -12px;
  right: 16px;
  background: var(--green-dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.badge-shamrock {
  font-size: 20px;
  color: #6FCF97;
}

.badge-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   TRUST BAND
   ============================================================ */

.trust-band {
  background: var(--green-dark);
  color: var(--white);
  padding: 32px 24px;
}

.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.trust-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.trust-label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-divider {
  font-size: 14px;
  color: rgba(111, 207, 151, 0.6);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  padding: var(--section-gap) 24px;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 3px solid var(--green-light);
  box-shadow: var(--shadow);
}

.about-quote {
  background: var(--green);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.about-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 8px;
}

.about-quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.about-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 20px;
  color: var(--text);
}

.about-copy p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: var(--cream);
  padding: var(--section-gap) 24px;
}

.services .section-kicker { text-align: center; }

.services h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  text-decoration: none;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(45, 106, 79, 0.12);
  border-color: var(--green);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}

.service-card h3 {
  font-size: 22px;
  color: var(--text);
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
}

/* ============================================================
   AREAS
   ============================================================ */

.areas {
  background: var(--white);
  padding: var(--section-gap) 24px;
}

.areas .section-kicker,
.areas h2 { text-align: center; }

.areas h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
  color: var(--text);
}

.areas-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-left: 4px solid var(--green);
}

.area-card h3 {
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.area-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  background: var(--cream);
  padding: var(--section-gap) 24px;
}

.testimonials .section-kicker,
.testimonials h2 { text-align: center; }

.testimonials h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
  color: var(--text);
}

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.t-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 72px;
  line-height: 0.6;
  color: var(--green-light);
  margin-bottom: 16px;
  display: block;
}

.t-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.t-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.t-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.t-detail {
  font-size: 13px;
  color: var(--text-muted);
}

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

.contact {
  background: var(--white);
  padding: var(--section-gap) 24px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-kicker { margin-bottom: 8px; }

.contact-info h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  color: var(--text);
}

.contact-info > p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}
.contact-link:hover { color: var(--green); }

.contact-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}

.contact-office {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-office a { color: var(--green); text-decoration: underline; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 500;
}

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

.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-shamrock {
  font-size: 36px;
  color: #6FCF97;
  line-height: 1;
  flex-shrink: 0;
}

.footer-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.footer-tag {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 24px 64px;
    gap: 48px;
  }

  .hero-copy { max-width: 100%; }

  .hero-media {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

  .about-inner {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root { --section-gap: 56px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 8px;
    overflow-y: auto;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a {
    font-size: 18px;
    padding: 8px 0;
    color: var(--text);
    width: 100%;
  }

  .nav-menu .nav-cta {
    margin-top: 8px;
    padding: 12px 24px;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 48px;
  }

  .mobile-headshot {
    display: block;
    margin: 24px auto 0;
    max-width: 260px;
  }

  .mobile-headshot img {
    border-radius: var(--radius-lg);
    border: 3px solid var(--green-light);
    box-shadow: var(--shadow);
    width: 100%;
  }

  .hero-media { display: none; }

  .trust-inner { gap: 12px 24px; }

  .trust-divider { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-photo-col {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
  }

  .about-quote { margin-top: 0; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }

  .hero-copy h1 { font-size: 32px; }

  .about-photo-col {
    grid-template-columns: 1fr;
  }
}
