/* ==========================================================================
   Roots & Rise Ltd — Contact Page
   Design System V1.1
   ========================================================================== */

:root{
  /* Tier 1 — Foundation Palette */
  --ink:#1A1A1A;
  --charcoal:#2C2C2C;
  --steel:#4A4A4A;
  --slate:#888888;
  --bone:#D0CDC8;
  --linen:#F0EDE8;
  --cream:#F8F7F4;
  --white:#FFFFFF;

  /* Tier 2 — Operational Green */
  --operative:#2A7A5A;
  --deep-ops:#1F5C42;
  --ops-tint:#E8F4EF;

  /* Tier 3 — Brand Gold */
  --gold:#8B6914;
  --deep-gold:#7A5C11;
  --mid-gold:#A07820;
  --light-gold:#C9A23A;
  --gold-tint:#F5ECD0;

  /* Logo mark tokens (canonical Option 2) */
  --logo-bar-1:#EDEDED;
  --logo-bar-2:#BFBFBF;
  --logo-bar-3:#8A8A8A;
  --logo-bar-4:#3A3A3A;

  /* Spacing tokens */
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:40px;
  --space-xl:64px;
  --space-2xl:96px;
  --space-3xl:128px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

img{ display:block; max-width:100%; height:auto; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 80px;
}

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--ink); color:#fff;
  padding:12px 20px; z-index:200; border-radius:0 0 4px 0;
}
.skip-link:focus{ left:0; }

.overline{
  font-weight:600; font-size:11px; line-height:1; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--slate); margin-bottom:16px; display:block;
}
.overline.green{ color:var(--operative); }
.overline.gold{ color:var(--light-gold); }

h1,h2,h3,h4{ font-weight:600; color:var(--ink); letter-spacing:-0.01em; }

:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header{
  background:var(--ink); position:sticky; top:0; z-index:100;
  transition:box-shadow 200ms ease;
}
.site-header.scrolled{ box-shadow:0 1px 0 rgba(255,255,255,0.06); }

.nav-inner{
  max-width:1200px; margin:0 auto; padding:0 80px; height:76px;
  display:flex; align-items:center; justify-content:space-between;
  transition:height 200ms ease;
}
.site-header.scrolled .nav-inner{ height:58px; }

.nav-logo{ display:flex; align-items:center; gap:16px; }

/* Canonical logo mark (Option 2 — SVG/CSS-variable, About-page structural base) */
.logo-icon{ width:26px; height:21px; flex-shrink:0; transition:width 150ms ease, height 150ms ease; }
.logo-icon .bar{ transition:none; }
.logo-icon .bar-1{ fill:var(--logo-bar-1); }
.logo-icon .bar-2{ fill:var(--logo-bar-2); }
.logo-icon .bar-3{ fill:var(--logo-bar-3); }
.logo-icon .bar-4{ fill:var(--logo-bar-4); }
.site-header.scrolled .logo-icon{ width:20px; height:16px; }

.logo-divider{
  width:1px; height:28px; background:rgba(255,255,255,0.25); flex-shrink:0;
  transition:height 200ms ease;
}
.site-header.scrolled .logo-divider{ height:20px; }

.logo-word{ display:flex; flex-direction:column; line-height:1.15; }
.logo-word-main{
  font-size:17px; font-weight:700; color:#fff; letter-spacing:0.01em;
  transition:font-size 200ms ease;
}
.site-header.scrolled .logo-word-main{ font-size:14px; }
.logo-word-sub{
  font-size:10px; color:var(--slate); letter-spacing:0.14em; text-transform:uppercase;
  transition:font-size 200ms ease;
}
.site-header.scrolled .logo-word-sub{ font-size:8px; }
.footer-icon{ width:28px; height:22px; }
.footer-logo-mark{ display:inline-block; margin-bottom:14px; }

.nav-desktop{ display:flex; gap:36px; }
.nav-desktop a{
  font-size:14px; color:var(--slate); transition:color 150ms ease;
  position:relative; padding:4px 0;
}
.nav-desktop a:hover{ color:#fff; }
.nav-desktop a.active{ color:#fff; }
.nav-desktop a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--gold);
}

.nav-toggle{
  display:none; background:none; border:none; color:#fff; font-size:22px; cursor:pointer;
  width:44px; height:44px; align-items:center; justify-content:center;
}

/* Mobile drawer */
.mobile-drawer{
  position:fixed; top:0; right:-280px; width:280px; height:100%; background:var(--ink);
  z-index:200; display:flex; flex-direction:column; padding:24px; gap:4px;
  transition:right 250ms ease;
}
.mobile-drawer.open{ right:0; }
.mobile-drawer a{
  color:#fff; font-size:18px; padding:16px 8px; min-height:56px; display:flex; align-items:center;
  border-bottom:1px solid #2C2C2C;
}
.mobile-drawer a[aria-current="page"]{ color:var(--light-gold); }
.drawer-close{
  align-self:flex-end; background:none; border:none; color:#fff; font-size:26px; cursor:pointer;
  width:44px; height:44px; margin-bottom:8px;
}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:150; opacity:0; pointer-events:none;
  transition:opacity 250ms ease;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }

@media (max-width:900px){
  .nav-inner{ padding:0 20px; }
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ==========================================================================
   Page hero
   ========================================================================== */

.contact-hero{ background:var(--cream); padding:72px 0 48px; }
.contact-hero h1{ font-size:40px; line-height:1.15; letter-spacing:-0.02em; max-width:640px; margin-bottom:20px; }
.contact-hero p{ font-size:18px; color:var(--steel); max-width:640px; }

@media (max-width:768px){
  .contact-hero{ padding:48px 0 32px; }
  .contact-hero h1{ font-size:28px; }
  .contact-hero p{ font-size:15px; }
}

/* ==========================================================================
   Main grid — 60/40 form / direct contact
   ========================================================================== */

.contact-main{ padding:0 0 96px; }
.contact-grid{ display:grid; grid-template-columns:60fr 40fr; gap:64px; align-items:start; }

@media (max-width:900px){
  .contact-grid{ grid-template-columns:1fr; gap:40px; }
}

/* ---- Form card ---- */

.form-card{
  background:var(--white); border:1px solid #E8E6E0; border-radius:4px; padding:40px;
}

.field{ margin-bottom:22px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:8px; }
.field .req{ color:var(--gold); }

.field input,
.field select,
.field textarea{
  width:100%; font-family:'Inter', sans-serif; font-size:15px; color:var(--ink);
  background:var(--white); border:1.5px solid var(--bone); border-radius:3px;
  padding:12px 14px; transition:border-color 150ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{ outline:none; border-color:var(--ink); }
.field textarea{ resize:vertical; min-height:110px; }

.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:520px){ .two-col{ grid-template-columns:1fr; } }

.field-error{
  display:none; font-size:12px; color:#C0392B; margin-top:6px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea{ border-color:#C0392B; }
.field.invalid .field-error{ display:block; }

.form-status{
  display:none; padding:14px 16px; border-radius:3px; font-size:14px; margin-bottom:20px;
}
.form-status.success{ display:block; background:var(--ops-tint); color:var(--deep-ops); }
.form-status.error{ display:block; background:#FBEAEA; color:#C0392B; }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 32px; font-family:'Inter', sans-serif;
  font-weight:500; font-size:14px; letter-spacing:0.02em; border-radius:3px; cursor:pointer;
  border:none; transition:background 150ms ease, transform 150ms ease;
}
.btn:active{ transform:scale(0.98); }
.btn-primary{ background:var(--gold); color:#fff; }
.btn-primary:hover{ background:var(--deep-gold); }
.btn-secondary{ background:#fff; color:var(--ink); border:1.5px solid var(--ink); }
.btn-secondary:hover{ background:var(--linen); }

.submit-microcopy{ font-size:13px; color:var(--slate); margin-top:14px; }

@media (max-width:480px){
  .form-card{ padding:24px; }
  .btn{ width:100%; text-align:center; }
}

/* ---- Direct contact column ---- */

.direct-contact{ display:flex; flex-direction:column; gap:16px; }

.contact-card{
  background:var(--white); border-radius:4px; padding:20px 24px; border-left:3px solid var(--ink);
}
.contact-card.whatsapp{ border-left-color:var(--operative); }

.contact-card .label{
  font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.06em;
  color:var(--slate); margin-bottom:6px;
}
.contact-card .value{ font-size:16px; font-weight:600; color:var(--ink); }
.contact-card .value a{ transition:color 150ms ease; }
.contact-card .value a:hover{ color:var(--steel); }
.contact-card i, .contact-card .icon-svg{ font-size:18px; color:var(--steel); margin-right:8px; vertical-align:-3px; }

.btn-outline-green{
  margin-top:12px; background:transparent; color:var(--operative); border:1.5px solid var(--operative);
  padding:10px 20px; font-size:13px;
}
.btn-outline-green:hover{ background:var(--operative); color:#fff; }

/* Secondary social row — subtle, below Direct Contact cards */

.social-row{ display:flex; align-items:center; gap:14px; margin-top:4px; padding:4px 4px 0; }
.social-row span{ font-size:12px; color:var(--slate); letter-spacing:0.03em; }
.social-row a{
  display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px;
  border-radius:3px; border:1px solid var(--bone); color:var(--steel);
  transition:border-color 150ms ease, color 150ms ease;
}
.social-row a:hover,
.social-row a:focus-visible{ border-color:var(--steel); color:var(--ink); }
.social-row a i{ font-size:16px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{ background:var(--ink); color:var(--bone); padding:64px 0 24px; }

.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }

.footer-brand h4{
  color:#fff; font-size:14px; font-weight:700; text-transform:none; letter-spacing:0.02em; margin-bottom:6px;
}
.footer-tagline{ font-style:italic; color:var(--slate); font-size:11px; }
.footer-divider{ width:24px; height:2px; background:var(--gold); margin:10px 0 14px; }
.footer-desc{ font-size:13px; color:var(--slate); }

.footer-grid h4{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px; }
.footer-grid a,
.footer-grid p{ font-size:13px; color:var(--slate); display:block; margin-bottom:10px; }
.footer-grid a:hover{ color:#fff; }

.footer-contact-btn{ margin-top:6px; }

.footer-bottom{
  border-top:1px solid #2C2C2C; padding-top:20px; font-size:12px; color:var(--slate);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer-bottom a:hover{ color:#fff; }

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .container{ padding:0 20px; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; }
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */

.fade-in{ opacity:0; transform:translateY(12px); transition:opacity 300ms ease-out, transform 300ms ease-out; }
.fade-in.visible{ opacity:1; transform:translateY(0); }
.no-js .fade-in{ opacity:1; transform:none; }


.site-footer .footer-social{ display:flex; gap:14px; margin-top:2px; }
.site-footer .footer-social a{
  display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px;
  border-radius:3px; border:1px solid #3A3A3A; color:var(--slate);
  transition:border-color 150ms ease, color 150ms ease;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible{ border-color:var(--slate); color:#fff; }
