/*
Theme Name: Daedalus Designs
Theme URI: https://daedalusdesigns.co.uk
Author: Daedalus Designs
Author URI: https://daedalusdesigns.co.uk
Description: A premium WordPress theme for Daedalus Designs web design agency. Features a modern, professional design with navy, gold, and orange accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daedalus-designs
Tags: custom-menu, featured-images, one-column, two-columns, custom-logo
*/


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ========================================================================== */

:root {
  /* ---- Brand Palette ---- */
  --color-navy:            #1a2744;
  --color-navy-dark:       #111b30;
  --color-navy-deeper:     #0d1520;
  --color-navy-light:      #243455;
  --color-gold:            #f5a623;
  --color-gold-light:      #ffc107;
  --color-gold-dark:       #d48e1a;
  --color-orange:          #e8600a;
  --color-orange-dark:     #c74f06;
  --color-orange-light:    #ff7a2e;
  --color-white:           #ffffff;
  --color-off-white:       #f8f9fc;
  --color-light-grey:      #eef1f6;
  --color-blue-grey:       #e8ecf4;
  --color-mid-grey:        #8892a4;
  --color-dark-grey:       #4a5568;
  --color-text:            #2d3748;
  --color-text-light:      #a0aec0;
  --color-text-inverse:    #ffffff;
  --color-success:         #38a169;
  --color-error:           #e53e3e;

  /* ---- Gradients ---- */
  --gradient-hero:         linear-gradient(135deg, #1a2744 0%, #111b30 25%, #0d1520 50%, #1a2744 75%, #243455 100%);
  --gradient-cta:          linear-gradient(135deg, #1a2744 0%, #243455 50%, #1a2744 100%);
  --gradient-page-header:  linear-gradient(135deg, #1a2744 0%, #243455 100%);
  --gradient-gold:         linear-gradient(135deg, #f5a623 0%, #ffc107 100%);
  --gradient-overlay:      linear-gradient(180deg, rgba(26, 39, 68, 0) 0%, rgba(26, 39, 68, 0.85) 100%);

  /* ---- Typography ---- */
  --font-body:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading:          'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:             'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --text-xs:               0.75rem;    /* 12px */
  --text-sm:               0.875rem;   /* 14px */
  --text-base:             1rem;       /* 16px */
  --text-md:               1.125rem;   /* 18px */
  --text-lg:               1.25rem;    /* 20px */
  --text-xl:               1.5rem;     /* 24px */
  --text-2xl:              1.875rem;   /* 30px */
  --text-3xl:              2.25rem;    /* 36px */
  --text-4xl:              3rem;       /* 48px */
  --text-5xl:              3.75rem;    /* 60px */
  --text-6xl:              4.5rem;     /* 72px */

  --leading-none:          1;
  --leading-tight:         1.2;
  --leading-snug:          1.375;
  --leading-normal:        1.6;
  --leading-relaxed:       1.75;

  --tracking-tight:       -0.025em;
  --tracking-normal:       0;
  --tracking-wide:         0.05em;
  --tracking-wider:        0.1em;
  --tracking-widest:       0.2em;

  --weight-regular:        400;
  --weight-medium:         500;
  --weight-semibold:       600;
  --weight-bold:           700;
  --weight-extrabold:      800;
  --weight-black:          900;

  /* ---- Spacing Scale ---- */
  --space-1:               0.25rem;    /* 4px */
  --space-2:               0.5rem;     /* 8px */
  --space-3:               0.75rem;    /* 12px */
  --space-4:               1rem;       /* 16px */
  --space-5:               1.25rem;    /* 20px */
  --space-6:               1.5rem;     /* 24px */
  --space-8:               2rem;       /* 32px */
  --space-10:              2.5rem;     /* 40px */
  --space-12:              3rem;       /* 48px */
  --space-16:              4rem;       /* 64px */
  --space-20:              5rem;       /* 80px */
  --space-24:              6rem;       /* 96px */
  --space-32:              8rem;       /* 128px */

  /* ---- Border Radius ---- */
  --radius-sm:             0.25rem;
  --radius-md:             0.5rem;
  --radius-lg:             0.75rem;
  --radius-xl:             1rem;
  --radius-2xl:            1.5rem;
  --radius-full:           9999px;

  /* ---- Shadows ---- */
  --shadow-xs:             0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:             0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:             0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:             0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:             0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl:            0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-gold:           0 4px 20px rgba(245, 166, 35, 0.3);
  --shadow-orange:         0 4px 20px rgba(232, 96, 10, 0.35);
  --shadow-orange-glow:    0 0 30px rgba(232, 96, 10, 0.5), 0 0 60px rgba(232, 96, 10, 0.2);
  --shadow-card:           0 8px 32px rgba(26, 39, 68, 0.08);
  --shadow-card-hover:     0 16px 48px rgba(26, 39, 68, 0.15);
  --shadow-glass:          0 8px 32px rgba(0, 0, 0, 0.12);

  /* ---- Transitions ---- */
  --transition-fast:       150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:       250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:       350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring:     500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth:     600ms cubic-bezier(0.23, 1, 0.32, 1);

  /* ---- Glassmorphism ---- */
  --glass-bg:              rgba(255, 255, 255, 0.08);
  --glass-bg-light:        rgba(255, 255, 255, 0.85);
  --glass-border:          rgba(255, 255, 255, 0.15);
  --glass-border-light:    rgba(255, 255, 255, 0.25);
  --glass-blur:            20px;
  --glass-blur-heavy:      40px;

  /* ---- Z-Index Layers ---- */
  --z-behind:             -1;
  --z-base:                0;
  --z-raised:              10;
  --z-dropdown:            100;
  --z-sticky:              200;
  --z-header:              500;
  --z-overlay:             600;
  --z-mobile-nav:          700;
  --z-modal:               800;
  --z-toast:               900;
  --z-max:                 9999;

  /* ---- Layout ---- */
  --container-max:         1200px;
  --container-narrow:      800px;
  --container-wide:        1400px;
  --header-height:         80px;
}


/* ==========================================================================
   2. CSS RESET / BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
  overflow-wrap: break-word;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}

strong, b {
  font-weight: var(--weight-bold);
}

em, i {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-dark-grey);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-light-grey);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--color-navy-dark);
  color: var(--color-light-grey);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-light-grey);
  margin: var(--space-12) 0;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-deeper);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}


/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section-padding {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section-padding--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section-title__heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-gold);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
}

.section-title__heading--light {
  color: var(--color-white);
}

.section-title__subtitle {
  font-size: var(--text-lg);
  color: var(--color-mid-grey);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.section-title__subtitle--light {
  color: var(--color-text-light);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}


/* ==========================================================================
   4. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-header);
  background: rgba(26, 39, 68, 0.92);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(245, 166, 35, 0.3);
  transition: background var(--transition-base),
              box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(17, 27, 48, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(245, 166, 35, 0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__image {
  height: 40px;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
}

.site-logo__text span {
  color: var(--color-gold);
}

/* Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow), left var(--transition-slow);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link--cta {
  background: var(--color-orange);
  color: var(--color-white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-left: var(--space-4);
  font-weight: var(--weight-semibold);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: var(--color-orange-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

/* Hamburger / Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: calc(var(--z-mobile-nav) + 1);
  position: relative;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base),
              opacity var(--transition-base),
              background-color var(--transition-base);
}

.mobile-menu-toggle__bar + .mobile-menu-toggle__bar {
  margin-top: 6px;
}

/* Active hamburger → X */
.mobile-menu-toggle.active .mobile-menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .mobile-menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .mobile-menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(17, 27, 48, 0.98);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  z-index: var(--z-mobile-nav);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  border-left: 1px solid rgba(245, 166, 35, 0.2);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--z-mobile-nav) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
              visibility var(--transition-base);
}

.mobile-nav__overlay.visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  display: block;
  padding: var(--space-4) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-md);
  transition: color var(--transition-base),
              background var(--transition-base);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--color-gold);
  background: rgba(245, 166, 35, 0.08);
}

