/* ==========================================================================
   Simple Telecom — Refreshed Brand Design System
   Built from brandguide.md (Simple Telecom Brand Standard v1.0)
   Rescue Blue primary · Rescue Orange accent · Simple Navy · Cloud · Inter
   ========================================================================== */

/* ==========================================================================
   Fonts — self-hosted (local, no third-party). Latin-subset Inter variable
   (~48 KB, all weights 100-900 via wght axis). See fa-subset.css for icons.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2-variations');
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  /* --- Brand colours (brandguide.md §14/§29) --- */
  --st-blue-700: #1464A5;
  --st-blue-600: #1976C2;
  --st-blue-500: #2589D7;

  --st-orange-700: #D85A12;
  --st-orange-600: #F06A1A;
  --st-orange-500: #FF7A24;

  --st-navy-900: #142536;
  --st-navy-800: #1C3348;

  --st-cloud-50: #F7F9FB;
  --st-cloud-100: #EEF3F7;
  --st-cloud-200: #DDE5EC;

  --st-white: #FFFFFF;
  --st-ink: #1d2733;

  /* --- Functional (brandguide.md §14.3) --- */
  --st-success-700: #237A45;
  --st-success-100: #E7F6EC;
  --st-warning-700: #9A6100;
  --st-warning-100: #FFF4D8;
  --st-error-700: #B42318;
  --st-error-100: #FEECEB;
  --st-info-700: #175EA8;
  --st-info-100: #EAF4FF;

  /* --- Semantic aliases --- */
  --color-primary: var(--st-blue-600);
  --color-primary-dark: var(--st-blue-700);
  --color-accent: var(--st-blue-700);
  --color-cta: var(--st-orange-600);
  --color-cta-dark: var(--st-orange-700);
  --color-text: var(--st-ink);
  --color-text-light: #4b5a6a;
  --color-text-muted: #7c8b99;
  --color-background: var(--st-white);
  --color-background-alt: var(--st-cloud-50);
  --color-background-gray: var(--st-cloud-100);
  --color-navy: var(--st-navy-900);

  /* --- Typography (brandguide.md §15) --- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);

  --fs-caption: 12px;
  --fs-small: 14px;
  --fs-normal: 16px;
  --fs-body-large: 18px;
  --fs-h4: 22px;
  --fs-h3: 28px;
  --fs-h2: 36px;
  --fs-h1: 48px;
  --fs-display: 56px;

  /* --- Spacing (brandguide.md §29) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* --- Radius (brandguide.md §21.3/§29) --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* --- Shadows (brandguide.md §29) --- */
  --shadow-sm: 0 2px 8px rgba(20, 37, 54, 0.06);
  --shadow-md: 0 4px 18px rgba(20, 37, 54, 0.08);
  --shadow-lg: 0 12px 36px rgba(20, 37, 54, 0.12);

  /* --- Layout (brandguide.md §19.4) --- */
  --container-max: 1200px;
  --section-pad-lg: clamp(64px, 8vw, 96px);
  --section-pad: clamp(48px, 6vw, 80px);
}

