/* =====================================================================
   OPTECOS — Core stylesheet
   Shared on every page. Page-specific CSS layered on top of this file.
   See: Brand Guidelines §5 (colour), §6 (typography), §7 (spacing).

   STRUCTURE:
     01  Design tokens (two palettes: UI + logo)
     02  Reset
     03  Typography base
     04  Self-hosted fonts (@font-face)
     05  Layout container & utilities
     06  Buttons
     07  Forms
     08  FAQ / accordion
     09  Shared header (optecos-nav + mega menu)
     10  Shared footer
     11  Skip link & accessibility
     12  Prefers-reduced-motion
   ===================================================================== */


/* 01 — DESIGN TOKENS ================================================== */
:root {
	/* Website UI palette — extracted from service-page HTML (do NOT reuse logo values) */
	--color-bg-primary:    #F8F7F3;   /* Warm White  — main canvas */
	--color-bg-secondary:  #F2F0E9;   /* Ivory 2     — panels */
	--color-bg-tertiary:   #ECE8DE;   /* Ivory 3     — tertiary surface */
	--color-text-primary:  #17243A;   /* Ink Navy    — body text & dark surfaces */
	--color-text-secondary: rgba(23, 36, 58, 0.70);
	--color-text-muted:    rgba(23, 36, 58, 0.50);
	--color-border:        rgba(23, 36, 58, 0.10);
	--color-border-strong: rgba(23, 36, 58, 0.15);
	--color-divider-subtle: rgba(23, 36, 58, 0.08);
	--color-tint-subtle:   rgba(23, 36, 58, 0.04);
	--color-accent-gold:   #C6A76A;   /* Muted Gold — accent (NOT a body text colour) */
	--color-accent-blue:   #A8C8EC;   /* Sky Blue   — supporting */
	--color-accent-apricot:#E9B99A;   /* Apricot    — supporting */

	/* Logo palette — kept separate per Brand Guidelines §5.3 */
	--logo-gold:  #C9A66B;
	--logo-navy:  #101522;
	--logo-ivory: #F7F6F2;
	--logo-near-black: #08090B;

	/* Typography */
	--font-sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-editorial:"Fraunces", Georgia, serif;

	/* Fluid type scale */
	--fs-display:   clamp(38px, 5.6vw, 76px);
	--fs-h1:        clamp(34px, 4.6vw, 60px);
	--fs-h2:        clamp(32px, 4.4vw, 54px);
	--fs-h3:        clamp(22px, 2.4vw, 28px);
	--fs-h4:        18px;
	--fs-body:      16px;
	--fs-body-lg:   17px;
	--fs-body-sm:   14.5px;
	--fs-micro:     13px;
	--fs-eyebrow:   12px;

	/* Spacing scale (Brand Guidelines §7) */
	--space-2xs: 4px;
	--space-xs:  8px;
	--space-sm:  12px;
	--space-md:  16px;
	--space-lg:  24px;
	--space-xl:  32px;
	--space-2xl: 48px;
	--space-3xl: 64px;
	--space-4xl: 80px;
	--space-5xl: 96px;
	--space-6xl: 120px;

	/* Layout */
	--container-max: 1240px;
	--container-gutter: 48px;
	--container-gutter-mobile: 20px;

	/* Radius & shadow */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-pill: 999px;
	--shadow-card: 0 30px 60px -20px rgba(23, 36, 58, 0.12);

	/* Motion */
	--ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast: 0.2s;
	--dur-med:  0.35s;
	--dur-slow: 0.7s;

	/* Header height (used by anchor-offset, scroll-margin-top) */
	--header-h: 76px;
}


/* 02 — RESET ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--color-text-primary);
	background: var(--color-bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--color-border); }

/* Honour the header when jumping to a section via #hash */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }


/* 03 — TYPOGRAPHY BASE ================================================= */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--color-text-primary);
}
em, i, .italic {
	font-family: var(--font-editorial);
	font-style: italic;
	font-weight: 400;
}

:where(b, strong, th) { font-weight: 600; }  /* editor bold = Inter 600 (700 is not loaded) */