.mobile-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-8);
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.mobile-nav__cta:hover {
  background: var(--color-orange-dark);
}


/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: var(--gradient-hero), url('./assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  padding: var(--space-20) var(--space-6);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(36, 52, 85, 0.4) 0%, transparent 70%);
  z-index: var(--z-base);
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
  max-width: 860px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--weight-black);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-none);
  margin-bottom: var(--space-6);
}

.hero__title span {
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-12);
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--color-orange-dark);
  box-shadow: var(--shadow-orange-glow);
  transform: translateY(-2px) scale(1.03);
  animation: none;
}

/* Decorative floating elements */
.hero__decoration {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.12;
}

.hero__decoration--1 {
  width: 300px;
  height: 300px;
  border: 2px solid var(--color-gold);
  top: 10%;
  left: -5%;
  animation: float 8s ease-in-out infinite;
}

.hero__decoration--2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  top: 60%;
  right: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.hero__decoration--3 {
  width: 80px;
  height: 80px;
  background: var(--color-gold);
  top: 20%;
  right: 15%;
  animation: float 10s ease-in-out infinite 2s;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero__decoration--4 {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  bottom: 15%;
  left: 10%;
  animation: float 7s ease-in-out infinite 1s;
}

.hero__decoration--5 {
  width: 50px;
  height: 50px;
  background: rgba(232, 96, 10, 0.2);
  bottom: 25%;
  right: 20%;
  animation: float 9s ease-in-out infinite 3s;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.hero__scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: float 2s ease-in-out infinite;
}


/* ==========================================================================
   6. TRUST BAR
   ========================================================================== */

.trust-bar {
  background: var(--gradient-gold);
  padding: var(--space-4) 0;
  overflow: hidden;
  position: relative;
}

.trust-bar__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-10);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  white-space: nowrap;
}