/* ==========================================================================
   Base — Reset & Typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-normal);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-normal); font-weight: 600; }
h6 { font-size: var(--fs-small); font-weight: 600; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

p {
  margin-bottom: 1em;
  max-width: 70ch;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

li {
  margin-bottom: 0.25em;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

figure {
  margin: 0 0 1em;
}

blockquote {
  margin: 1.5em 0;
  padding: var(--sp-4) var(--sp-6);
  border-left: 4px solid var(--color-primary);
  background: var(--color-background-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-light);
}

hr {
  border: none;
  border-top: 1px solid var(--color-background-gray);
  margin: var(--sp-12) 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5em;
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid var(--color-background-gray);
  padding: 0.75em 1em;
  text-align: left;
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

th {
  background-color: var(--color-background-alt);
  font-family: var(--font-heading);
  font-weight: 600;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.625em 0.9em;
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 194, 0.18);
}

code, pre {
  font-family: var(--font-sans);
  background: var(--color-background-alt);
  border-radius: var(--radius-sm);
}

code {
  padding: 0.125em 0.375em;
  font-size: 0.9em;
}

pre {
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.screen-reader-text {
  word-wrap: normal !important;
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.screen-reader-text:focus {
  background-color: var(--color-background-alt);
  clip-path: none;
  color: var(--color-text);
  display: block;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   Layout — Containers & Grid
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--sm {
  padding: var(--sp-8) 0;
}

.section--lg {
  padding: var(--section-pad-lg) 0;
}

.section--cloud {
  background-color: var(--color-background-alt);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.row--center {
  justify-content: center;
}

.row--align-center {
  align-items: center;
}

.col {
  flex: 1;
  min-width: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
}

.site-content {
  min-height: 60vh;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.alignleft {
  float: left;
  margin-right: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.alignright {
  float: right;
  margin-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--sp-4); }
.mb-1 { margin-bottom: var(--sp-4); }
.mt-2 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-6); }
.mt-3 { margin-top: var(--sp-10); }
.mb-3 { margin-bottom: var(--sp-10); }
.mt-4 { margin-top: var(--sp-16); }
.mb-4 { margin-bottom: var(--sp-16); }

/* Eyebrow label (small uppercase kicker) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--sp-3);
}

/* ==========================================================================
   Buttons (brandguide.md §21.1)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.2;
  min-height: 44px;
  padding: 0.7em 1.5em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — blue background, white text */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--st-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--st-white);
}

/* CTA — orange "rescue" action */
.btn-cta {
  background-color: var(--color-cta);
  color: var(--st-white);
  border-color: var(--color-cta);
  font-weight: 700;
}

.btn-cta:hover {
  background-color: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  color: var(--st-white);
}

/* Secondary — transparent bg, blue border/text */
.btn-secondary {
  background-color: var(--st-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--st-white);
  border-color: var(--color-primary);
}

/* Outline — for dark backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--st-white);
  border-color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.btn-outline:hover {
  background-color: var(--st-white);
  color: var(--color-navy);
  border-color: var(--st-white);
}

.btn--sm {
  font-size: var(--fs-caption);
  min-height: 44px;
  padding: 0.5em 1em;
}

.btn--lg {
  font-size: var(--fs-normal);
  min-height: 50px;
  padding: 0.85em 2em;
}

.btn--block {
  display: block;
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, #142536 0%, #1c3348 60%, #1464a5 130%);
  background-size: cover;
  background-position: center;
  color: var(--st-white);
  overflow: hidden;
}

.hero--image {
  background-repeat: no-repeat;
}

/* Compact title hero (blog, non-photo pages) */
.hero--title {
  padding: clamp(48px, 7vw, 88px) 0;
  min-height: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 37, 54, 0.88), rgba(20, 37, 54, 0.55));
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: var(--color-orange-500);
}

.hero h1 {
  font-size: clamp(38px, 6vw, var(--fs-display));
  color: var(--st-white);
  max-width: 20ch;
  margin: 0 auto 0.4em;
}

.hero .subtitle,
.hero .hero-subtitle {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto var(--sp-10);
  color: rgba(255, 255, 255, 0.88);
}

.hero .trust-line {
  margin-top: var(--sp-8);
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}

.hero .hero-actions {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-cloud-200);
}

.card__image img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  margin: calc(-1 * var(--sp-8)) calc(-1 * var(--sp-8)) var(--sp-6);
  width: calc(100% + var(--sp-16));
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--color-navy);
}

.card__text {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features {
  padding: var(--section-pad) 0;
}

.features h2 {
  text-align: center;
  margin: 0 auto var(--sp-6);
  max-width: 24ch;
}

.feature-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.feature-card {
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-cloud-200);
}

.feature-card__icon,
.feature-icon {
  font-size: 2.2em;
  margin-bottom: var(--sp-4);
  color: var(--color-primary);
}

.feature-card__title,
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--sp-2);
}

