/* ============================================================
   PROOFIX Home Service — Main Stylesheet
   Palette: Cream #F5F0E8 | Black #1A1612 | Gold #C8882A
   Fonts: Cormorant Garamond (serif) + Jost (sans-serif)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --cream:        #F5F0E8;
  --cream-dark:   #EDE5D5;
  --cream-mid:    #E8DFD0;
  --black:        #1A1612;
  --black-soft:   #2C2620;
  --charcoal:     #3D3530;
  --gold:         #C8882A;
  --gold-light:   #E0A84A;
  --gold-pale:    #F2D9A8;
  --gold-deep:    #A06A18;
  --white:        #FDFAF5;
  --text-muted:   #7A6E64;
  --border:       rgba(26,22,18,0.12);
  --border-strong:rgba(26,22,18,0.22);
  --nav-h:        72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Utility ── */
.gold { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary              { background: var(--gold); color: var(--white); }
.btn-primary:hover        { background: var(--gold-deep); }
.btn-outline              { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-outline:hover        { background: var(--black); color: var(--white); }
.btn-outline-white        { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover  { background: rgba(255,255,255,0.12); }

.overline {
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.overline::before { content: ''; display: block; width: 32px; height: 1.5px; background: var(--gold); }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(26,22,18,0.08); }

.nav-inner {
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700; letter-spacing: 0.06em; color: var(--black);
}
.logo-name .px { color: var(--gold); }
.logo-sub {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--charcoal); transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { margin-left: 12px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); transition: 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: 24px 28px; z-index: 99; flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); padding: 6px 0; border-bottom: 1px solid var(--border);
}


/* ══════════════════════════════
   HERO
══════════════════════════════ */
#home {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--cream);
  position: relative; overflow: hidden;
}

.hero-bg-pattern {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 55%; max-width: 680px; height: 110%;
  background: var(--cream-dark);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px;
}

.hero-text .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale); color: var(--gold-deep);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 16px; margin-bottom: 28px;
}

.hero-h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700; line-height: 1.08;
  color: var(--black); margin-bottom: 24px;
}
.hero-h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--charcoal);
  line-height: 1.75; margin-bottom: 40px; max-width: 420px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 36px; }
.stat-item  { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--black); line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.hero-img-wrap {
  width: 100%; max-width: 440px; aspect-ratio: 3/4;
  background: var(--cream-mid);
  position: relative; overflow: hidden;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge-float {
  position: absolute; bottom: 32px; left: -32px;
  background: var(--gold); padding: 18px 24px; color: var(--white);
}
.hero-badge-float .hbf-num  { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; line-height: 1; }
.hero-badge-float .hbf-text { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }


/* ══════════════════════════════
   TRUST BAR
══════════════════════════════ */
.trust-bar { background: var(--black); padding: 22px 0; }
.trust-bar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(253,250,245,0.8); font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }


/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
#services { background: var(--cream); }

.services-intro { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.services-intro h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 18px; }
.services-intro p  { font-size: 16px; color: var(--charcoal); }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px;
}

.svc-card {
  background: var(--white); cursor: pointer;
  transition: all 0.28s ease;
  border: 1px solid transparent;
}
.svc-card:hover { border-color: var(--gold); z-index: 1; }

.svc-card-header {
  padding: 32px 28px 24px;
  display: flex; align-items: flex-start; gap: 16px;
}

.svc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.svc-icon svg { width: 22px; height: 22px; }

