/* =====================================================================
   PINNACLE INVESTMENT — MAIN STYLESHEET
   =====================================================================
   This file is shared by every page (English + Arabic + legal pages).
   Arabic pages additionally load css/rtl.css AFTER this file.
   ===================================================================== */

/* ---------------------------------------------------------------------
   *** FONTS — CHANGE ALL SITE FONTS HERE ***
   To use a different typeface across the whole site, edit ONLY the two
   variables below. --font-body is used for all paragraph/UI text.
   --font-serif is used only for the big serif display headline (H1) in
   the hero. Leave the rest of the file untouched — every heading and
   paragraph in the site references these two variables.
   To load a custom web font, add an @import or <link> for it in the
   <head> of each HTML page, then reference its name here.
   --------------------------------------------------------------------- */
:root {
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

  :root {
    --deep-teal: #0D3A3C;
    --emerald-teal: #138976;
    --fresh-green: #57BC75;
    --off-white: #F5F8F6;
    --charcoal: #231F20;
    --white: #FFFFFF;
    --border-light: rgba(13,58,60,0.12);
    --shadow-soft: 0 4px 20px rgba(13,58,60,0.08);
    --radius: 6px;
    --max-width: 1280px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 96px;
    --ease: cubic-bezier(.22,.61,.36,1);
    --hero-photo-url: url("../assets/images/hero-riyadh.jpg");
    --pattern01-url: url("../assets/patterns/pattern-01.svg");
    --pattern02-url: url("../assets/patterns/pattern-02.svg");
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--off-white);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

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

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

  section { padding: 84px 0; position: relative; }

  .section-header {
    max-width: 660px;
    margin-bottom: var(--space-lg);
  }
  .section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
  .section-header h2 { margin-bottom: 18px; }
  .section-header p { font-size: 1.1rem; line-height: 1.65; }

  .eyebrow {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--emerald-teal);
    margin-bottom: var(--space-md);
  }
  .eyebrow.light { color: var(--fresh-green); }

  h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; color: var(--charcoal); }
  h1 { font-family: var(--font-serif); font-size: clamp(2.4rem, 6vw, 4.1rem); color: var(--white); font-weight: 400; }
  h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
  h3 { font-size: 1.3rem; }
  p { color: #ffffff; font-size: 1.04rem; line-height: 1.7; }

  /* ---------- Reveal-on-scroll ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal-stagger > *:nth-child(1){transition-delay:.05s}
  .reveal-stagger > *:nth-child(2){transition-delay:.14s}
  .reveal-stagger > *:nth-child(3){transition-delay:.23s}
  .reveal-stagger > *:nth-child(4){transition-delay:.32s}
  .reveal-stagger > *:nth-child(5){transition-delay:.41s}
  .reveal-stagger > *:nth-child(6){transition-delay:.5s}

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }
  .btn-primary { background: var(--fresh-green); color: var(--charcoal); }
  .btn-primary:hover { background: #4aa863; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(87,188,117,0.35); }
  .btn-primary:active { transform: translateY(0); }
  .btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

  .btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
  .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

  .btn-outline-dark { background: transparent; border-color: var(--deep-teal); color: var(--deep-teal); }
  .btn-outline-dark:hover { background: var(--deep-teal); color: var(--white); }

  .btn-block { width: 100%; }

  .text-link {
    color: var(--emerald-teal);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
  }
  .text-link:hover { border-bottom-color: var(--emerald-teal); gap: 10px; }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,58,60,0.98);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.3s ease;
  }
  .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: var(--space-md); }
  .logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.1rem; }
  .logo img { height: 112px; width: auto; display: block; transition: transform .3s ease; }
  .logo:hover img { transform: scale(1.04); }

  .main-nav { display: none; }
  .main-nav ul { display: flex; gap: 26px; align-items: center; }
  .main-nav a {
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 1px;
    white-space: nowrap;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--fresh-green);
    transition: right 0.25s var(--ease);
  }
  .main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
  .main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
  .main-nav a.lang-switch, .mobile-nav a.lang-switch {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
  }
  .main-nav a.lang-switch::after { display: none; }
  .main-nav a.lang-switch:hover { border-color: var(--fresh-green); }

  .header-cta {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.85);
    color: var(--white);
    padding: 12px 24px;
    font-size: 0.92rem;
  }
  .header-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
  }

  .hamburger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 48px; height: 48px; background: transparent; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px; cursor: pointer;
  }
  .hamburger span { width: 20px; height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease; }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    position: fixed; inset: 0; background: var(--deep-teal); z-index: 200;
    display: flex; flex-direction: column; padding: 24px 20px;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    overflow: hidden;
  }
  .mobile-nav::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -60px;
    width: 260px;
    height: 300px;
    background-image: var(--pattern01-url);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav-top, .mobile-nav ul, .mobile-nav > .btn { position: relative; z-index: 1; }
  .mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); }
  .mobile-nav-top .logo img { height: 72px; }
  .mobile-nav-close {
    width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px; color: var(--white); font-size: 1.4rem; cursor: pointer;
  }
  .mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: auto; }
  .mobile-nav a { color: var(--white); font-size: 1.4rem; font-weight: 700; font-family: var(--font-serif); }
  .mobile-nav .btn { margin-top: var(--space-lg); }

  /* ---------- Hero (full-bleed photo) ---------- */
  .hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
    overflow: hidden;
    isolation: isolate;
  }
  .hero > .container { width: 100%; }
  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-photo-url);
    background-size: cover;
    background-position: center 38%;
    z-index: -3;
    animation: heroZoom 22s ease-in-out infinite alternate;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(100deg, rgba(7,28,29,0.92) 0%, rgba(7,28,29,0.74) 32%, rgba(7,28,29,0.32) 58%, rgba(7,28,29,0.08) 80%);
  }
  .hero-overlay-tint {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(13,58,60,0.05) 0%, rgba(13,58,60,0.05) 65%, rgba(9,38,40,0.55) 100%),
                linear-gradient(100deg, rgba(19,137,118,0.28), rgba(87,188,117,0.08) 45%, transparent 70%);
    mix-blend-mode: soft-light;
  }
  @keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
  }
  .hero-icon-large {
    position: absolute;
    right: 6%;
    top: 62%;
    width: 320px;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
    opacity: 0;
    animation: riseUp 6s ease-in-out infinite;
  }
  @keyframes riseUp {
    0%   { opacity: 0; transform: translateY(0); }
    18%  { opacity: 1; }
    72%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-190px); }
  }

  .hero-content { position: relative; z-index: 1; max-width: 700px; }
  .hero-text p {
    color: rgba(255,255,255,0.82);
    font-size: 1.08rem;
    margin: var(--space-md) 0 var(--space-lg);
    max-width: 500px;
  }
  .hero-ctas { display: flex; flex-direction: column; gap: var(--space-sm); }

  .hero-text > * { opacity: 0; transform: translateY(22px); animation: heroIn .8s var(--ease) forwards; }
  .hero-text .eyebrow { animation-delay: .05s; }
  .hero-text h1 { animation-delay: .18s; }
  .hero-text p { animation-delay: .32s; }
  .hero-text .hero-ctas { animation-delay: .46s; }
  @keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

  /* ---------- Stat strip ---------- */
  .stats { background: var(--off-white); border-bottom: 1px solid var(--border-light); }
  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); text-align: center; }
  .stat-item { padding: var(--space-md) 0; border-bottom: 1px solid var(--border-light); }
  .stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 3.8rem);
    color: var(--emerald-teal);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
  }
  .stat-label { font-size: 0.95rem; color: #5A6E68; font-weight: 600; line-height: 1.5; }

  /* ---------- About ---------- */
  .about-grid { display: grid; gap: var(--space-lg); align-items: center; }
  .about-image { position: relative; }
  .about-image::before {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 160px;
    height: 190px;
    background-image: var(--pattern01-url);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    z-index: 0;
  }
  .about-photo {
    position: relative;
    z-index: 1;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; transition: transform .6s var(--ease); }
  .about-photo:hover img { transform: scale(1.04); }

  .about-content h2 { margin-bottom: 20px; }
  .about-content p { margin-bottom: var(--space-md); }
  .bullet-list { display: grid; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-lg); }
  .bullet-item { display: flex; gap: 12px; align-items: flex-start; }
  .bullet-icon {
    width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
    background: rgba(19,137,118,0.12); display: flex; align-items: center; justify-content: center;
    color: var(--emerald-teal); font-size: 0.8rem; margin-top: 2px;
  }
  .bullet-item span.bullet-text { font-size: 1.04rem; color: var(--charcoal); font-weight: 600; }

  /* ---------- Cards ---------- */
  .card-grid { display: grid; gap: var(--space-md); }
  .card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-md);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
  }
  .card:hover { border-color: var(--emerald-teal); box-shadow: 0 16px 32px rgba(13,58,60,0.12); transform: translateY(-6px); }
  .card-icon {
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(19,137,118,0.1); display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-md); color: var(--emerald-teal);
    font-size: 1.2rem;
    transition: background .25s ease, transform .25s ease;
  }
  .card:hover .card-icon { background: var(--emerald-teal); color: var(--white); transform: rotate(-8deg) scale(1.08); }
  .card h3 { margin-bottom: 12px; font-size: 1.3rem; }
  .card p { font-size: 1.02rem; margin-bottom: var(--space-sm); flex-grow: 1; line-height: 1.65; }

  /* ---------- Why Pinnacle ---------- */
  .why-section {
    background: var(--emerald-teal);
    position: relative;
    overflow: hidden;
  }
  .why-section::after {
    content: "";
    position: absolute;
    top: -70px;
    left: -90px;
    width: 420px;
    height: 480px;
    background-image: var(--pattern01-url);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
  }
  .why-section .container { position: relative; z-index: 1; }
  .why-section .eyebrow { color: var(--fresh-green); }
  .why-section h2 { color: var(--white); }
  .why-grid { display: grid; gap: var(--space-md); }
  .why-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-md);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
  }
  .why-item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
  .why-icon {
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--fresh-green);
    display: flex; align-items: center; justify-content: center; color: var(--fresh-green);
    font-weight: 700; margin-bottom: var(--space-md); font-size: 1rem;
    transition: background .25s ease, color .25s ease;
  }
  .why-item:hover .why-icon { background: var(--fresh-green); color: var(--deep-teal); }
  .why-item h3 { margin-bottom: 12px; color: var(--white); }
  .why-item p { font-size: 1.04rem; line-height: 1.65; color: rgba(255,255,255,0.82); }

  /* ---------- Our Partners ---------- */
  .partners-section { background: var(--white); }
  .partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .partner-card {
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--emerald-teal); }
  .partner-card img {
    max-height: 64px;
    width: auto;
    max-width: 100%;
    filter: grayscale(20%);
    opacity: 0.88;
    transition: filter .25s ease, opacity .25s ease;
  }
  .partner-card:hover img { filter: grayscale(0%); opacity: 1; }
  .partner-card.is-placeholder {
    border: 1.5px dashed var(--border-light);
    color: #9AA8A4;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
  }
  .partner-card.is-placeholder:hover { border-color: var(--emerald-teal); color: var(--emerald-teal); transform: none; box-shadow: none; }


  /* ---------- Who We Serve ---------- */
  .serve-grid { display: grid; gap: var(--space-md); }
  .serve-card {
    background: var(--off-white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: var(--space-lg) var(--space-md); text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  }
  .serve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); background: var(--white); }
  .serve-card .card-icon { margin: 0 auto var(--space-md); }
  .serve-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
  .serve-card p { font-size: 1.02rem; margin-bottom: var(--space-sm); line-height: 1.65; }


  /* ---------- Process ---------- */
  .process-section {
    background: var(--deep-teal);
    position: relative;
    overflow: hidden;
  }
  .process-section::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,58,60,0.55), rgba(13,58,60,0.92));
    z-index: 0;
  }
  .process-section::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -90px;
    width: 480px;
    height: 560px;
    background-image: var(--pattern01-url);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
  }
  .process-section .container { position: relative; z-index: 1; }
  .process-section .section-header h2, .process-section .section-header .eyebrow { color: var(--white); }
  .process-section .section-header p { color: rgba(255,255,255,0.7); }

  .process-track { display: flex; flex-direction: column; gap: var(--space-lg); }
  .process-step { display: flex; gap: var(--space-md); align-items: flex-start; transition: transform .25s ease; }
  .process-step:hover { transform: translateY(-4px); }
  .step-number {
    width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--fresh-green);
    color: var(--charcoal); font-weight: 800; display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; box-shadow: 0 0 0 7px rgba(87,188,117,0.15);
  }
  .step-content h3 { color: var(--white); margin-bottom: 10px; font-size: 1.4rem; }
  .step-content p { color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.6; }

  .process-arrow { display: flex; align-items: center; justify-content: center; opacity: .85; }
  .process-arrow svg { width: 30px; height: 30px; transform: rotate(90deg); }
  .process-arrow svg path { stroke: var(--fresh-green); stroke-width: 2.4; }

  /* ---------- Insights ---------- */
  .insights-head { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
  .insight-card { padding: 0; overflow: hidden; }
  .insight-photo { min-height: 170px; overflow: hidden; }
  .insight-photo img { width: 100%; height: 170px; object-fit: cover; transition: transform .5s var(--ease); }
  .insight-card:hover .insight-photo img { transform: scale(1.08); }
  .insight-body { padding: var(--space-md); }
  .insight-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald-teal); margin-bottom: 8px; display: block; }
  .insight-date { font-size: 0.8rem; color: #8A9A96; margin-top: 8px; }

  /* ---------- Final CTA ---------- */
  .final-cta { background: var(--deep-teal); text-align: center; position: relative; overflow: hidden; }
  .final-cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
  .final-cta h2 { color: var(--white); margin-bottom: var(--space-sm); }
  .final-cta p { color: rgba(255,255,255,0.75); margin-bottom: var(--space-lg); }
  .cta-watermark { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; opacity: 0.06; z-index: 1; animation: spinSlow 60s linear infinite; }
  .cta-shape { position: absolute; opacity: 0.16; z-index: 1; }
  .cta-shape.left { left: -30px; top: -30px; width: 130px; animation: floatShape 11s ease-in-out infinite; }

  .consultation-form { text-align: left; margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
  .form-row { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
  .form-field { display: flex; flex-direction: column; gap: 8px; }
  .form-field label {
    font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.85);
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .form-field input, .form-field select, .form-field textarea {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.28);
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .2s ease, background .2s ease;
  }
  .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.45); }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--fresh-green); background: rgba(255,255,255,0.13);
  }
  .form-field select option { color: var(--charcoal); }
  .form-field textarea { resize: vertical; min-height: 96px; }
  .form-status { font-size: 0.98rem; min-height: 1.3em; margin-top: -4px; }
  .form-status.success { color: var(--fresh-green); }
  .form-status.error { color: #ffb0ac; }
  #cf-submit[disabled] { opacity: 0.65; cursor: not-allowed; }
  @keyframes spinSlow { to { transform: rotate(360deg); } }
  @keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(6deg); }
  }

  /* ---------- Footer ---------- */
  .site-footer {
    background: #08282A;
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    overflow: hidden;
  }
  .site-footer::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 360px;
    height: 420px;
    background-image: var(--pattern01-url);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
  }
  .site-footer .container { position: relative; z-index: 1; }
  .footer-grid { display: grid; gap: var(--space-lg); margin-bottom: var(--space-lg); }
  .footer-brand .logo { margin-bottom: var(--space-md); }
  .footer-brand .logo img { height: 78px; }
  .footer-tagline { font-size: 1.02rem; line-height: 1.6; margin-bottom: var(--space-md); max-width: 300px; }
  .social-row { display: flex; gap: 12px; }
  .social-icon {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center; font-size: 0.92rem; color: var(--white);
    transition: border-color 0.2s ease, background 0.2s ease, transform .2s ease;
  }
  .social-icon:hover { border-color: var(--fresh-green); background: rgba(87,188,117,0.1); transform: translateY(-3px); }
  .footer-col h4 { color: var(--white); font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-md); }
  .footer-col ul { display: grid; gap: 13px; }
  .footer-col a { font-size: 1.02rem; transition: color 0.2s ease; }
  .footer-col a:hover { color: var(--fresh-green); }
  .footer-contact li { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.5; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); font-size: 0.92rem; }
  .footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }
  .footer-legal a:hover { color: var(--white); }

  .skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--fresh-green); color: var(--charcoal);
    padding: 12px 20px; z-index: 999; font-weight: 700;
  }
  .skip-link:focus { left: 12px; top: 12px; }

  /* =============== TABLET (>=768px) =============== */
  @media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-item { border-bottom: none; border-right: 1px solid var(--border-light); }
    .stat-item:last-child { border-right: none; }
    .card-grid.services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .serve-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
    .insights-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .card-grid.insights-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 580px; }
    .form-row { grid-template-columns: 1fr 1fr; }
  }

  /* =============== DESKTOP (>=1024px) =============== */
  @media (min-width: 1024px) {
    .hero-ctas { flex-direction: row; }
    .card-grid.services-grid { grid-template-columns: repeat(3, 1fr); }
    .card-grid.insights-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

    .process-track {
      flex-direction: row;
      align-items: flex-start;
    }
    .process-track .process-step { flex: 1 1 0; flex-direction: column; }
    .process-track .step-number { margin-bottom: var(--space-sm); }
    .process-arrow { flex: 0 0 auto; padding-top: 14px; }
    .process-arrow svg { transform: rotate(0deg); }
  }

  /* Full horizontal nav only once there's genuinely enough room for the
     logo + all nav items + the CTA button without crowding or shrinking. */
  @media (min-width: 1320px) {
    .main-nav { display: block; }
    .header-cta { display: inline-flex; }
    .hamburger { display: none; }
    .logo { flex-shrink: 0; }
  }

  @media (max-width: 767px) {
    .hero-icon-large { width: 170px; right: 4%; top: 66%; }
  }

  /* ---------------------------------------------------------------
     LEGAL PAGES (Terms of Use / Privacy Policy / Regulatory Disclosure)
     --------------------------------------------------------------- */
  .legal-hero {
    background: var(--deep-teal);
    padding: 64px 0 48px;
  }
  .legal-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
  .legal-hero .updated { color: rgba(255,255,255,0.7); margin-top: 12px; font-size: 0.98rem; }

  .legal-content { padding: 72px 0 96px; }
  .legal-content .container { max-width: 860px; }
  .legal-content h2 { font-size: 1.55rem; margin-top: var(--space-lg); margin-bottom: 14px; color: var(--deep-teal); }
  .legal-content h2:first-of-type { margin-top: 0; }
  .legal-content h3 { font-size: 1.15rem; margin-top: var(--space-md); margin-bottom: 8px; color: var(--charcoal); }
  .legal-content p { margin-bottom: var(--space-sm); }
  .legal-content ul, .legal-content ol { margin: 0 0 var(--space-sm) 1.4rem; }
  .legal-content li { margin-bottom: 8px; color: #4B5563; }
  .legal-content strong { color: var(--charcoal); }
  .legal-notice {
    background: rgba(19,137,118,0.08);
    border-left: 4px solid var(--emerald-teal);
    padding: var(--space-md);
    border-radius: 4px;
    margin-bottom: var(--space-lg);
    font-size: 0.96rem;
  }
  .legal-notice p:last-child { margin-bottom: 0; }
  .legal-toc {
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  .legal-toc h2 { margin: 0 0 12px; font-size: 1.05rem; }
  .legal-toc ol { margin: 0 0 0 1.2rem; }
  .legal-toc li { margin-bottom: 6px; }
  .legal-toc a { color: var(--emerald-teal); font-weight: 600; }
  .legal-toc a:hover { text-decoration: underline; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
    .hero-text > * { opacity: 1 !important; transform: none !important; }
    .hero-icon-large { opacity: 0.85 !important; transform: none !important; }
  }