.trust-bar__item::before {
  content: '★';
  font-size: var(--text-xs);
  color: var(--color-navy);
  opacity: 0.6;
}

.trust-bar:hover .trust-bar__track {
  animation-play-state: paused;
}


/* ==========================================================================
   7. SERVICES / FEATURES GRID
   ========================================================================== */

.services-section {
  background: var(--color-off-white);
}

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

.service-card {
  position: relative;
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-spring),
              box-shadow var(--transition-slow);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

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

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--color-navy);
  color: var(--color-gold);
  font-size: var(--text-2xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  transition: background var(--transition-base),
              transform var(--transition-spring);
}

.service-card:hover .service-card__icon {
  background: var(--color-navy-light);
  transform: scale(1.08) rotate(-3deg);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.service-card__description {
  font-size: var(--text-base);
  color: var(--color-dark-grey);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}


/* ==========================================================================
   8. PRICING SECTION
   ========================================================================== */

.pricing-section {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06), transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: glowBorder 4s ease-in-out infinite;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.4),
    rgba(245, 166, 35, 0),
    rgba(245, 166, 35, 0.2),
    rgba(245, 166, 35, 0)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: glowBorder 4s ease-in-out infinite;
}

.pricing-card__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  background: var(--gradient-gold);
  padding: var(--space-1) var(--space-6);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-8);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--weight-black);
  color: var(--color-gold);
  line-height: var(--leading-none);
  margin-bottom: var(--space-2);
}

.pricing-card__price-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-10);
  text-align: left;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-card__feature:last-child {
  border-bottom: none;
}

.pricing-card__feature::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  background: var(--color-gold);
  border-radius: var(--radius-full);
  margin-top: 1px;
}

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-5) var(--space-10);
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.pricing-card__cta:hover,
.pricing-card__cta:focus-visible {
  background: var(--color-orange-dark);
  box-shadow: var(--shadow-orange-glow);
  transform: translateY(-2px);
}


/* ==========================================================================
   9. PORTFOLIO SECTION
   ========================================================================== */

.portfolio-section {
  background: var(--color-white);
}

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

/* Masonry-style varying heights */
.portfolio-grid .portfolio-card:nth-child(3n + 1) {
  grid-row: span 1;
}

.portfolio-grid .portfolio-card:nth-child(3n + 2) {
  grid-row: span 1;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring),
              box-shadow var(--transition-slow);
}

.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.portfolio-card__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.08);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 39, 68, 0) 30%,
    rgba(26, 39, 68, 0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-2);
}

.portfolio-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: 0;
}


/* ==========================================================================
   10. HOW IT WORKS / PROCESS
   ========================================================================== */

.process-section {
  background: var(--color-off-white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 var(--space-6);
}

/* Connecting dashed line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  border-top: 2px dashed var(--color-gold);
  opacity: 0.5;
}

.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--color-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-navy);
  background: var(--color-white);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: var(--z-raised);
  transition: background var(--transition-base),
              color var(--transition-base);
  flex-shrink: 0;
}

.process-step:hover .process-step__number {
  background: var(--color-gold);
  color: var(--color-navy);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.process-step__description {
  font-size: var(--text-sm);
  color: var(--color-dark-grey);
  line-height: var(--leading-relaxed);
  max-width: 240px;
  margin: 0 auto;
}


/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */

.testimonials-section {
  background: var(--color-blue-grey);
}

.testimonials-carousel {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-4) var(--space-2);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 400px;
  max-width: 90vw;
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-card);
  scroll-snap-align: center;
  position: relative;
  transition: transform var(--transition-spring),
              box-shadow var(--transition-slow);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-card__quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--color-gold);
  opacity: 0.5;
  margin-bottom: var(--space-4);
  display: block;
  user-select: none;
}

.testimonial-card__text {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-dark-grey);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.testimonial-card__stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.testimonial-card__star {
  color: var(--color-gold);
  font-size: var(--text-md);
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.testimonial-card__role {
  font-size: var(--text-sm);
  color: var(--color-mid-grey);
}


/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */

.cta-section {
  position: relative;
  background: var(--gradient-cta);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  padding: var(--space-24) var(--space-6);
  text-align: center;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  opacity: 0.08;
}

.cta-section::before {
  width: 400px;
  height: 400px;
  background: var(--color-gold);
  top: -120px;
  left: -80px;
  animation: float 8s ease-in-out infinite;
}

.cta-section::after {
  width: 250px;
  height: 250px;
  border: 2px solid var(--color-gold);
  bottom: -60px;
  right: -40px;
  animation: float 6s ease-in-out infinite reverse;
}

/* Animated background particles */
.cta-section__particle {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  opacity: 0.06;
}

.cta-section__particle--1 {
  width: 80px;
  height: 80px;
  background: var(--color-gold);
  top: 30%;
  right: 15%;
  animation: float 7s ease-in-out infinite 1s;
}

.cta-section__particle--2 {
  width: 40px;
  height: 40px;
  background: var(--color-orange);
  bottom: 20%;
  left: 20%;
  animation: float 5s ease-in-out infinite 2s;
}

.cta-section__particle--3 {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  top: 15%;
  left: 10%;
  animation: float 9s ease-in-out infinite;
}

.cta-section__content {
  position: relative;
  z-index: var(--z-raised);
}

.cta-section__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.cta-section__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.cta-section__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-12);
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.cta-section__btn:hover,
.cta-section__btn:focus-visible {
  background: var(--color-orange-dark);
  box-shadow: var(--shadow-orange-glow);
  transform: translateY(-3px) scale(1.03);
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-navy-deeper);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

.footer-col__heading {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-col__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

.footer-col__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast),
              padding-left var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-gold);
  padding-left: var(--space-2);
}

/* Contact info */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact__icon {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-md);
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base);
}

