/* =========================================================
   The Capitex Group — theme stylesheet
   Palette: cream #F6F4EF, ink #121110, gold #BBA26F / #A08C66,
            parchment #EFE9DC, body copy #4A463F, hairline #DDD9D2
   Type: Cormorant Garamond (display), Archivo (body/UI)
   ========================================================= */

:root{
  --cpx-bg: #F6F4EF;
  --cpx-ink: #121110;
  --cpx-gold: #BBA26F;
  --cpx-gold-dark: #A08C66;
  --cpx-cream: #EFE9DC;
  --cpx-body: #4A463F;
  --cpx-line: #DDD9D2;
  --cpx-muted: #8A8378;
  --cpx-muted-2: #6F675A;
  --cpx-muted-3: #B8B2A6;
}

html{ scroll-behavior:smooth; }

body.capitex{
  margin:0;
  background:var(--cpx-bg);
  font-family:'Archivo', sans-serif;
  color:var(--cpx-ink);
  padding-top:0;
}
/* NOTE: intentionally no blanket "body.capitex a{color:...}" rule here.
   That rule previously beat every component-specific link color
   (.cpx-btn, .cpx-nav-links a, .cpx-contact-details a, etc.) because a
   descendant selector like "body.capitex a" is MORE specific than a
   single class like ".cpx-btn". Every link below sets its own color
   explicitly instead, so nothing needs !important to win. */
body.capitex a{ text-decoration:none; color: #EFE9DC}
body.capitex ::placeholder{ color:var(--cpx-muted); }
body.capitex h1,body.capitex h2,body.capitex h3{ font-family:'Cormorant Garamond', serif; font-weight:400; margin:0; }
body.capitex em{ font-style:normal; color:var(--cpx-gold-dark); font-weight:500; }

/* ---------- Nav ---------- */
.cpx-nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  transition:background .35s ease, border-color .35s ease;
  border-bottom:1px solid transparent;
}
.cpx-nav.is-scrolled{
  background:rgba(18,17,16,0.92);
  backdrop-filter:blur(10px);
  border-bottom-color:rgba(187,162,111,0.25);
}
.cpx-nav-inner{
  max-width:1280px; margin:0 auto; padding:16px 48px;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px;
}
.cpx-nav-brand{ display:flex; align-items:center; }
.cpx-nav-brand img{ display:block; width:auto; height:48px; transition:height .35s ease; }
.cpx-nav.is-scrolled .cpx-nav-brand img{ height:34px; }
.cpx-nav-links{ display:flex; align-items:center; justify-content:center; gap:36px; font-size:11px; font-weight:600; letter-spacing:.22em; list-style:none; margin:0; padding:0; }
.cpx-nav-links a{ color:rgba(239,233,220,.8); }
.cpx-nav-links a:hover{ color:var(--cpx-gold); }
.cpx-nav-cta{ display:flex; justify-content:flex-end; }
.cpx-nav-cta a{ font-size:11px; font-weight:600; letter-spacing:.22em; color:var(--cpx-cream); border:1px solid var(--cpx-gold); padding:10px 24px; }
.cpx-nav-cta a:hover{ background:var(--cpx-gold); color:var(--cpx-ink); }
@media (max-width:820px){
  .cpx-nav-inner{ grid-template-columns:1fr auto; }
  .cpx-nav-links{ display:none; }
}

/* ---------- Hero ---------- */
.cpx-hero{
  position:relative; min-height:82vh; display:flex; align-items:center; justify-content:center;
  overflow:hidden; text-align:center;
}
.cpx-hero-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:sepia(0.55) saturate(0.85) brightness(0.72) contrast(1.05);
}
.cpx-hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(18,17,16,0.62) 0%, rgba(28,22,12,0.5) 55%, rgba(18,17,16,0.68) 100%);
}
.cpx-hero-inner{ position:relative; display:flex; flex-direction:column; align-items:center; gap:32px; padding:120px 48px; max-width:880px; margin:0 auto; }
.cpx-eyebrow{ font-size:11px; letter-spacing:.55em; color:var(--cpx-gold); font-weight:600; }
.cpx-hero h1{ font-size:72px; line-height:1.1; color:var(--cpx-cream); }
.cpx-rule{ width:48px; height:1px; background:var(--cpx-gold); }
.cpx-hero p{ margin:0; font-size:16px; line-height:1.9; color:rgba(239,233,220,.85); max-width:520px; }
.cpx-btn{ display:inline-block; margin-top:12px; color:var(--cpx-cream); border:1px solid rgba(239,233,220,.5); padding:17px 46px; font-size:12px; font-weight:600; letter-spacing:.24em; }
.cpx-btn:hover{ background:var(--cpx-cream); color:var(--cpx-ink); border-color:var(--cpx-cream); }
.cpx-btn-gold{ color:var(--cpx-gold); border:1px solid var(--cpx-gold); background:transparent; }
.cpx-btn-gold:hover{ background:var(--cpx-gold); color:var(--cpx-ink); }

/* ---------- Section shell ---------- */
.cpx-section{ border-bottom:1px solid var(--cpx-line); }
.cpx-section-inner{ max-width:780px; margin:0 auto; padding:150px 48px; display:flex; flex-direction:column; align-items:center; gap:34px; text-align:center; }
.cpx-kicker{ display:flex; align-items:center; justify-content:center; gap:18px; width:100%; font-size:11px; letter-spacing:.5em; color:var(--cpx-gold-dark); font-weight:600; }
.cpx-kicker .cpx-rule{ width:28px; flex:none; }
.cpx-section h2{ font-size:44px; line-height:1.15; }
.cpx-section p{ margin:0; font-size:17px; line-height:2.05; color:var(--cpx-body); }

