/* =========================
   CSS Custom Properties (Design Tokens)
   ========================= */
:root {
  /* Colors */
  --color-primary: #1c1208;
  --color-accent: #f17824;
  --color-accent-hover: #ff9845;
  --color-text-dark: #2e1d08;
  --color-text-medium: #444;
  --color-text-light: #e0e0e0;
  --color-bg-light: #f6f5f3;
  --color-bg-medium: #ebe8e5;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
  
  /* Layout */
  --header-height: 110px;
  --container-max: 1100px;

  /* Repeated Alpha Colors */
  --white-10: rgba(255, 255, 255, 0.1);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-25: rgba(255, 255, 255, 0.25);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-85: rgba(255, 255, 255, 0.85);

  --black-05: rgba(0, 0, 0, 0.05);
  --black-10: rgba(0, 0, 0, 0.1);
  --black-25: rgba(0, 0, 0, 0.25);
  --black-35: rgba(0, 0, 0, 0.35);
  --black-50: rgba(0, 0, 0, 0.5);
  --black-60: rgba(0, 0, 0, 0.6);

  --accent-30: rgba(242, 120, 36, 0.3);
  --accent-35: rgba(242, 120, 36, 0.35);
  --accent-50: rgba(242, 120, 36, 0.5);
  --accent-70: rgba(242, 120, 36, 0.7);
  --accent-85: rgba(242, 120, 36, 0.85);
  --accent-90: rgba(242, 120, 36, 0.9);
  --accent-95: rgba(242, 120, 36, 0.95);

  /* Font Stacks */
  --font-primary: "Grift", system-ui, -apple-system, serif, sans-serif;
  --font-accent: "Mallians", serif;

  /* Z-index Scale */
  --z-skip-link: 130;
  --z-float-buttons: 120;
  --z-mobile-menu: 110;
  --z-header: 100;
}

/* =========================
   Custom Webfonts
   ========================= */