.social-icon:hover,
.social-icon:focus-visible {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom__copy {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-bottom__link:hover {
  color: var(--color-gold);
}


/* ==========================================================================
   14. 404 PAGE
   ========================================================================== */

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  background: var(--color-off-white);
}

.error-404__number {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: var(--weight-black);
  color: var(--color-gold);
  line-height: var(--leading-none);
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 20px rgba(245, 166, 35, 0.2);
  letter-spacing: var(--tracking-tight);
}

.error-404__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.error-404__message {
  font-size: var(--text-lg);
  color: var(--color-dark-grey);
  max-width: 480px;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.error-404__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.error-404__link:hover,
.error-404__link:focus-visible {
  background: var(--color-navy-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}


/* ==========================================================================
   15. PAGE & POST TEMPLATES
   ========================================================================== */

/* Page Header / Banner */
.page-header {
  background: var(--gradient-page-header);
  padding: calc(var(--header-height) + var(--space-16)) var(--space-6) var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 50% 100%, rgba(245, 166, 35, 0.08), transparent);
  pointer-events: none;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-header__breadcrumb {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.page-header__breadcrumb a {
  color: var(--color-gold);
  transition: color var(--transition-fast);
}

.page-header__breadcrumb a:hover {
  color: var(--color-gold-light);
}

/* Page Content */
.page-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.page-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.page-content h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.page-content p {
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
  color: var(--color-dark-grey);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
  color: var(--color-dark-grey);
}

.page-content img {
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

.page-content a {
  color: var(--color-orange);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.page-content a:hover {
  color: var(--color-orange-dark);
}

/* Post Content (Blog Articles) */
.post-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.post-content__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-mid-grey);
}

.post-content__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-content__category {
  background: rgba(245, 166, 35, 0.12);
  color: var(--color-gold-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.post-content p {
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
  color: var(--color-dark-grey);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
  color: var(--color-dark-grey);
}

.post-content img {
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

.post-content a {
  color: var(--color-orange);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.post-content a:hover {
  color: var(--color-orange-dark);
}

.post-content blockquote {
  background: var(--color-off-white);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-6) var(--space-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-light-grey);
}

.post-nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.post-nav__link:hover {
  color: var(--color-gold);
}


/* ==========================================================================
   16. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — Orange */
.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

/* Secondary — Transparent with Gold border */
.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Navy variant */
.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--color-navy-light);
  border-color: var(--color-navy-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Ghost — on dark backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Button sizes */
.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-5) var(--space-12);
  font-size: var(--text-md);
}


/* ==========================================================================
   17. KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-12px) rotate(1deg); }
  66%      { transform: translateY(6px) rotate(-1deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(232, 96, 10, 0.35);
  }
  50% {
    box-shadow: 0 4px 40px rgba(232, 96, 10, 0.6),
                0 0 60px rgba(232, 96, 10, 0.2);
  }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowBorder {
  0%, 100% {
    border-color: rgba(245, 166, 35, 0.2);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.05);
  }
  50% {
    border-color: rgba(245, 166, 35, 0.45);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.12);
  }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ==========================================================================
   18. SCROLL REVEAL CLASSES
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--scale {
  transform: scale(0.9);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   19. RESPONSIVE DESIGN
   ========================================================================== */

/* ---- Tablet Large — max-width: 1024px ---- */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 3rem;
    --text-4xl: 2.25rem;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

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

  .process-steps {
    flex-wrap: wrap;
    gap: var(--space-10);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

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

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

/* ---- Tablet Small — max-width: 768px ---- */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.75rem;
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --header-height: 68px;
  }

  .section-padding {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .section-title {
    margin-bottom: var(--space-10);
  }

  .hero {
    min-height: 90vh;
    padding: var(--space-16) var(--space-6);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-md);
  }

  .hero__decoration--1,
  .hero__decoration--3,
  .hero__decoration--5 {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .service-card {
    padding: var(--space-8) var(--space-6);
  }

  .pricing-card {
    padding: var(--space-10) var(--space-6);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .portfolio-card__image {
    min-height: 220px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
  }

  .process-step {
    padding: 0;
    max-width: 320px;
  }

  .testimonial-card {
    flex: 0 0 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer-col__heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom__links {
    justify-content: center;
  }

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

  .post-nav {
    flex-direction: column;
  }

  .cta-section__heading {
    font-size: var(--text-3xl);
  }
}

/* ---- Mobile — max-width: 480px ---- */
@media (max-width: 480px) {
  :root {
    --text-6xl: 2.25rem;
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.125rem;
    --header-height: 60px;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section-padding {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero {
    min-height: 85vh;
    padding: var(--space-12) var(--space-4);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }

  .hero__cta {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
  }

  .hero__decoration {
    display: none;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .trust-bar__item {
    padding: 0 var(--space-6);
    font-size: var(--text-xs);
  }

  .service-card {
    padding: var(--space-6) var(--space-5);
  }

  .service-card__icon {
    width: 56px;
    height: 56px;
    font-size: var(--text-xl);
  }

  .pricing-card {
    padding: var(--space-8) var(--space-5);
  }

  .pricing-card__price {
    font-size: var(--text-5xl);
  }

  .testimonial-card {
    flex: 0 0 280px;
    padding: var(--space-8) var(--space-6);
  }

  .testimonial-card__quote-mark {
    font-size: 3.5rem;
  }

  .error-404__number {
    font-size: 5rem;
  }

  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }

  .page-header {
    padding: calc(var(--header-height) + var(--space-10)) var(--space-4) var(--space-10);
  }

  .page-header__title {
    font-size: var(--text-3xl);
  }

  .page-content,
  .post-content {
    padding: var(--space-10) var(--space-4);
  }

  .mobile-nav {
    width: 100%;
    max-width: 100%;
  }

  .cta-section {
    padding: var(--space-16) var(--space-4);
  }

  .cta-section__heading {
    font-size: var(--text-2xl);
  }

  .cta-section__text {
    font-size: var(--text-base);
  }

  .cta-section__btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
  }
}


/* ==========================================================================
   20. ACCESSIBILITY
   ========================================================================== */

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus-visible outlines */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove outline for mouse/touch users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-max);
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* 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;
  }

  .hero {
    animation: none;
    background-size: 100% 100%;
  }

  .cta-section {
    animation: none;
    background-size: 100% 100%;
  }

  .hero__cta {
    animation: none;
  }

  .trust-bar__track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero__decoration {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-gold: #ffb300;
    --color-orange: #d45500;
    --glass-bg-light: rgba(255, 255, 255, 0.95);
  }

  .nav-link {
    color: var(--color-white);
  }

  .service-card {
    border: 2px solid var(--color-navy);
  }

  .testimonial-card {
    border: 2px solid var(--color-navy);
  }
}

/* Dark mode preference (optional) */
@media (prefers-color-scheme: dark) {
  .services-section,
  .process-section {
    background: var(--color-navy-dark);
  }

  .service-card {
    background: rgba(36, 52, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .service-card__title {
    color: var(--color-white);
  }

  .service-card__description {
    color: var(--color-text-light);
  }

  .process-step__number {
    background: var(--color-navy-dark);
    color: var(--color-gold);
  }

  .process-step__title {
    color: var(--color-white);
  }

  .process-step__description {
    color: var(--color-text-light);
  }

  .testimonials-section {
    background: var(--color-navy-deeper);
  }

  .testimonial-card {
    background: rgba(36, 52, 85, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .testimonial-card__text {
    color: rgba(255, 255, 255, 0.75);
  }

  .testimonial-card__name {
    color: var(--color-white);
  }

  .error-404 {
    background: var(--color-navy-dark);
  }

  .error-404__title {
    color: var(--color-white);
  }

  .error-404__message {
    color: var(--color-text-light);
  }
}


/* ==========================================================================
   WORDPRESS SPECIFIC UTILITIES
   ========================================================================== */

/* WordPress alignment classes */
.alignnone {
  margin: var(--space-6) 0;
}

.aligncenter {
  display: block;
  margin: var(--space-6) auto;
}

.alignleft {
  float: left;
  margin: var(--space-2) var(--space-6) var(--space-6) 0;
}

.alignright {
  float: right;
  margin: var(--space-2) 0 var(--space-6) var(--space-6);
}

/* WordPress captions */
.wp-caption {
  max-width: 100%;
  margin-bottom: var(--space-6);
}

.wp-caption img {
  border-radius: var(--radius-lg);
}

.wp-caption-text {
  font-size: var(--text-sm);
  color: var(--color-mid-grey);
  text-align: center;
  margin-top: var(--space-2);
  font-style: italic;
}

/* WordPress gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* WordPress block editor (Gutenberg) adjustments */
.wp-block-image img {
  border-radius: var(--radius-lg);
}

.wp-block-quote {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

.wp-block-separator {
  border: none;
  border-top: 2px solid var(--color-light-grey);
  margin: var(--space-12) auto;
  max-width: 100px;
}

.wp-block-separator.is-style-wide {
  max-width: 100%;
}

.wp-block-button .wp-block-button__link {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-8);
  transition: all var(--transition-base);
}

/* Sticky post highlight */
.sticky .post-content {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-6);
}

/* Screen reader text (WordPress standard) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.screen-reader-text:focus {
  display: block;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-max);
  width: auto;
  height: auto;
  padding: var(--space-4) var(--space-6);
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  clip: auto;
  border-radius: var(--radius-md);
}