.feature-card__desc,
.feature-card p {
  color: var(--color-text-light);
  font-size: var(--fs-normal);
  margin: 0 auto;
}

.feature-link {
  display: inline-block;
  margin-top: var(--sp-4);
  font-weight: 600;
  color: var(--color-primary);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
  padding: var(--section-pad) 0;
}

.pricing h2 {
  text-align: center;
  margin: 0 auto var(--sp-6);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
}

.pricing-card--highlighted,
.pricing-card--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pricing-card--highlighted .badge-most-popular,
.pricing-card--featured .badge-most-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--st-white);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 1.1em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name,
.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--sp-2);
}

.pricing-card__price,
.pricing-amount {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-navy);
  margin: var(--sp-2) 0 var(--sp-4);
}

.pricing-card__price small,
.pricing-amount small {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-description {
  color: var(--color-text-light);
  margin-bottom: var(--sp-6);
}

.pricing-card__features,
.pricing-features {
  list-style: none;
  margin: 0 0 var(--sp-8);
  padding: 0;
  flex: 1;
}

.pricing-card__features li,
.pricing-features li {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-background-alt);
  color: var(--color-text-light);
  text-align: left;
}

.pricing-card__features li::before,
.pricing-features li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 0.5em;
}

.pricing-card__features li:last-child,
.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card__foot {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin-top: var(--sp-4);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.faq details {
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-md);
  background: var(--st-white);
  margin-bottom: var(--sp-3);
  padding: 0 var(--sp-5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq details[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  font-family: var(--font-heading);
  font-size: var(--fs-normal);
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  padding: var(--sp-4) 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.4em;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details[open] summary {
  margin-bottom: var(--sp-3);
}

.faq details > *:not(summary) {
  padding-bottom: var(--sp-5);
  color: var(--color-text-light);
  line-height: 1.65;
  max-width: none;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: var(--section-pad-lg) var(--sp-6);
  background-color: var(--color-primary);
  background-image: linear-gradient(135deg, var(--st-blue-700), var(--st-blue-500));
  color: var(--st-white);
}

.cta-section--dark {
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, #142536, #1c3348);
}

.cta-section--accent {
  background-color: var(--color-cta);
  background-image: linear-gradient(135deg, var(--st-orange-700), var(--st-orange-500));
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, var(--fs-h2));
  color: var(--st-white);
  margin: 0 auto var(--sp-4);
  max-width: 22ch;
}

.cta-section p {
  font-size: var(--fs-body-large);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto var(--sp-8);
  max-width: 640px;
}

.cta-section .btn {
  font-size: var(--fs-normal);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  padding: var(--section-pad) 0;
  background-color: var(--color-background-alt);
}

.testimonials > .container > h2 {
  text-align: center;
  margin: 0 auto var(--sp-8);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

.testimonial {
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  margin: 0;
  border-left: none;
  display: flex;
  flex-direction: column;
}

.testimonial__quote {
  font-size: var(--fs-body-large);
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: var(--sp-6);
  max-width: none;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 2.6em;
  line-height: 0;
  vertical-align: -0.45em;
  color: var(--color-primary);
  font-family: var(--font-sans);
}

.testimonial__attribution {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial__image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__author {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  color: var(--color-navy);
}

.testimonial__role {
  display: block;
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Content Section (articles)
   ========================================================================== */

.content-section {
  padding: var(--section-pad) 0;
}

.content-section h2 {
  font-size: var(--fs-h3);
  color: var(--color-navy);
  margin-bottom: var(--sp-4);
}

.content-section h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
}

.content-section p {
  color: var(--color-text-light);
  max-width: 70ch;
}

.content-section--center {
  text-align: center;
}

.content-section--center p {
  margin-left: auto;
  margin-right: auto;
}

.content-section__body {
  margin-top: var(--sp-4);
}

/* ==========================================================================
   Heading style / callout pill
   ========================================================================== */

.heading-style {
  display: inline-block;
  background-color: var(--color-cta);
  color: var(--st-white);
  padding: 5px 15px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Icon list
   ========================================================================== */

.icon-list {
  padding: var(--section-pad) 0;
}

.icon-list h2 {
  margin-bottom: var(--sp-6);
}

.icon-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.icon-list__items li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--color-background-alt);
  border-radius: var(--radius-md);
  margin: 0;
}

.icon-list__items i {
  color: var(--color-primary);
  font-size: 1.4em;
  margin-top: 0.1em;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.contact-form h2 {
  margin-bottom: var(--sp-6);
}

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-navy);
  margin-bottom: var(--sp-2);
}

.success {
  color: var(--st-success-700);
  background: var(--st-success-100);
  border: 1px solid var(--st-success-100);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}

.errors {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4);
  color: var(--st-error-700);
  background: var(--st-error-100);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--color-background-gray);
  background: var(--color-background-alt);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumbs li {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-primary);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--color-text-light);
  font-weight: 600;
}

