/* ============================================================
   CORIO - SHARED BASE STYLES
   -----------------------------------------------------------
   Design tokens, reset, buttons, site header, site footer,
   mobile sticky CTA and back-to-top. Loaded by pages that do not
   ship their own inline stylesheet (contact, support, faq).
   ============================================================ */
/* ============================================================
   CORIO - CONTACT PAGE STYLES
   -----------------------------------------------------------
   Part 1 (tokens, reset, header, footer, sticky CTA, back-to-top)
   is shared with the other Corio pages so the contact page looks
   and behaves exactly like the rest of the site.

   Part 2 (below) holds the contact-specific layout and form.
   ============================================================ */
/* ============================================================
   0. DESIGN TOKENS (matched to Corio brand system)
============================================================ */
:root{
  --orange:        #FF8A00;
  --orange-deep:   #F36F00;
  --orange-light:  #FFF3E6;
  --orange-glow:   rgba(255,138,0,.18);
  --white:         #FFFFFF;
  --ink:           #202020;
  --ink-soft:      #666666;
  --green:         #1E7A46;
  --green-light:   #E8F5EC;
  --cream:         #FFFBF6;
  --line:          #F0E6D8;

  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(32,32,32,.06);
  --shadow-md: 0 12px 30px rgba(243,111,0,.14);
  --shadow-lg: 0 24px 60px rgba(32,32,32,.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --header-h: 84px;
  --header-h-scrolled: 66px;
  --container: 1220px;
}

/* ============================================================
   1. RESET & BASE
============================================================ */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
ul{ list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); line-height:1.15; color:var(--ink); font-weight:700; }
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ position:relative; }
:focus-visible{ outline:3px solid var(--orange-deep); outline-offset:3px; border-radius:6px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--orange-deep); background:var(--orange-light);
  padding:8px 16px; border-radius:var(--r-pill);
}
.grad-text{
  background:linear-gradient(100deg, var(--orange-deep), var(--orange) 60%, #FFB347);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-weight:700; font-size:15.5px;
  padding:16px 30px; border-radius:var(--r-pill);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.96); }
.btn-primary{
  background:linear-gradient(135deg,var(--orange),var(--orange-deep));
  color:var(--white); box-shadow:var(--shadow-md);
}
.btn-primary:hover{ box-shadow:0 16px 36px rgba(243,111,0,.28); transform:translateY(-2px); }
.btn-sm{ padding:11px 20px; font-size:14px; }
.btn-block{ width:100%; }

/* ============================================================
   2. HEADER
============================================================ */
.site-header{
  position:sticky; top:0; z-index:200; height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(255,251,246,.85);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:height .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled{ height:var(--header-h-scrolled); box-shadow:var(--shadow-sm); border-bottom-color:var(--line); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:26px; color:var(--ink); }
.logo .logo-badge{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg,var(--orange),var(--orange-deep));
  display:flex; align-items:center; justify-content:center; color:var(--white); font-size:18px;
  box-shadow:var(--shadow-md); transition:transform .3s ease;
}
.logo:hover .logo-badge{ transform:rotate(-8deg) scale(1.05); }