.svc-title  { font-size: 20px; font-weight: 600; color: var(--black); line-height: 1.25; }
.svc-count  { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

.svc-toggle { margin-left: auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 20px; transition: transform 0.3s; }
.svc-card.open .svc-toggle { transform: rotate(45deg); color: var(--gold); }

.svc-body { padding: 0 28px 28px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.svc-card.open .svc-body { max-height: 600px; }

.svc-body ul { list-style: none; margin-bottom: 20px; }
.svc-body ul li {
  font-size: 14px; color: var(--charcoal); padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.svc-body ul li::before { content: '—'; color: var(--gold); font-weight: 700; flex-shrink: 0; }


/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
#about { background: var(--white); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 80px; align-items: center;
}

.about-img-wrap {
  aspect-ratio: 3/4; background: var(--cream-mid);
  position: relative; overflow: hidden;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.about-img-decor {
  position: absolute; bottom: -16px; right: -16px;
  width: 80%; height: 80%;
  border: 2px solid var(--gold);
  pointer-events: none; z-index: -1;
}

.about-text h2    { font-size: clamp(34px, 4vw, 52px); margin-bottom: 6px; }
.about-text h3    { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.about-text p     { font-size: 16px; color: var(--charcoal); margin-bottom: 20px; line-height: 1.8; }
.about-text strong{ font-weight: 600; color: var(--black); }

.about-values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.value-tag {
  background: var(--cream); border: 1px solid var(--border-strong);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 18px; color: var(--charcoal);
}


/* ══════════════════════════════
   ESTIMATE CTA
══════════════════════════════ */
#estimate {
  background: var(--black);
  padding: 100px 0;
  text-align: center; position: relative; overflow: hidden;
}
#estimate::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(200,136,42,0.04) 40px, rgba(200,136,42,0.04) 41px
  );
}
.estimate-inner           { position: relative; z-index: 1; }
.estimate-inner h2        { font-size: clamp(38px, 5vw, 64px); color: var(--white); margin-bottom: 20px; }
.estimate-inner h2 em     { font-style: italic; color: var(--gold); }
.estimate-inner p         { font-size: 17px; color: rgba(253,250,245,0.65); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.estimate-btns            { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
#contact { background: var(--white); }

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

.contact-info h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 32px; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.contact-detail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.contact-detail-icon svg  { width: 18px; height: 18px; }
.contact-detail-label     { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.contact-detail-val       { font-size: 15px; color: var(--black); }
.contact-detail-val a     { color: var(--gold); }
.contact-detail-val a:hover { color: var(--gold-deep); }

.facebook-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 13px; color: var(--gold); transition: color 0.2s;
}
.facebook-link:hover { color: var(--gold-light); }

.contact-form-wrap { background: var(--cream); padding: 44px 40px; }
.contact-form-wrap h3 { font-size: 28px; margin-bottom: 28px; }

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

.form-group           { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label     { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); }
.form-group input,
.form-group select,
.form-group textarea  {
  width: 100%; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--border-strong);
  font-family: 'Jost', sans-serif; font-size: 14px; color: var(--black);
  outline: none; transition: border-color 0.2s; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea   { min-height: 110px; resize: vertical; }

.form-success         { display: none; text-align: center; padding: 32px; }
.form-success .success-icon { font-size: 48px; margin-bottom: 12px; }
.form-success p        { font-size: 16px; color: var(--charcoal); }


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--black-soft); padding: 48px 0 32px;
  color: rgba(253,250,245,0.6);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start;
}
.footer-logo .logo-name { font-size: 28px; color: var(--white); }
.footer-logo .logo-sub  { color: rgba(253,250,245,0.45); }
.footer-addr { font-size: 13.5px; margin-top: 14px; line-height: 1.9; }

.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(253,250,245,0.55); transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(253,250,245,0.1);
  margin-top: 36px; padding-top: 22px; font-size: 12px; text-align: center;
}


/* ══════════════════════════════
   SERVICE REQUEST MODAL
══════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(26,22,18,0.7);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white); max-width: 560px; width: 100%;
  padding: 48px 44px; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 24px; cursor: pointer; color: var(--text-muted);
  background: none; border: none; line-height: 1;
}
.modal-close:hover        { color: var(--black); }
.modal h3                 { font-size: 30px; margin-bottom: 6px; }
.modal .modal-svc-name    { font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }

.modal-success            { display: none; text-align: center; padding: 32px 0; }
.modal-success-icon       { font-size: 56px; margin-bottom: 16px; }
.modal-success h4         { font-size: 26px; margin-bottom: 10px; }
.modal-success p          { font-size: 15px; color: var(--charcoal); }


/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .hero-content             { grid-template-columns: 1fr; }
  .hero-bg-pattern          { display: none; }
  .hero-visual              { display: none; }
  .about-grid               { grid-template-columns: 1fr; }
  .about-img-wrap           { max-width: 380px; }
  .contact-grid             { grid-template-columns: 1fr; }
  .nav-links, .nav-cta      { display: none; }
  .hamburger                { display: flex; }
  .footer-inner             { grid-template-columns: 1fr; }
  .footer-links             { align-items: flex-start; }
  .form-row                 { grid-template-columns: 1fr; }
  .trust-bar-inner          { gap: 14px; }
}

@media (max-width: 600px) {
  .section                  { padding: 64px 0; }
  .hero-stats               { gap: 24px; }
  .modal                    { padding: 32px 24px; }
  .contact-form-wrap        { padding: 28px 22px; }
  .services-grid            { grid-template-columns: 1fr; }
}