/* ==========================================================================
   Top header bar
   ========================================================================== */

.top-header {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
}

.top-header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-6);
  padding: 6px clamp(20px, 4vw, 48px);
}

.top-header-container a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.top-header-container a:hover {
  color: var(--color-orange-500);
}

/* ==========================================================================
   Site header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  min-height: 72px;
  gap: var(--sp-6);
}

.site-branding {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.custom-logo-link {
  display: block;
  line-height: 0;
}

.custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
}

.site-branding-text {
  display: none;
}

.main-navigation {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Menu + CTA buttons on one row (desktop) */
.main-navigation-container {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.main-navigation-container .menu > ul,
ul#menu-primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

ul#menu-primary > li {
  position: relative;
  margin: 0;
}

.main-navigation-container a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.7em 0.9em;
  display: block;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.main-navigation-container a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--st-white);
  text-decoration: none;
}

/* Dropdown */
.menu-item-has-children > a::after {
  content: '\25BE';
  margin-left: 0.35em;
  font-size: 0.7em;
  vertical-align: middle;
  opacity: 0.7;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-md);
  min-width: 240px;
  list-style: none;
  margin: 2px 0 0;
  padding: var(--sp-2);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  padding: 0.55em 0.9em;
  font-size: var(--fs-small);
  font-weight: 500;
  /* Dropdown sits on a white panel — never inherit the navy header's white link colour */
  color: var(--color-navy);
}

.sub-menu a:hover {
  background-color: var(--color-background-alt);
  color: var(--color-navy);
}

/* Nav CTA buttons */
.nav-cta-group {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
}

li.nav-btn-login a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--st-white);
  border-radius: var(--radius-md);
  padding: 0.5em 1.1em;
}

li.nav-btn-login a:hover {
  background: rgba(255, 255, 255, 0.12);
}

li.nav-btn-signup a,
li.nav-btn-cta a {
  background-color: var(--color-cta);
  border: 1px solid var(--color-cta);
  color: var(--st-white);
  border-radius: var(--radius-md);
  padding: 0.5em 1.2em;
  font-weight: 700;
}

li.nav-btn-signup a:hover,
li.nav-btn-cta a:hover {
  background-color: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  color: var(--st-white);
}

li.nav-btn-contact a {
  background: transparent;
  border: 1px solid var(--color-orange-500);
  color: var(--color-orange-500);
  border-radius: var(--radius-md);
  padding: 0.5em 1.2em;
  font-weight: 600;
}

li.nav-btn-contact a:hover {
  background: var(--color-orange-500);
  color: var(--color-navy);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  color: var(--st-white);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  padding: 0.5em 0.9em;
  z-index: 1002;
}

.menu-toggle::before {
  content: '\2630';
  font-size: 1.1em;
  margin-right: 0.4em;
}

[href^="tel"] {
  font-weight: 600;
}

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

.site-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
}

.footer-area-footer-widgets {
  padding: var(--sp-16) 0 var(--sp-12);
}

.footer-widgets-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-10);
}

.widget {
  margin-bottom: 0;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-white);
  margin-bottom: var(--sp-5);
}