/* Grift - Regular */
@font-face {
  font-family: 'Grift';
  src: url('../fonts/Grift-Regular.woff2') format('woff2'),
       url('../fonts/Grift-Regular.woff') format('woff'),
       url('../fonts/Grift-Regular.ttf') format('truetype'),
       url('../fonts/Grift-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Grift - Bold */
@font-face {
  font-family: 'Grift';
  src: url('../fonts/Grift-Bold.woff2') format('woff2'),
       url('../fonts/Grift-Bold.woff') format('woff'),
       url('../fonts/Grift-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Grift - Italic */
@font-face {
  font-family: 'Grift';
  src: url('../fonts/Grift-Italic.woff2') format('woff2'),
       url('../fonts/Grift-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Mallians */
@font-face {
  font-family: 'Mallians';
  src: url('../fonts/Mallians.woff2') format('woff2'),
       url('../fonts/Mallians.woff') format('woff'),
       url('../fonts/Mallians.ttf') format('truetype'),
       url('../fonts/Mallians.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* =========================================
   Great Tales Media – Header + Hero
   ========================================= */

/* Reset */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;}

/* Anchor offset for fixed header */
#contact,
#contact-section {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--color-primary);
  background: linear-gradient(to bottom right, var(--color-bg-light), var(--color-bg-medium));
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%;height:auto}
.container{width:min(100% - 2rem, var(--container-max));margin-inline:auto}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  z-index: var(--z-skip-link);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Header */
.site-header{
  position:fixed;top:0;left:0;width:100%;z-index:var(--z-header);
  height: var(--header-height);
  background:linear-gradient(to bottom,rgba(28,18,6,0.75) 0%,rgba(36,28,15,0.55) 100%);
  background-size:100% 200%;
  background-position:center 0;
  backdrop-filter:blur(1px) saturate(1.15);
  -webkit-backdrop-filter:blur(6px) saturate(1.15);
  box-shadow: var(--shadow-lg);
  transition:background .4s ease,box-shadow .4s ease;
  overflow:hidden;
  padding:0 3rem;
}
.site-header::after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  height:90px;
  background:radial-gradient(ellipse at center,rgba(0,0,0,0.5) 0%,transparent 70%);
  opacity:.6;
  pointer-events:none;
}
.site-header.scrolled{
  background:linear-gradient(to bottom,rgba(32,21,7,0.85) 100%,rgba(41,33,18,0.75) 100%);
  box-shadow: var(--shadow-xl);
}

/* Header layout */
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:100%;
}
.brand-logo{height:120px;width:auto;object-fit:contain}

/* Moved to consolidated media queries at end of file */

/* Navigation group */
.nav-group{
  display:flex;align-items:center;gap:2.2rem;
}

/* Navigation */
.nav{
  display:flex;gap: 3rem;
  font-family: var(--font-primary);
  font-weight:900;
}
.nav a{
  opacity:.85;color:#fff;
  transition:color .25s ease,text-shadow .25s ease,opacity .25s ease;
  position: relative;
  padding-bottom: 0.25rem;
}
.nav a:hover,
.nav a[aria-current="page"]{
  color: var(--color-accent);
  text-shadow:0 0 6px rgba(241,120,36,0.25);
  opacity:1;
}

/* Visual active page indicator */
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent, #f17824);
  border-radius: 2px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Header CTA button */
.button.header-cta{
  font-family: var(--font-primary);
  font-weight:600;
  letter-spacing:.02em;text-transform:uppercase;
  padding:.6rem 1.4rem;
  border-radius: var(--radius-xl);
  background: var(--color-accent);
  color:#fff;border:none;
  box-shadow: var(--shadow-sm);
  transition:all .25s ease;
  font-size: .95rem;
}
.button.header-cta:hover{
  filter:brightness(1.05);transform:translateY(-1px);
  box-shadow:0 2px 15px rgba(241,120,36,0.25);
}

/* Hero */
.hero{
  position:relative;
  height:90vh;
  overflow:hidden;
  box-shadow: var(--shadow-xl);
}
.hero-bg{position:absolute;inset:0;z-index:-1}
.hero-bg video{
  width:100%;height:100%;object-fit:cover;
  filter:brightness(.9) contrast(1.1) sepia(.15);
  transition:transform .25s linear;
  will-change: transform;
}
.hero-vignette{
  position:absolute;inset:0;pointer-events:none;z-index:0;
  background: radial-gradient(
    circle at bottom left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 35%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.25) 90%,
    rgba(0, 0, 0, 0.1) 100%
  );
  mask:linear-gradient(to top,rgba(0,0,0,1) 0%,rgba(0,0,0,.85) 30%,rgba(0,0,0,0) 90%);
}
.hero-inner{
  position:relative;z-index:1;
  display:flex;flex-direction:column;justify-content:center;
  height:100%;padding-top:96px;
  text-align:left;
}

/* Hero text */
.hero-title {
  font-family: "Grift", serif;
  font-weight: 900;
  font-size: clamp(2.465rem, 3.8vw, 3.7rem);
  color: var(--color-text-light);
  line-height: 0.82;
  margin: 0 0 0.4rem 0;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.hero-title .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  font-size: 1.615em;
  line-height: 0.9;
}

.hero-sub {
  font-family: var(--font-primary);
  font-weight:600;
  font-size: 0.9025rem;
  color: var(--color-text-light);
  max-width:565px;
  margin-top: 0.2rem;
  margin-bottom:1.6rem;
  line-height: 1.6;
  text-shadow:0 2px 8px rgba(0,0,0,0.35);
}

.text-orange {
  color: var(--color-accent) !important;
  font-weight: 600;
  text-shadow: 0 1px 3px var(--black-25);
  transition: color 0.25s ease;
}

/* Hero actions */
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.button{
  display:inline-flex;align-items:center;justify-content:center;
  font-family: var(--font-primary);
  font-weight:600;
  letter-spacing:.03em;text-transform:uppercase;
  padding:.76rem 1.43rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-95), var(--accent-85));
  color:#fff;
  border: 2px solid var(--white-30);
  box-shadow: 0 4px 15px var(--accent-35);
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95em;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--white-25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  will-change: width, height;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover{
  background: linear-gradient(135deg, var(--color-accent), var(--accent-90));
  border-color: var(--white-50);
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 8px 25px var(--accent-50);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

/* Ghost button variant */
.button.ghost {
  background: transparent;
  border: 2px solid var(--white-40);
  color: #fff;
  box-shadow: none;
}
.button.ghost::before {
  background: var(--white-15);
}
.button.ghost:hover {
  background: var(--white-10);
  border-color: var(--white-60);
  box-shadow: 0 4px 15px var(--white-15);
  transform: translateY(-2px);
}
.button.ghost:active {
  transform: translateY(0) scale(0.98);
}

/* CASA logo */
.hero-accreditation{
  margin-top:1rem;width:180px;opacity:.9;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,0.35));
  transition:opacity .25s ease;
}
.hero-accreditation:hover{opacity:1}

/* Floating contact buttons */
.float-buttons {
  position: fixed;
  bottom: 2.5rem;
  right: 1.8rem;
  z-index: var(--z-float-buttons);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

/* Responsive - moved to consolidated media queries at end of file */
@media(max-width:1024px){.hero-accreditation{width:150px}}
.hero-inner * {
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.208));
}