/* Eyebrow label pattern reused by many sections */
.optecos-eyebrow {
	font-size: var(--fs-eyebrow);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent-gold);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.optecos-eyebrow::before {
	content: '';
	width: 20px;
	height: 1px;
	background: var(--color-accent-gold);
}


/* 04 — FONTS (self-hosted, no Google Fonts) ============================
   Only the weights the site actually uses. Files live in assets/fonts/.
   "latin-ext" files load only when a page uses those characters (e.g. the ₹ sign).
   font-display: swap = text shows at once in a fallback font, then swaps. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/fraunces-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/fraunces-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/fraunces-400-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/fraunces-400-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/montserrat-300-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* 05 — LAYOUT & UTILITIES ============================================== */
.optecos-container {
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-gutter);
	padding-right: var(--container-gutter);
}
@media (max-width: 720px) {
	.optecos-container {
		padding-left: var(--container-gutter-mobile);
		padding-right: var(--container-gutter-mobile);
	}
}
.optecos-sr-only {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* 06 — BUTTONS ========================================================= */
.optecos-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	transition: transform var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
	cursor: pointer;
	white-space: nowrap;
}
.optecos-btn--primary {
	background: var(--color-text-primary);
	color: var(--color-bg-primary);
}
.optecos-btn--primary:hover { transform: translateY(-2px); background: #0d1626; }
.optecos-btn--primary::after { content: '→'; transition: transform var(--dur-fast); }
.optecos-btn--primary:hover::after { transform: translateX(4px); }

.optecos-btn--ghost {
	background: transparent;
	color: var(--color-text-primary);
	border: 1px solid var(--color-border-strong);
}
.optecos-btn--ghost:hover { background: var(--color-tint-subtle); }

.optecos-btn--on-dark.optecos-btn--primary {
	background: var(--color-bg-primary);
	color: var(--color-text-primary);
}
.optecos-btn--on-dark.optecos-btn--primary:hover { background: #fff; }


/* 07 — FORMS (shared enquiry pattern) ================================= */
.optecos-form { max-width: 640px; margin: 0 auto; }
.optecos-form__row { display: flex; flex-direction: column; margin-bottom: 20px; }
.optecos-form__label {
	font-size: 13px;
	margin-bottom: 8px;
	color: var(--color-text-primary);
	font-weight: 500;
}
.optecos-form__input,
.optecos-form__select,
.optecos-form__textarea {
	padding: 14px 16px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	background: var(--color-bg-primary);
	font-size: 15px;
	color: var(--color-text-primary);
	transition: border-color var(--dur-fast);
}
.optecos-form__input:focus,
.optecos-form__select:focus,
.optecos-form__textarea:focus {
	outline: none;
	border-color: var(--color-accent-gold);
}
.optecos-form__textarea { min-height: 140px; resize: vertical; }
.optecos-form__status {
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	margin-top: 16px;
}
.optecos-form__status.is-success { background: #e9f5ea; color: #1f6b2a; }
.optecos-form__status.is-error   { background: #fbeaea; color: #8c1b1b; }


/* 08 — FAQ / ACCORDION ================================================ */
.optecos-faq { border-top: 1px solid var(--color-border); }
.optecos-faq__item { border-bottom: 1px solid var(--color-border); }
.optecos-faq__trigger {
	width: 100%;
	text-align: left;
	padding: 24px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	font-size: 17px;
	font-weight: 500;
	color: var(--color-text-primary);
	letter-spacing: -0.01em;
}
.optecos-faq__trigger::after {
	content: '+';
	font-size: 22px;
	font-weight: 400;
	transition: transform var(--dur-fast);
	color: var(--color-accent-gold);
}
.optecos-faq__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.optecos-faq__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--dur-med) var(--ease-standard);
}
.optecos-faq__panel[aria-hidden="false"] { max-height: 1200px; }
.optecos-faq__panel-inner {
	padding: 0 0 24px 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--color-text-secondary);
	max-width: 760px;
}


/* 09 — SHARED HEADER (optecos-nav v7 — approved header, single source of truth) ====
   Home · Services (mega) · Problems We Fix (mega) · Insights · About · Let's Talk.
   Page stylesheets must NOT redefine these selectors. */
.optecos-nav,
.optecos-mobile {
  --warm-white: #F8F7F3;
  --ivory-2: #F2F0E9;
  --ink-navy: #17243A;
  --navy-70: rgba(23,36,58,0.70);
  --navy-50: rgba(23,36,58,0.50);
  --navy-15: rgba(23,36,58,0.15);
  --navy-10: rgba(23,36,58,0.10);
  --navy-08: rgba(23,36,58,0.08);
  --navy-04: rgba(23,36,58,0.04);
  --muted-gold: #C6A76A;
  font-family: 'Inter', sans-serif;
}
:where(.optecos-nav a, .optecos-mobile a) { text-decoration: none; color: inherit; }
.optecos-nav button, .optecos-mobile button { font: inherit; cursor: pointer; }
.optecos-nav *, .optecos-mobile * { box-sizing: border-box; }
.optecos-nav ul, .optecos-mobile ul { list-style: none; }

/* Logo (official PNG, transparent) */
.optecos-logo-img { display: block; width: 170px; height: 32px; max-width: none; object-fit: contain; object-position: left center; }
@media (max-width: 640px) { .optecos-nav .optecos-logo-img, .optecos-mobile .optecos-logo-img { width: 130px; height: 26px; } }

/* Primary button used inside the mobile menu */
.optecos-nav-btn {
  padding: 15px 28px; border-radius: 100px; background: var(--ink-navy);
  color: var(--warm-white) !important; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, background 0.2s;
}
.optecos-nav-btn:hover { transform: translateY(-2px); background: #0d1626; }
.optecos-nav-btn::after { content: '→'; transition: transform 0.2s; }
.optecos-nav-btn:hover::after { transform: translateX(4px); }
.optecos-mobile__foot .optecos-nav-btn { width: 100%; justify-content: center; }

.optecos-nav {
    position: sticky; top: 0; z-index: 90;
    background: rgba(248,247,243,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navy-08);
  }
  .optecos-nav__inner {
    position: relative;
    max-width: 1440px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 48px; gap: 28px;
  }
  .optecos-nav__logo { display: inline-flex; align-items: center; line-height: 1; flex-shrink: 0; }

  .optecos-nav__links {
    display: flex; gap: 28px; align-items: center;
    font-size: 14px;
  }
  .optecos-nav__item { position: static; }
  .optecos-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-navy); opacity: 0.72;
    transition: opacity 0.2s;
    padding: 6px 0;
    font: inherit; cursor: pointer; background: transparent; border: 0;
    white-space: nowrap;
    position: relative;
  }
  .optecos-nav__link:hover { opacity: 1; }
  .optecos-nav__link[aria-current="page"],
  .optecos-nav__link.is-active { opacity: 1; font-weight: 500; }
  .optecos-nav__link[aria-current="page"]::after,
  .optecos-nav__link.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--muted-gold);
  }

  .optecos-nav__chevron {
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s;
    margin-left: 2px;
  }
  .optecos-nav__trigger[aria-expanded="true"] .optecos-nav__chevron {
    transform: translateY(2px) rotate(-135deg);
  }

  .optecos-nav__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
  .optecos-nav__cta {
    padding: 10px 20px; border-radius: 100px; background: var(--ink-navy);
    color: var(--warm-white); font-size: 13px; font-weight: 500;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
  }
  .optecos-nav__cta:hover { transform: translateY(-1px); background: #0d1626; }

  .optecos-nav__hamburger {
    display: none; width: 40px; height: 40px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: transparent; border: 0; cursor: pointer;
    padding: 0;
  }
  .optecos-nav__hamburger span {
    display: block; width: 22px; height: 1.5px; background: var(--ink-navy);
  }

  /* --- Mega menu (shared base) --- */
  .optecos-megamenu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--warm-white);
    border: 1px solid var(--navy-08);
    border-radius: 6px;
    box-shadow: 0 30px 60px -20px rgba(23,36,58,0.18);
    padding: 32px;
    z-index: 95;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
  }
  .optecos-megamenu[data-open="true"] {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* --- Services: three-column variant --- */
  .optecos-megamenu--services {
    width: min(940px, calc(100vw - 48px));
  }
  .optecos-megamenu--services .optecos-megamenu__inner {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  }
  .optecos-megamenu__col {
    display: flex; flex-direction: column; gap: 10px;
    min-width: 0;
    padding: 0 4px;
  }
  .optecos-megamenu__col + .optecos-megamenu__col {
    border-left: 1px solid var(--navy-08);
    padding-left: 32px;
  }
  .optecos-megamenu__col-title {
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500;
    padding-bottom: 12px; border-bottom: 1px solid var(--navy-10);
    margin-bottom: 4px;
  }
  .optecos-megamenu__col-title a {
    color: inherit;
    transition: color 0.15s;
  }
  .optecos-megamenu__col-title a:hover { color: var(--ink-navy); }
  .optecos-megamenu__col-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  /* Services offerings are informational text — no hover, no pointer. */
  .optecos-megamenu__col-list li {
    font-size: 14px; color: var(--ink-navy); opacity: 0.74;
    line-height: 1.4;
    cursor: default;
  }
  .optecos-megamenu__explore {
    margin-top: 14px;
    padding-top: 14px;
    font-size: 13px; font-weight: 500; color: var(--ink-navy);
    display: inline-flex; align-items: center; gap: 8px;
    border-top: 1px dashed var(--navy-10);
    transition: color 0.15s;
  }
  .optecos-megamenu__explore::after { content: '→'; transition: transform 0.2s; }
  .optecos-megamenu__explore:hover { color: var(--muted-gold); }
  .optecos-megamenu__explore:hover::after { transform: translateX(4px); }

  /* --- Problems: single-column variant, narrower, each item a real link --- */
  .optecos-megamenu--problems {
    width: min(360px, calc(100vw - 48px));
    padding: 20px 20px 18px;
  }
  .optecos-megamenu--problems .optecos-megamenu__title {
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500;
    padding: 4px 12px 12px;
    border-bottom: 1px solid var(--navy-10);
    margin-bottom: 8px;
  }
  .optecos-megamenu__links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
  }
  .optecos-megamenu__links a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px;
    font-size: 14.5px; color: var(--ink-navy);
    border-radius: 4px;
    line-height: 1.35;
    transition: background 0.15s, color 0.15s;
  }
  .optecos-megamenu__links a::after {
    content: '→';
    font-size: 14px; color: var(--muted-gold);
    opacity: 0; transform: translateX(-4px);
    transition: opacity 0.15s, transform 0.15s;
  }
  .optecos-megamenu__links a:hover {
    background: var(--ivory-2);
  }
  .optecos-megamenu__links a:hover::after {
    opacity: 1; transform: translateX(0);
  }
  .optecos-megamenu--problems .optecos-megamenu__explore {
    margin: 10px 12px 0;
    padding-top: 14px;
  }

  /* --- Mobile menu --- */
  .optecos-mobile {
    position: fixed; inset: 0; z-index: 100;
    background: var(--warm-white);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
    display: flex; flex-direction: column;
    padding: 24px 28px;
    overflow-y: auto;
  }
  .optecos-mobile[data-open="true"] { transform: translateX(0); }
  .optecos-mobile__top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; border-bottom: 1px solid var(--navy-08);
  }
  .optecos-mobile__close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--ink-navy);
    background: transparent; border: 0; cursor: pointer;
  }
  .optecos-mobile__nav {
    display: flex; flex-direction: column;
    padding: 8px 0 20px; flex: 1;
  }
  .optecos-mobile__link, .optecos-mobile__trigger {
    font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
    padding: 18px 0; color: var(--ink-navy);
    text-align: left; background: transparent; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    font-family: inherit;
    border-bottom: 1px solid var(--navy-08);
  }
  .optecos-mobile__link.is-active { color: var(--muted-gold); }
  .optecos-mobile__chevron {
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform 0.3s;
    margin-right: 4px; flex-shrink: 0;
  }
  .optecos-mobile__trigger[aria-expanded="true"] .optecos-mobile__chevron {
    transform: rotate(-135deg);
  }
  .optecos-mobile__accordion {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65,0,0.35,1);
  }
  .optecos-mobile__accordion-inner {
    padding: 6px 0 14px 0;
  }

  /* Nested Services category trigger */
  .optecos-mobile__cat {
    border-bottom: 1px solid var(--navy-08);
  }
  .optecos-mobile__cat:last-child { border-bottom: 0; }
  .optecos-mobile__cat-trigger {
    font-size: 16px; font-weight: 500; letter-spacing: -0.012em;
    padding: 16px 0 16px 16px; color: var(--ink-navy);
    text-align: left; background: transparent; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    font-family: inherit;
  }
  .optecos-mobile__cat-trigger .optecos-mobile__chevron { width: 8px; height: 8px; }
  .optecos-mobile__cat-accordion {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.65,0,0.35,1);
  }
  .optecos-mobile__cat-list {
    list-style: none; padding: 4px 0 8px 16px; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  /* Services offerings on mobile — informational text, not links. */
  .optecos-mobile__cat-list li {
    font-size: 15px; color: var(--ink-navy); opacity: 0.74;
    line-height: 1.4;
    cursor: default;
  }
  .optecos-mobile__cat-explore {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 6px 0 14px 16px;
    font-size: 13.5px; font-weight: 500; color: var(--ink-navy);
  }
  .optecos-mobile__cat-explore::after { content: '→'; }

  /* Mobile Problems — flat list of real links inside the accordion. */
  .optecos-mobile__problem-list {
    list-style: none; padding: 4px 0 4px 16px; margin: 0;
    display: flex; flex-direction: column;
  }
  .optecos-mobile__problem-list a {
    display: block;
    font-size: 16px; font-weight: 500; letter-spacing: -0.012em;
    padding: 14px 0; color: var(--ink-navy);
    border-bottom: 1px solid var(--navy-08);
    line-height: 1.35;
  }
  .optecos-mobile__problem-list li:last-child a { border-bottom: 0; }
  .optecos-mobile__problem-explore {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 10px 0 6px 16px;
    font-size: 13.5px; font-weight: 500; color: var(--ink-navy);
  }
  .optecos-mobile__problem-explore::after { content: '→'; }

  .optecos-mobile__foot {
    padding-top: 18px; margin-top: 8px;
    border-top: 1px solid var(--navy-08);
  }
  

  /* --- Responsive --- */
  @media (max-width: 1180px) {
    .optecos-nav__inner { padding: 18px 32px; gap: 20px; }
    .optecos-nav__links { gap: 22px; }
  }
  @media (max-width: 960px) {
    .optecos-nav__links { display: none; }
    .optecos-nav__hamburger { display: flex; }
    .optecos-nav__cta { display: none; }
    .optecos-megamenu { display: none; }
  }
  @media (max-width: 640px) {
    .optecos-nav__inner { padding: 16px 20px; }
  }
  
/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .optecos-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .optecos-nav { top: 46px; } }