.textwidget p {
  margin-bottom: var(--sp-4);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_nav_menu li {
  margin-bottom: var(--sp-3);
}

.widget_nav_menu a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s;
}

.widget_nav_menu a:hover {
  color: var(--color-orange-500);
  text-decoration: none;
}

.footer-contact {
  margin-top: var(--sp-4);
}

.footer-contact a {
  color: var(--st-white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-contact a:hover {
  color: var(--color-orange-500);
  text-decoration: none;
}

.footer-contact a i {
  color: var(--color-orange-500);
}

.footer-area-site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--sp-5) 0;
}

.site-info-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.site-info {
  font-size: var(--fs-caption);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.site-info a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.site-info a:hover {
  color: var(--color-orange-500);
}

/* ==========================================================================
   Homepage bespoke sections
   ========================================================================== */

/* Value proposition */
.value-prop {
  padding: var(--section-pad-lg) 0;
  text-align: center;
}

.value-prop .container {
  max-width: 780px;
}

.value-prop h2 {
  font-size: clamp(28px, 4vw, var(--fs-h2));
  margin-bottom: var(--sp-4);
}

.value-prop p {
  font-size: var(--fs-body-large);
  color: var(--color-text-light);
  margin: 0 auto;
}

/* Product showcase (homepage) */
.home-products {
  padding: var(--section-pad) 0;
  background-color: var(--color-background-alt);
}

.home-products .section-head {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.home-products .section-head p {
  margin: var(--sp-2) auto 0;
  color: var(--color-text-light);
  max-width: 600px;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.home-product {
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.home-product__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--st-cloud-100), var(--st-cloud-50));
  color: var(--color-primary);
  font-size: 2.2em;
}

.home-product h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
}

.home-product p {
  color: var(--color-text-light);
  margin: 0 0 var(--sp-6);
  flex: 1;
}

/* Stats band */
.stat-band {
  padding: var(--sp-16) 0;
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, #142536, #1c3348);
  color: var(--st-white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-8);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  color: var(--st-white);
  line-height: 1;
}

.stat__value .sup {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--color-orange-500);
}

.stat__label {
  margin-top: var(--sp-3);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-small);
}

/* How it works */
.how-it-works {
  padding: var(--section-pad-lg) 0;
}

.how-it-works .section-head {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-8);
}

.step {
  text-align: center;
  padding: var(--sp-6);
}

.step__num {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--st-blue-700), var(--st-blue-500));
  color: var(--st-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-h4);
}

.step h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
}

.step p {
  color: var(--color-text-light);
  margin: 0 auto;
  max-width: 34ch;
}

/* Logo cloud (proof) */
.logo-cloud {
  padding: var(--sp-12) 0;
  background-color: var(--color-background-alt);
  border-top: 1px solid var(--color-background-gray);
  border-bottom: 1px solid var(--color-background-gray);
}

.logo-cloud p {
  text-align: center;
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
  max-width: none;
}

.logo-cloud__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-10);
  opacity: 0.7;
}

.logo-cloud__row img {
  max-height: 44px;
  width: auto;
  filter: grayscale(1);
  transition: filter 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
}

.logo-cloud__row img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Split feature sections (console / support) */
.split {
  padding: var(--section-pad) 0;
}

.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.split--flip .split__grid {
  direction: rtl;
}

.split--flip .split__grid > * {
  direction: ltr;
}

.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split h2 {
  font-size: clamp(26px, 3.6vw, var(--fs-h2));
  margin-bottom: var(--sp-4);
}

.split__body p {
  color: var(--color-text-light);
  font-size: var(--fs-body-large);
}

.split__list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
}

.split__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-weight: 500;
  color: var(--color-navy);
}

.split__list i {
  color: var(--color-primary);
  margin-top: 0.1em;
}

.split .btn {
  margin-top: var(--sp-6);
}

/* Blog listing (restyled) */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}