.main-nav ul{ display:flex; gap:8px; align-items:center; }
.main-nav a{
  font-weight:600; font-size:14.5px; color:var(--ink);
  padding:10px 16px; border-radius:var(--r-pill);
  position:relative; transition:color .2s ease, background .2s ease;
}
.main-nav a:hover, .main-nav a.active{ color:var(--orange-deep); background:var(--orange-light); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.hamburger{
  display:none; flex-direction:column; gap:5px; width:40px; height:40px;
  align-items:center; justify-content:center; border-radius:var(--r-sm);
}
.hamburger span{ width:22px; height:2.5px; background:var(--ink); border-radius:2px; transition:transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:var(--header-h-scrolled) 0 0 0; z-index:190;
  background:var(--white);
  transform:translateY(-110%); transition:transform .35s cubic-bezier(.4,0,.2,1);
  padding:28px 24px; overflow-y:auto; display:none;
}
.mobile-nav.open{ transform:translateY(0); }
.mobile-nav ul{ display:flex; flex-direction:column; gap:4px; }
.mobile-nav a{ display:block; padding:16px 6px; font-size:19px; font-weight:600; border-bottom:1px solid var(--line); }
.mobile-nav .btn{ margin-top:24px; }

@media (max-width:960px){
  .main-nav{ display:none; }
  .header-actions .btn-primary.desktop-only{ display:none; }
  .hamburger{ display:flex; }
  .mobile-nav{ display:block; }
}

/* ============================================================
   3. FOOTER (matched to Corio brand footer)
============================================================ */
.site-footer{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg, #261D16 0%, #17100B 100%);
  color:rgba(255,255,255,.75);
}
.site-footer::before{
  content:''; position:absolute; top:-220px; left:-140px; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,138,0,.16), transparent 65%); pointer-events:none;
}
.site-footer::after{
  content:''; position:absolute; bottom:-260px; right:-160px; width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,138,0,.10), transparent 65%); pointer-events:none;
}
.footer-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr 1.2fr; gap:40px;
  padding:64px 0 54px; border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand .logo{ color:#fff; }
.footer-brand p{ margin:18px 0 22px; font-size:14.5px; max-width:300px; line-height:1.75; }
.social-row{ display:flex; gap:10px; margin-bottom:24px; }
.social-row a{
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; color:#fff;
  transition:background .25s ease, transform .25s ease, border-color .25s ease;
}
.social-row a:hover{ background:linear-gradient(135deg,var(--orange),var(--orange-deep)); border-color:transparent; transform:translateY(-4px); }
.app-badge{
  display:inline-flex; align-items:center; gap:12px;
  background:#0F0B08; border:1px solid rgba(255,255,255,.14);
  padding:10px 18px; border-radius:14px; color:#fff;
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.app-badge:hover{ border-color:var(--orange); transform:translateY(-2px); box-shadow:0 12px 24px rgba(0,0,0,.3); }
.app-badge i{ font-size:24px; color:var(--orange); }
.app-badge span{ font-size:11px; line-height:1.25; color:rgba(255,255,255,.75); }
.app-badge strong{ font-size:13.5px; color:#fff; font-weight:700; }

.footer-col h4{
  font-family:var(--font-body); color:#fff; font-size:14px;
  margin-bottom:20px; letter-spacing:.08em; text-transform:uppercase;
  position:relative; padding-bottom:12px;
}
.footer-col h4::after{
  content:''; position:absolute; left:0; bottom:0; width:28px; height:3px;
  border-radius:3px; background:linear-gradient(90deg, var(--orange), transparent);
}
.footer-col ul{ display:flex; flex-direction:column; gap:13px; }
.footer-col a{
  font-size:14.5px; color:rgba(255,255,255,.72);
  display:inline-flex; align-items:center; gap:9px;
  transition:color .2s ease, padding-left .2s ease;
}
.footer-col a:hover{ color:var(--orange); padding-left:6px; }
.footer-col a i{ font-size:11px; color:var(--orange); opacity:.7; }

.footer-contact ul{ gap:18px; }
.footer-contact li{ display:flex; align-items:flex-start; gap:13px; font-size:14px; line-height:1.55; }
.footer-contact li > i{
  width:38px; height:38px; flex-shrink:0; border-radius:11px;
  background:rgba(255,138,0,.14); color:var(--orange);
  display:flex; align-items:center; justify-content:center; font-size:15px;
}
.footer-contact li strong{ display:block; color:#fff; font-weight:600; font-size:13px; }
.footer-contact li div{ color:rgba(255,255,255,.72); }
.footer-contact li a{ display:inline; padding:0; }
.footer-contact li a:hover{ padding-left:0; }

.footer-bottom{
  position:relative; z-index:1;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding:26px 0; font-size:13px; color:rgba(255,255,255,.55);
}
.footer-bottom .made-with{ display:inline-flex; align-items:center; gap:7px; }
.footer-bottom .made-with i{ color:var(--orange); }
.footer-bottom a{ color:rgba(255,255,255,.55); text-decoration:underline; }
.footer-bottom a:hover{ color:var(--orange); }

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:34px; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
}

/* MOBILE STICKY CTA */
.mobile-sticky-cta{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:180;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,251,246,.92); backdrop-filter:blur(10px);
  border-top:1px solid var(--line); box-shadow:0 -8px 24px rgba(0,0,0,.08);
}
@media (max-width:760px){ .mobile-sticky-cta{ display:block; } body{ padding-bottom:78px; } }

/* BACK TO TOP */
.back-to-top{
  position:fixed; right:22px; bottom:96px; z-index:170;
  width:46px; height:46px; border-radius:50%;
  background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease;
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
@media (max-width:760px){ .back-to-top{ bottom:170px; } }

/* ============================================================
   4. SHARED EXTRAS
============================================================ */
.btn-secondary{
  background:transparent; color:var(--ink); border:1.5px solid var(--line);
  box-shadow:none;
}
.btn-secondary:hover{ border-color:var(--orange); color:var(--orange-deep); transform:translateY(-2px); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:#000; transform:translateY(-2px); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

/* Section heading used on the home, faq and support pages */
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,4vw,42px); margin-top:14px; }
.section-head p{ color:var(--ink-soft); font-size:17px; margin-top:14px; }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }
