/*
Theme Name: AI Agency Ltd
Theme URI: https://aiagencyltd.com
Author: AI Agency Ltd
Author URI: https://aiagencyltd.com
Description: A high-performance, SEO-optimised WordPress theme for AI Agency Ltd — AI-augmented performance marketing. Built for GeneratePress child theme compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: aiagency
Tags: performance-marketing, seo, ai-agency, conversion-optimised
*/

/* ============================================================
   DESIGN SYSTEM — CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colours */
  --clr-bg:           #080C14;
  --clr-bg-2:         #0D1320;
  --clr-bg-card:      #111827;
  --clr-border:       rgba(255,255,255,0.07);
  --clr-accent:       #00E5FF;
  --clr-accent-2:     #0077FF;
  --clr-accent-glow:  rgba(0,229,255,0.18);
  --clr-white:        #FFFFFF;
  --clr-off-white:    #CBD5E1;
  --clr-muted:        #64748B;
  --clr-success:      #22C55E;
  --clr-warning:      #F59E0B;
  --clr-danger:       #EF4444;

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, #00E5FF 0%, #0077FF 100%);
  --grad-dark:        linear-gradient(180deg, #080C14 0%, #0D1320 100%);
  --grad-card:        linear-gradient(135deg, rgba(17,24,39,0.9) 0%, rgba(13,19,32,0.95) 100%);
  --grad-hero:        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,119,255,0.22) 0%, transparent 70%);
  --grad-cta:         linear-gradient(135deg, rgba(0,229,255,0.12) 0%, rgba(0,119,255,0.08) 100%);

  /* Typography */
  --font-display:     'Syne', sans-serif;
  --font-body:        'DM Sans', sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:         0.5rem;
  --space-sm:         1rem;
  --space-md:         1.5rem;
  --space-lg:         2.5rem;
  --space-xl:         4rem;
  --space-2xl:        6rem;
  --space-3xl:        9rem;

  /* Borders & Radii */
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-pill:      999px;

  /* Shadows */
  --shadow-card:      0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow:      0 0 40px rgba(0,229,255,0.15);
  --shadow-btn:       0 4px 20px rgba(0,119,255,0.35);

  /* Transitions */
  --ease:             cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:         0.18s;
  --dur-mid:          0.32s;
  --dur-slow:         0.6s;

  /* Layout */
  --max-w:            1200px;
  --max-w-text:       720px;
  --header-h:         72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--clr-bg);
  color: var(--clr-off-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--clr-white); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-white);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
p  { color: var(--clr-off-white); max-width: 68ch; }

strong { color: var(--clr-white); font-weight: 600; }
code, pre { font-family: var(--font-mono); font-size: 0.875em; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1400px; }

.section { padding-block: var(--space-2xl); }
.section--lg { padding-block: var(--space-3xl); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-md); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title { margin-bottom: var(--space-sm); }
.section-subtitle {
  font-size: 1.125rem;
  color: var(--clr-muted);
  max-width: 60ch;
  margin-bottom: var(--space-lg);
}

.highlight {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn:hover::after { opacity: 0.06; }

.btn--primary {
  background: var(--grad-brand);
  color: #000;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,119,255,0.45);
  color: #000;
}

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--clr-white);
  border: 1px solid var(--clr-border);
}

.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--clr-white); }

.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--dur-mid) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--dur-mid);
}

.card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--dur-mid), backdrop-filter var(--dur-mid), box-shadow var(--dur-mid);
}

#site-header.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--grad-brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.site-logo:hover { color: var(--clr-white); }

#primary-nav { display: flex; align-items: center; gap: var(--space-md); }

#primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-off-white);
  transition: color var(--dur-fast);
  position: relative;
}

#primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transition: transform var(--dur-fast) var(--ease);
}

#primary-nav a:hover { color: var(--clr-white); }
#primary-nav a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: var(--space-sm); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-mid) var(--ease);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--clr-off-white) !important;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--clr-white) !important;
}

.dropdown-menu a::after { display: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; gap: var(--space-md); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: var(--radius-pill);
  padding: 8px 18px 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  width: fit-content;
  animation: fadeInUp 0.6s var(--ease) both;
}

.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
}

.hero h1 {
  animation: fadeInUp 0.7s 0.1s var(--ease) both;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--clr-muted);
  max-width: 52ch;
  animation: fadeInUp 0.7s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s var(--ease) both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.4s var(--ease) both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--clr-muted);
}

.trust-item svg { color: var(--clr-success); flex-shrink: 0; }

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s 0.2s var(--ease) both;
}

.hero-dashboard {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  position: relative;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--clr-border);
}