/* ---------- Portfolio ---------- */
.cpx-portfolio{ background:#fff; }
.cpx-portfolio .cpx-section-inner{ max-width:1280px; padding-bottom:60px; }
.cpx-portfolio-grid{
  display:flex; flex-wrap:wrap; gap:40px; width:100%;
  max-width:1280px; margin:0 auto; padding:0 48px 96px;
  box-sizing:border-box;
}
.cpx-card{ flex:1 1 0; min-width:220px; display:flex; flex-direction:column; gap:24px; }
.cpx-card-logo{ border:1px solid var(--cpx-line); height:240px; display:flex; align-items:center; justify-content:center; padding:0 40px; position:relative; }
.cpx-card-logo .cpx-index{ position:absolute; top:16px; left:16px; font-family:'Cormorant Garamond', serif; font-size:15px; color:var(--cpx-gold); }
.cpx-card-logo img{ max-width:190px; max-height:64px; object-fit:contain; }
.cpx-card-meta{ display:flex; flex-direction:column; gap:6px; align-items:center; text-align:center; }
.cpx-card-meta .cpx-card-name{ font-family:'Cormorant Garamond', serif; font-size:26px; }
.cpx-card-meta .cpx-card-tag{ font-size:11px; letter-spacing:.26em; color:var(--cpx-muted); font-weight:600; }
@media (max-width:900px){ .cpx-portfolio-grid{ flex-direction:column; } }

/* ---------- Contact ---------- */
.cpx-contact{ background:var(--cpx-ink); color:var(--cpx-cream); }
.cpx-contact .cpx-section-inner{ max-width:1080px; padding-bottom:0; }
.cpx-contact h2{ color:var(--cpx-cream); }
.cpx-contact .cpx-kicker{ color:var(--cpx-gold); }
.cpx-contact-details{ font-size:15px; line-height:1.9; color:var(--cpx-muted-3); }
.cpx-contact-details a{ color:var(--cpx-gold); }
.cpx-contact-details a:hover{ color:var(--cpx-cream); }

.cpx-form-wrap{ max-width:720px; margin:56px auto 150px; padding:0 48px; box-sizing:border-box; }

/* Theme's own fallback form (used only if Contact Form 7 isn't active) */
.cpx-form{ display:flex; flex-direction:column; gap:36px; width:100%; }
.cpx-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.cpx-form input, .cpx-form textarea{
  background:transparent; border:none; border-bottom:1px solid #3A352C; padding:12px 2px;
  color:var(--cpx-cream); font-family:'Archivo', sans-serif; font-size:15px; outline:none; width:100%; box-sizing:border-box;
}
.cpx-form button{ background:transparent; color:var(--cpx-gold); border:1px solid var(--cpx-gold); padding:17px 46px; font-family:'Archivo', sans-serif; font-size:12px; font-weight:700; letter-spacing:.24em; cursor:pointer; align-self:center; }
.cpx-form button:hover{ background:var(--cpx-gold); color:var(--cpx-ink); }
.cpx-form-notice{ font-size:13px; letter-spacing:.05em; color:var(--cpx-gold); text-align:center; margin-top:24px; }
@media (max-width:600px){ .cpx-form-row{ grid-template-columns:1fr; } }

/* Contact Form 7 (default active form) — restyled to match the brand */
.cpx-form-wrap .wpcf7-form-control-wrap{ display:block; }
.cpx-form-wrap p{ margin:0 0 24px; }
.cpx-form-wrap label{ display:block; }
.cpx-form-wrap input[type=text],
.cpx-form-wrap input[type=email],
.cpx-form-wrap input[type=tel],
.cpx-form-wrap textarea{
  background:transparent; border:none; border-bottom:1px solid #3A352C; padding:12px 2px;
  color:var(--cpx-cream); font-family:'Archivo', sans-serif; font-size:15px; outline:none; width:100%; box-sizing:border-box; margin-top:6px;
}
.cpx-form-wrap input[type=submit]{
  background:transparent; color:var(--cpx-gold); border:1px solid var(--cpx-gold); padding:17px 46px;
  font-family:'Archivo', sans-serif; font-size:12px; font-weight:700; letter-spacing:.24em; cursor:pointer;
}
.cpx-form-wrap input[type=submit]:hover{ background:var(--cpx-gold); color:var(--cpx-ink); }
.cpx-form-wrap .wpcf7-spinner{ display:none !important; }
.cpx-form-wrap .wpcf7-response-output{ border-color:var(--cpx-gold) !important; color:var(--cpx-gold); font-size:13px; }

/* ---------- Footer ---------- */
.cpx-footer{ background:var(--cpx-ink); border-top:1px solid rgba(187,162,111,.25); color:var(--cpx-muted-2); }
.cpx-footer-inner{ max-width:1280px; margin:0 auto; padding:40px 48px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cpx-footer-brand{ display:flex; align-items:center; }
.cpx-footer-brand img{ display:block; width:auto; height:36px; }
.cpx-footer-copy{ font-size:11px; letter-spacing:.04em; }