/* 10 — SHARED FOOTER (approved optecos-footer v1) ===================== */
.optecos-footer {
  --of-ivory: #F8F7F3; --of-gold: #C6A76A;
  background: #101522; color: var(--of-ivory);
  padding: 72px 48px 28px; font-family: 'Inter', sans-serif;
}
.optecos-footer a { text-decoration: none; color: inherit; }
.optecos-footer__inner { max-width: 1240px; margin: 0 auto; }
.optecos-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(248,247,243,0.12);
}
.optecos-footer__home { display: block; padding: 2px 0; }
.optecos-footer .optecos-logo-img { width: 195px; height: 40px; max-width: 100%; }
.optecos-footer__brand p { font-size: 14px; line-height: 1.6; color: rgba(248,247,243,0.68); margin: 20px 0 0; max-width: 300px; }
.optecos-footer__cta {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--of-ivory); transition: color 0.2s;
}
.optecos-footer__cta::after { content: '\2192'; color: var(--of-gold); transition: transform 0.2s; }
@media (hover: hover) {
  .optecos-footer__cta:hover { color: var(--of-gold); }
  .optecos-footer__cta:hover::after { transform: translateX(4px); }
}
.optecos-footer__col summary {
  list-style: none; cursor: default; pointer-events: none;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--of-gold); font-weight: 500; margin-bottom: 18px;
}
.optecos-footer__col summary::-webkit-details-marker { display: none; }
.optecos-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.optecos-footer__col li { padding: 0; margin: 0; }
.optecos-footer__col a { display: inline-block; padding: 4px 0; font-size: 14px; line-height: 1.5; color: rgba(248,247,243,0.78); transition: color 0.2s; }
.optecos-footer__col a:focus-visible { color: #fff; }
@media (hover: hover) { .optecos-footer__col a:hover { color: #fff; } }
.optecos-footer__email {
  display: flex; width: fit-content; align-items: center; min-height: 44px; font-size: 14px;
  color: rgba(248,247,243,0.68); transition: color 0.2s;
}
@media (hover: hover) { .optecos-footer__email:hover { color: #fff; } }
.optecos-footer__social { display: flex; gap: 10px; margin-top: 12px; }
.optecos-footer__social a {
  width: 36px; height: 36px; border: 1px solid rgba(248,247,243,0.25); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(248,247,243,0.8);
}
.optecos-footer__bottom {
  padding-top: 24px; font-size: 13px; color: rgba(248,247,243,0.66);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.optecos-footer__bottom-links a { margin-left: 20px; }
.optecos-footer__bottom-links a:first-child { margin-left: 0; }
@media (max-width: 960px) {
  .optecos-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .optecos-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .optecos-footer { padding: 44px max(20px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .optecos-footer__grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
  .optecos-footer__brand { padding-bottom: 28px; }
  .optecos-footer__home { min-height: 44px; display: flex; align-items: center; }
  .optecos-footer__col { border-top: 1px solid rgba(248,247,243,0.12); }
  .optecos-footer__col summary {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0; min-height: 56px; padding: 0; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  }
  .optecos-footer__col summary::after {
    content: ''; width: 8px; height: 8px; margin-right: 4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform 0.25s;
  }
  .optecos-footer__col[open] summary::after { transform: rotate(-135deg); }
  .optecos-footer__col ul { padding-bottom: 12px; gap: 0; }
  .optecos-footer__col a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .optecos-footer__bottom { padding-top: 18px; border-top: 1px solid rgba(248,247,243,0.12); flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .optecos-footer *, .optecos-footer *::after { transition: none !important; } }


/* 11 — SKIP LINK & A11Y ============================================== */
.optecos-skip-link {
	position: absolute;
	top: -70px;
	left: 8px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--color-text-primary);
	color: var(--color-bg-primary);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
	transition: top var(--dur-fast);
}
.optecos-skip-link:focus { top: 8px; }

:focus-visible {
	outline: 2px solid var(--color-accent-gold);
	outline-offset: 3px;
	border-radius: 2px;
}


/* 12 — PREFERS-REDUCED-MOTION ======================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Inline logo SVG sizing (all headers / footer / mobile menu) */
.optecos-logo-svg { display: block; height: 34px; width: auto; max-width: none; flex-shrink: 0; }
.a-logo, .optecos-logo { flex-shrink: 0; }
@media (max-width: 768px) { .optecos-logo-svg { height: 28px; } }

/* ===== 10. Generic content (default pages, legal pages, archives, 404) ===== */
.optecos-page__body h2, .optecos-prose h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.015em; margin: 2em 0 .6em; }
.optecos-page__body h3, .optecos-prose h3 { font-size: 20px; font-weight: 500; margin: 1.6em 0 .5em; }
.optecos-page__body p, .optecos-prose p { margin: 0 0 1.1em; }
.optecos-page__body ul, .optecos-page__body ol, .optecos-prose ul, .optecos-prose ol { margin: 0 0 1.2em 1.3em; }
.optecos-page__body li, .optecos-prose li { margin-bottom: .4em; }
.optecos-page__body a, .optecos-prose a { color: var(--color-text-primary); text-decoration: underline; text-decoration-color: #C6A76A; text-underline-offset: 3px; }
.post-pagination { margin-top: 2em; }


/* Approved page designs inherit heading colour from their section (dark sections use light text). */
.a-wrap :where(h1, h2, h3, h4, h5, h6),
.ab-wrap :where(h1, h2, h3, h4, h5, h6),
.g-wrap :where(h1, h2, h3, h4, h5, h6),
.b-wrap :where(h1, h2, h3, h4, h5, h6),
.c-wrap :where(h1, h2, h3, h4, h5, h6),
.i-wrap :where(h1, h2, h3, h4, h5, h6),
.p-wrap :where(h1, h2, h3, h4, h5, h6),
.lt-wrap :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