.dashboard-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.dashboard-dot:nth-child(1) { background: #FF5F57; }
.dashboard-dot:nth-child(2) { background: #FEBC2E; }
.dashboard-dot:nth-child(3) { background: #28C840; }

.dashboard-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-left: auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.metric-card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--clr-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
}

.metric-change {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.metric-change.up   { background: rgba(34,197,94,0.15); color: var(--clr-success); }
.metric-change.down { background: rgba(239,68,68,0.15);  color: var(--clr-danger); }

.mini-chart {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.mini-chart-bar {
  flex: 1;
  background: var(--grad-brand);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity var(--dur-fast);
}

.mini-chart-bar:hover { opacity: 1; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--space-lg);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item { position: relative; }

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 40px;
  background: var(--clr-border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--clr-muted);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--dur-mid) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}

.service-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,119,255,0.12);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.service-card h3 { font-size: 1.2rem; color: var(--clr-white); margin: 0; }
.service-card p  { font-size: 0.9rem; color: var(--clr-muted); margin: 0; }

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.service-features li {
  font-size: 0.825rem;
  color: var(--clr-off-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '→';
  color: var(--clr-accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md);
  position: relative;
}

.process-step {
  position: relative;
  padding: var(--space-lg);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

.step-content h4 { margin-bottom: 8px; color: var(--clr-white); }
.step-content p  { font-size: 0.875rem; color: var(--clr-muted); }

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-md);
  align-items: start;
}

.pricing-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  transition: all var(--dur-mid) var(--ease);
}

.pricing-card--featured {
  border-color: rgba(0,229,255,0.35);
  background: linear-gradient(135deg, rgba(0,229,255,0.05) 0%, rgba(0,119,255,0.04) 100%);
  box-shadow: 0 0 60px rgba(0,229,255,0.08);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-currency { font-size: 1.25rem; font-weight: 700; color: var(--clr-off-white); }
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.pricing-per { font-size: 0.875rem; color: var(--clr-muted); }

.pricing-desc { font-size: 0.875rem; color: var(--clr-muted); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--clr-border); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--clr-off-white);
}

.pricing-features li .check {
  color: var(--clr-success);
  flex-shrink: 0;
  margin-top: 2px;
}

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

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--clr-warning);
  font-size: 0.875rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--clr-off-white);
  font-style: italic;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: #000;
  flex-shrink: 0;
}

.author-name  { font-weight: 600; font-size: 0.9rem; color: var(--clr-white); }
.author-role  { font-size: 0.775rem; color: var(--clr-muted); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--grad-cta);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,119,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  max-width: 36ch;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 38px; height: 38px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-size: 0.875rem;
  transition: all var(--dur-fast) var(--ease);
}

.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(0,229,255,0.06);
}

.footer-col h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--clr-off-white);
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--clr-muted);
}

.footer-bottom-links a:hover { color: var(--clr-accent); }

/* ============================================================
   LOCATION PAGES
   ============================================================ */
.location-hero {
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.location-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

.breadcrumb a { color: var(--clr-muted); }
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb span { color: var(--clr-border); }

.location-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.location-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

/* ============================================================
   FORMS & CONTACT
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--clr-off-white);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-white);
  transition: border-color var(--dur-fast);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--clr-muted); }

.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.post-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-mid) var(--ease);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.post-thumbnail {
  aspect-ratio: 16/9;
  background: var(--grad-brand);
  opacity: 0.6;
  overflow: hidden;
}

.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.post-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.775rem;
  color: var(--clr-muted);
  font-family: var(--font-mono);
}

.post-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  padding: 3px 10px;
  background: rgba(0,229,255,0.08);
  border-radius: var(--radius-pill);
}

.post-card h3 { font-size: 1.125rem; margin: 0; }
.post-card p  { font-size: 0.875rem; color: var(--clr-muted); margin: 0; }
.post-read-more { color: var(--clr-accent); font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 4px; margin-top: auto; }

/* ============================================================
   CALENDAR / BOOKING EMBED
   ============================================================ */
.booking-wrapper {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
}

.booking-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-up   { animation: fadeInUp var(--dur-slow) var(--ease) both; }
.animate-in   { animation: fadeIn var(--dur-slow) var(--ease) both; }

/* Intersection Observer classes */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 4rem; --space-3xl: 6rem; }

  #primary-nav,
  .nav-cta .btn--outline { display: none; }

  .nav-toggle { display: flex; }

  #primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(8,12,20,0.97);
    backdrop-filter: blur(20px);
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
    z-index: 999;
    align-items: flex-start;
  }

  #primary-nav.open a { font-size: 1.25rem; }
  #primary-nav.open .dropdown-menu { position: static; transform: none; opacity: 1; pointer-events: all; background: transparent; border: none; box-shadow: none; backdrop-filter: none; padding-left: var(--space-md); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-card--featured { transform: none; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn--lg { width: 100%; }
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */
.wp-block-image { margin-block: var(--space-md); border-radius: var(--radius-md); overflow: hidden; }
.wp-block-quote {
  border-left: 3px solid var(--clr-accent);
  padding-left: var(--space-md);
  margin-block: var(--space-md);
  font-style: italic;
  color: var(--clr-off-white);
}

.entry-content h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.entry-content h3 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.entry-content p  { margin-bottom: var(--space-sm); }
.entry-content ul, .entry-content ol { padding-left: var(--space-md); list-style: initial; display: flex; flex-direction: column; gap: 6px; }
.entry-content ul li, .entry-content ol li { color: var(--clr-off-white); font-size: 0.95rem; }

.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide { max-width: 1100px; margin-inline: auto; }

/* Admin bar */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