/* ===============================
   Scroll Reveal Animations
   =============================== */
.reveal-scale,
.service-card {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-visible,
.service-card.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger animation for service cards */
.service-card:nth-child(1) {
  transition-delay: 0s;
}
.service-card:nth-child(2) {
  transition-delay: 0.1s;
}
.service-card:nth-child(3) {
  transition-delay: 0.2s;
}
.service-card:nth-child(4) {
  transition-delay: 0.3s;
}

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

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --header-height: 90px;
  }
  .site-header {
    padding: 0 2rem;
  }
  .brand-logo {
    height: 90px;
  }
  .nav-group {
    gap: 1.6rem;
  }
  .nav {
    gap: 1.5rem;
    font-size: 0.95rem;
  }
  .button.header-cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }
  .hero {
    height: 75vh;
  }
  .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .hero-sub {
    font-size: 0.9rem;
    max-width: 480px;
  }
  .button {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
  }
  .float-btn {
    width: 45px;
    height: 45px;
  }
  .float-btn.email {
    font-size: 2rem;
  }
  .float-btn.phone {
    font-size: 1.35rem;
  }
}

/* Mobile - moved to consolidated media queries at end of file */

/* Touch Optimisation */
@media (hover: none) {
  .button:hover,
  .button.header-cta:hover,
  .float-btn:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }
  .nav a:hover {
    color: var(--color-accent);
    text-shadow: none;
  }
}

/* ===============================
   Mobile Fullscreen Menu
   =============================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  order: -1;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Moved to consolidated media queries at end of file */

/* Mobile Dropdown Menu */
.mobile-nav-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-height));
  background: rgba(15, 12, 5, 0.94);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  z-index: var(--z-mobile-menu);
  padding: 1rem 0;
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
  width: 100%;
}

.mobile-nav a {
  font-family: "Grift", serif;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0;
  width: 100%;
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-nav a:hover {
  background: var(--white-10);
  color: var(--color-accent);
}

/* ===============================
   Services Section
   =============================== */

.services-section {
  background: linear-gradient(to bottom right, rgba(245, 245, 245, 1), rgba(242, 242, 242, 1));
  color: #111;
  padding: 40px 0 60px;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: -45px;
}
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at bottom, rgba(0,0,0,0.05) 0%, transparent 70%);
  opacity: 0.9;
}

.services-heading {
  font-family: var(--font-accent);
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
  font-size: clamp(3.6rem, 3.6vw, 4.68rem);
  margin-bottom: 0.5rem;
  font-style: italic;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.services-sub {
  font-family: "Grift", system-ui, -apple-system, serif, sans-serif;
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
  color: #2e2e2e;
  line-height: 1.7;
}

/* Grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  overflow: visible;
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding: 12px 10px;
}

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

/* Images */
.service-image {
  width: calc(100% - 20px);
  height: 180px;
  margin: 8px auto 0;
  border-radius: 6px;
  overflow: hidden;
}
.service-image img,
.service-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.75);
  display: block;
}

.service-image video { 
  height: 100% !important;
  max-height: none;
}

.service-card:hover img,
.service-card:hover video {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Text */
.service-text {
  padding: 5px 10px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 10px;
}

.service-text h3 {
  font-family: "Grift", system-ui, -apple-system, serif, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 1.6vw, 1.64rem);
  margin: 15px 0 0px;
  color: #1a1a1a;
  line-height: 1.35;
  letter-spacing: -0.1px;
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
  min-height: 3.4em;
  white-space: normal;
  overflow: visible;
  transition: font-size 0.2s ease;
}

.service-text p {
  font-family: "Grift", system-ui, -apple-system, serif, sans-serif;
  font-weight: 500;
  color: var(--color-text-medium);
  margin-top: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  letter-spacing: 0.1px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Fade-in animation removed - using Intersection Observer approach instead (see Scroll Reveal Animations section) */

/* ===============================
   Work Published Section (brands carousel)
   =============================== */

.work-published-section {
  background: linear-gradient(to bottom right, rgba(245, 245, 245, 1), rgba(242, 242, 242, 1));
  padding: 80px 0 91px;
  margin-top: 0;
  box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.02);
  text-align: center;
  position: relative;
  z-index: 1;
}