.post-card {
  background: var(--st-white);
  border: 1px solid var(--color-background-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-card__date {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

.post-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
}

.post-card h3 a {
  color: var(--color-navy);
}

.post-card h3 a:hover {
  color: var(--color-primary);
}

.post-card p {
  color: var(--color-text-light);
  margin-bottom: var(--sp-5);
  flex: 1;
}

.post-card__link {
  font-weight: 600;
}

/* ==========================================================================
   Scroll animations
   ========================================================================== */

.fl-animation {
  opacity: 0;
}

.fl-animated {
  opacity: 1;
  animation-fill-mode: both;
}

.fl-animated.fl-fade-left { animation: fl-fade-left 0.9s ease; }
.fl-animated.fl-fade-right { animation: fl-fade-right 0.9s ease; }
.fl-animated.fl-fade-up { animation: fl-fade-up 0.9s ease; }
.fl-animated.fl-fade-down { animation: fl-fade-down 0.9s ease; }

@keyframes fl-fade-left {
  from { opacity: 0; transform: translate3d(-32px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fl-fade-right {
  from { opacity: 0; transform: translate3d(32px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fl-fade-up {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fl-fade-down {
  from { opacity: 0; transform: translate3d(0, -28px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.fl-animated[data-delay="1"] { animation-delay: 0.1s; }
.fl-animated[data-delay="2"] { animation-delay: 0.2s; }
.fl-animated[data-delay="3"] { animation-delay: 0.3s; }
.fl-animated[data-delay="4"] { animation-delay: 0.4s; }
.fl-animated[data-delay="5"] { animation-delay: 0.5s; }
.fl-animated[data-delay="6"] { animation-delay: 0.6s; }
.fl-animated[data-delay="7"] { animation-delay: 0.7s; }
.fl-animated[data-delay="8"] { animation-delay: 0.8s; }
.fl-animated[data-delay="9"] { animation-delay: 0.9s; }
.fl-animated[data-delay="10"] { animation-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
  .fl-animation {
    opacity: 1;
  }
  .fl-animated {
    animation: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }

  .home-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .split--flip .split__grid {
    direction: ltr;
  }
}

@media (max-width: 880px) {
  /* Mobile nav */
  .top-header-container {
    justify-content: center;
  }

  .site-header-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-3);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-navigation-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--st-white);
    border-bottom: 1px solid var(--color-background-gray);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    padding: var(--sp-4) clamp(20px, 4vw, 48px);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .main-navigation-container.toggled {
    display: block;
  }

  .main-navigation-container .menu > ul,
  ul#menu-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  ul#menu-primary li {
    margin: 0;
  }

  .main-navigation-container a {
    padding: 0.85em 0.5em;
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    /* drawer is a light panel — flip links back to navy */
    color: var(--color-navy);
  }

  .main-navigation-container a:hover {
    background-color: var(--color-background-alt);
    color: var(--color-navy);
  }

  .sub-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    background: var(--color-background-alt);
    border-radius: var(--radius-md);
    padding: var(--sp-2);
    margin: 0 0 var(--sp-2) var(--sp-4);
  }

  .menu-item-has-children > a::after {
    float: right;
  }

  .nav-cta-group {
    margin-left: 0;
    flex-wrap: wrap;
    padding: var(--sp-3) 0;
    gap: var(--sp-3);
  }

  li.nav-btn-login,
  li.nav-btn-signup,
  li.nav-btn-cta,
  li.nav-btn-contact {
    width: 100%;
  }

  li.nav-btn-login a,
  li.nav-btn-signup a,
  li.nav-btn-cta a,
  li.nav-btn-contact a {
    text-align: center;
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* drawer CTA outlines → navy ink on the light panel */
  li.nav-btn-login a {
    border-color: var(--color-cloud-200);
    color: var(--color-navy);
  }
  li.nav-btn-login a:hover {
    background: var(--color-background-alt);
  }
  li.nav-btn-contact a {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  li.nav-btn-contact a:hover {
    background: var(--color-primary);
    color: var(--st-white);
  }

  .home-product-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
  }

  .site-info-inner {
    justify-content: center;
    text-align: center;
  }

  .hero .hero-actions {
    flex-direction: column;
  }

  .hero .btn {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