.work-heading {
  font-family: var(--font-accent);
  font-weight: 400;
  color: var(--color-accent);
  font-style: italic;
  font-size: clamp(2.02rem, 2.8vw, 2.69rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  margin-bottom: 2rem;
}

/* Moved to consolidated media queries at end of file */

.brand-logos {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.brand-logos::before,
.brand-logos::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 2;
}

.brand-logos::before {
  left: 0;
  background: linear-gradient(to right, rgba(245,245,245,1) 0%, rgba(245,245,245,0.95) 30%, rgba(245,245,245,0) 100%);
}

.brand-logos::after {
  right: 0;
  background: linear-gradient(to left, rgba(245,245,245,1) 0%, rgba(245,245,245,0.95) 30%, rgba(245,245,245,0) 100%);
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 100px;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
  will-change: transform;
}

.brand-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-track {
    animation: scroll-logos 40s linear infinite;
  }
}

.brand-logos img {
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0%) brightness(1);
  transition: all 0.3s ease;
}

.brand-logos img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%) brightness(1.05);
}

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

/* Hover fallbacks */
@media (hover: none) {
  .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .brand-logos img:hover {
    transform: none;
    filter: none;
  }
}

/* ===============================
   Services + Brands: Responsive
   =============================== */

@media (max-width: 1024px) {
  .services-section { padding: 50px 0; }
  .services-heading { font-size: clamp(2.2rem, 2.8vw, 3rem); }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-card { padding: 10px 8px; }
  .service-image { height: 160px; }
  .service-text h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; }
  .service-text p { font-size: 0.9rem; line-height: 1.55; max-width: 80%; }
  .brand-logos { width: 95%; padding: 1.5rem 0; }
  .brand-track { gap: 80px; }
  .brand-logos img { height: 64px; max-width: 160px; }
}

/* Moved to consolidated media queries at end of file */

@media (max-width: 768px) {
  .services-grid {
    margin-bottom: 2rem;
  }
  .service-card {
    margin-bottom: 0.8rem;
  }
  .service-card h3 {
    font-size: 2.44rem;
    margin-bottom: 0rem;
  }

  .service-card p {
    margin-top: -0.4rem;
    text-align: center;
  }

  .work-heading {
    line-height: 1.1;
  }

  .brand-logos {
    width: 100%;
    padding: 1.5rem 0;
  }

  .brand-logos::before,
  .brand-logos::after {
    width: 80px;
  }

  .brand-track {
    gap: 60px;
    animation: scroll-logos 30s linear infinite;
  }

  .brand-logos img {
    height: 52px;
    max-width: 140px;
  }
}

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

.site-footer {
  background: linear-gradient(to bottom right, #2e1d08, #3b2f18);
  color: #fff;
  padding: 30px 0 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-inner {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 1rem;
  text-align: left;
}

.footer-logo img {
  width: 140px;
  opacity: 0.9;
  margin-bottom: 0;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--white-85);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-divider {
  width: 60%;
  height: 1px;
  background: var(--white-10);
  margin: 1.5rem auto;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--white-60);
}

.footer-copy span {
  color: var(--color-accent);
  font-weight: 600;
}

/* Footer responsive */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* Utility classes */
strong {
  color: var(--color-accent);
  font-weight: 700;
}

.accent {
  color: var(--color-accent);
}

/* Error state component */
.error-state {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 0, 0, 0.05);
  border: 2px solid rgba(255, 0, 0, 0.2);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.error-state p {
  margin: 0 0 1rem 0;
  color: var(--color-text-dark);
}

.error-state button {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: "Grift", serif;
  font-weight: 600;
}

.error-state button:hover {
  filter: brightness(1.1);
}

/* ===============================
   Responsive: Consolidated Media Queries
   =============================== */

/* Tablet and below (760px) */
@media (max-width: 760px) {
  /* Root variables */
  :root {
    --header-height: 83px;
  }

  /* Header */
  .site-header {
    padding: 0 1rem;
  }
  .brand-logo {
    height: 94px;
  }
  .nav-group {
    gap: 1rem;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .button.header-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero section */
  .hero {
    height: 98vh;
  }
  .hero-inner {
    padding-top: 72px;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.4rem);
    line-height: 1;
  }
  .hero-sub {
    font-size: 0.8rem;
    max-width: 90%;
    margin: 0 0.2rem 1.2rem;
  }
  .hero-accreditation {
    width: 100px;
    margin-top: 0.8rem;
    margin-left: 0.3rem;
  }

  /* Buttons */
  .button {
    padding: 0.65rem 1.1rem;
    font-size: 0.75rem;
  }

  /* Float buttons */
  .float-buttons {
    bottom: 1.6rem;
    right: 1rem;
    gap: 0.8rem;
  }
  .float-btn {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  /* Work Published section */
  .work-heading {
    max-width: 80%;
    margin-top: -50px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Services section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .service-card {
    padding: 10px 6px;
  }
  .service-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .service-text h3 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 12px 0 0px;
  }
  .service-text p {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 100%;
    margin-top: 0px;
  }
}