/*
Theme Name: Steel Garage Roofing
Theme URI: https://steelgarageroofing.co.uk
Author: Steel Garage Roofing
Author URI: https://steelgarageroofing.co.uk
Description: A modern, dark-themed WordPress theme for Steel Garage Roofing with working quote calculators, scroll animations, mouse glow effects, and a premium design inspired by plat-form.framer.ai.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steel-garage-roofing
Tags: dark, modern, industrial, roofing, calculator, woocommerce, responsive
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  /* Brand Colours */
  --sgr-primary: #00235A;
  --sgr-primary-light: #003580;
  --sgr-primary-dark: #001a45;
  --sgr-accent: #FF6C00;
  --sgr-accent-light: #FF8A33;
  --sgr-accent-dark: #E05F00;
  --sgr-accent-glow: rgba(255, 108, 0, 0.4);

  /* Dark Theme */
  --sgr-bg-dark: #0a0a0a;
  --sgr-bg-darker: #050505;
  --sgr-bg-card: #141414;
  --sgr-bg-card-hover: #1a1a1a;
  --sgr-bg-elevated: #1e1e1e;
  --sgr-bg-surface: #111111;

  /* Text */
  --sgr-text-primary: #ffffff;
  --sgr-text-secondary: #a0a0a0;
  --sgr-text-muted: #666666;
  --sgr-text-accent: var(--sgr-accent);

  /* Borders */
  --sgr-border: rgba(255, 255, 255, 0.08);
  --sgr-border-light: rgba(255, 255, 255, 0.12);
  --sgr-border-accent: rgba(255, 108, 0, 0.3);

  /* Spacing */
  --sgr-gap: 2rem;
  --sgr-gap-lg: 4rem;
  --sgr-gap-xl: 6rem;
  --sgr-container: 1200px;
  --sgr-container-wide: 1400px;

  /* Typography */
  --sgr-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sgr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sgr-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --sgr-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sgr-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --sgr-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --sgr-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --sgr-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --sgr-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --sgr-shadow-glow: 0 0 30px rgba(255, 108, 0, 0.15);
  --sgr-shadow-glow-strong: 0 0 60px rgba(255, 108, 0, 0.25);

  /* Border Radius */
  --sgr-radius-sm: 8px;
  --sgr-radius-md: 12px;
  --sgr-radius-lg: 16px;
  --sgr-radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--sgr-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sgr-text-primary);
  background-color: var(--sgr-bg-dark);
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: var(--sgr-accent);
  color: #fff;
}

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

a {
  color: var(--sgr-accent);
  text-decoration: none;
  transition: var(--sgr-transition);
}

a:hover {
  color: var(--sgr-accent-light);
}

/* ==========================================================================
   Mouse Glow Cursor Effect
   ========================================================================== */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(255, 108, 0, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

.mouse-glow--intense {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 108, 0, 0.12) 0%, transparent 70%);
}

/* ==========================================================================
   Particle Background
   ========================================================================== */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 108, 0, 0.3);
  border-radius: 50%;
  animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { transform: translateY(-100px) translateX(50px); }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sgr-font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sgr-text-primary);
}

h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--sgr-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 70ch;
}

.text-accent { color: var(--sgr-accent); }
.text-gradient {
  background: linear-gradient(135deg, var(--sgr-accent), var(--sgr-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sgr-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '//';
  opacity: 0.5;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--sgr-container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section {
  padding: var(--sgr-gap-xl) 0;
  position: relative;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sgr-gap);
  letter-spacing: -0.02em;
}

.section--dark {
  background: var(--sgr-bg-darker);
}

.section--accent {
  background: var(--sgr-accent);
  color: #fff;
}

.section--accent p {
  color: rgba(255, 255, 255, 0.85);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--sgr-gap);
}

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--sgr-radius-sm);
  font-family: var(--sgr-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sgr-transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: var(--sgr-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 108, 0, 0.3);
}

.btn--primary:hover {
  background: var(--sgr-accent-light);
  color: #fff;
  box-shadow: var(--sgr-shadow-glow-strong);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--sgr-text-primary);
  border: 1px solid var(--sgr-border-light);
}

.btn--secondary:hover {
  border-color: var(--sgr-accent);
  color: var(--sgr-accent);
  box-shadow: var(--sgr-shadow-glow);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--sgr-primary);
  color: #fff;
}

.btn--dark:hover {
  background: var(--sgr-primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

.btn__arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Iconic arrow button (like plat-form) */
.btn--icon {
  width: 52px;
  height: 52px;
  border-radius: var(--sgr-radius-sm);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sgr-accent);
  color: var(--sgr-bg-dark);
  font-size: 1.25rem;
}

.btn--icon:hover {
  background: var(--sgr-accent-light);
  color: var(--sgr-bg-dark);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--sgr-shadow-glow-strong);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--sgr-transition);
  background: transparent;
}

.site-header--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sgr-border);
  box-shadow: var(--sgr-shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--sgr-container-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.header__logo img {
  height: 50px;
  width: auto;
  transition: var(--sgr-transition);
}

.site-header--scrolled .header__logo img {
  height: 40px;
}

/* Desktop Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav .menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.header__nav .menu li {
  position: relative;
}

.header__nav .menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sgr-text-secondary);
  transition: var(--sgr-transition);
  position: relative;
}

.header__nav .menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--sgr-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__nav .menu > li > a:hover,
.header__nav .menu > li.current-menu-item > a {
  color: var(--sgr-text-primary);
}

.header__nav .menu > li > a:hover::after,
.header__nav .menu > li.current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown menus */
.header__nav .menu li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--sgr-transition);
  list-style: none;
  box-shadow: var(--sgr-shadow-lg);
}

.header__nav .menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__nav .menu .sub-menu li a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sgr-text-secondary);
  border-radius: var(--sgr-radius-sm);
  transition: var(--sgr-transition);
  text-transform: none;
  letter-spacing: 0;
}

.header__nav .menu .sub-menu li a:hover {
  color: var(--sgr-text-primary);
  background: rgba(255, 108, 0, 0.1);
  padding-left: 1.25rem;
}

/* Header CTA */
.header__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta .btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sgr-accent);
  transition: var(--sgr-transition);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--sgr-border);
    overflow-y: auto;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav .menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .header__nav .menu > li > a {
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--sgr-border);
    width: 100%;
  }

  .header__nav .menu li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    backdrop-filter: none;
    box-shadow: none;
  }

  .header__nav .menu .sub-menu li a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sgr-border);
  }

  .header__cta {
    margin-top: 2rem;
    flex-direction: column;
    width: 100%;
  }

  .header__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.4);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.8) 100%);
}

/* Animated gradient mesh */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__mesh::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 108, 0, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(0, 35, 90, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(255, 108, 0, 0.04) 0%, transparent 50%);
  animation: meshFloat 15s ease-in-out infinite;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sgr-text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--sgr-accent);
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__title .hero-word {
  display: inline-block;
  white-space: nowrap;
}

.hero__title .hero-char {
  display: inline-block;
}

.hero__title .accent {
  color: var(--sgr-accent);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--sgr-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--sgr-border);
}

.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.hero__stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sgr-accent);
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--sgr-text-muted);
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sgr-border);
  align-self: center;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.reveal--left.visible {
  transform: translateX(0);
}

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

.reveal--right.visible {
  transform: translateX(0);
}

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

.reveal--scale.visible {
  transform: scale(1);
}

.reveal--rotate {
  transform: translateY(40px) rotate(2deg);
}

.reveal--rotate.visible {
  transform: translateY(0) rotate(0);
}

/* Stagger animations */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

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

/* Float animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.float--slow {
  animation-duration: 8s;
}

.float--fast {
  animation-duration: 4s;
}

/* Pulse animation */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Counter animation */
.count-up {
  display: inline-block;
}

/* ==========================================================================
   Cards (Product Cards, Feature Cards)
   ========================================================================== */
.card {
  background: var(--sgr-bg-card);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-lg);
  padding: 2rem;
  transition: var(--sgr-transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sgr-accent), transparent);
  opacity: 0;
  transition: var(--sgr-transition);
}

.card:hover {
  background: var(--sgr-bg-card-hover);
  border-color: var(--sgr-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--sgr-shadow-glow);
}

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

/* Magnetic tilt effect container */
.card--tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card__number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 108, 0, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--sgr-radius-sm);
  background: rgba(255, 108, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--sgr-accent);
  font-size: 1.25rem;
  transition: var(--sgr-transition);
}

.card:hover .card__icon {
  background: var(--sgr-accent);
  color: #fff;
  box-shadow: var(--sgr-shadow-glow);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--sgr-text-primary);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--sgr-text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sgr-accent);
  transition: var(--sgr-transition);
}

.card__link:hover {
  gap: 0.75rem;
}

/* Product showcase card (large, with image) */
.card--showcase {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.card--showcase .card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card--showcase .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--showcase:hover .card__image img {
  transform: scale(1.05);
}

.card--showcase .card__body {
  padding: 1.5rem 2rem 2rem;
}

/* Stat card */
.card--stat {
  text-align: center;
  padding: 2.5rem 2rem;
}

.card--stat .card__number {
  font-size: 3rem;
  color: var(--sgr-accent);
  opacity: 1;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Featured Product / Split Section
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sgr-gap-lg);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__image {
  position: relative;
  border-radius: var(--sgr-radius-lg);
  overflow: hidden;
}

.split__image img {
  width: 100%;
  border-radius: var(--sgr-radius-lg);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.split__image:hover img {
  transform: scale(1.03);
}

.split__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-lg);
  pointer-events: none;
}

.split__content {
  max-width: 540px;
}

.split__content h2 {
  margin-bottom: 1.25rem;
}

.split__content p {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .split, .split--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ==========================================================================
   Quote / Calculator Section
   ========================================================================== */
.calculator-section {
  background: var(--sgr-bg-surface);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-xl);
  padding: 3rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 108, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.calculator__header {
  margin-bottom: 2.5rem;
}

.calculator__header h2 {
  margin-bottom: 0.5rem;
}

.calculator__form {
  display: grid;
  gap: 1.5rem;
}

.calculator__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sgr-text-secondary);
}

.form-group select,
.form-group input[type="number"] {
  background: var(--sgr-bg-dark);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-sm);
  padding: 0.75rem 1rem;
  color: var(--sgr-text-primary);
  font-family: var(--sgr-font-body);
  font-size: 0.9375rem;
  transition: var(--sgr-transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6C00' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--sgr-accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.15);
}

.form-group input[type="number"]::-webkit-inner-spin-button {
  opacity: 0.5;
}

/* Cuts table */
.cuts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
}

.cuts-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sgr-text-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sgr-border);
}

.cuts-table td {
  padding: 0.5rem;
  vertical-align: middle;
}

.cuts-table .cut-number {
  font-weight: 700;
  color: var(--sgr-text-muted);
  font-size: 0.875rem;
  text-align: center;
  width: 50px;
}

.cuts-table .cut-x {
  text-align: center;
  color: var(--sgr-text-muted);
  font-weight: 600;
}

.cuts-table input[type="number"] {
  width: 100%;
  background: var(--sgr-bg-dark);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-sm);
  padding: 0.625rem 0.75rem;
  color: var(--sgr-text-primary);
  font-family: var(--sgr-font-body);
  font-size: 0.9375rem;
  transition: var(--sgr-transition);
  text-align: center;
}

.cuts-table input[type="number"]:focus {
  outline: none;
  border-color: var(--sgr-accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.15);
}

.cuts-table tr {
  transition: var(--sgr-transition);
}

.cuts-table tbody tr:hover {
  background: rgba(255, 108, 0, 0.03);
}

/* Accessories table (guttering) */
.accessories-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
}

.accessories-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sgr-border);
  vertical-align: middle;
}

.accessories-table td:first-child {
  color: var(--sgr-text-secondary);
  font-weight: 500;
}

.accessories-table input[type="number"] {
  width: 80px;
  background: var(--sgr-bg-dark);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--sgr-text-primary);
  font-family: var(--sgr-font-body);
  font-size: 0.9375rem;
  text-align: center;
  transition: var(--sgr-transition);
}

.accessories-table input[type="number"]:focus {
  outline: none;
  border-color: var(--sgr-accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.15);
}

/* Quote result */
.calculator__result {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--sgr-bg-dark);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.calculator__result-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sgr-text-muted);
}

.calculator__result-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sgr-accent);
  letter-spacing: -0.02em;
  transition: var(--sgr-transition);
}

.calculator__result-price.calculating {
  opacity: 0.5;
  animation: pulse 1s ease-in-out infinite;
}

.calculator__result-note {
  font-size: 0.8125rem;
  color: var(--sgr-text-muted);
  width: 100%;
}

.calculator__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn--add-cuts {
  background: transparent;
  border: 1px dashed var(--sgr-border-light);
  color: var(--sgr-text-muted);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--sgr-radius-sm);
  cursor: pointer;
  transition: var(--sgr-transition);
  font-family: var(--sgr-font-body);
}

.btn--add-cuts:hover {
  border-color: var(--sgr-accent);
  color: var(--sgr-accent);
}

/* ==========================================================================
   Big Text Section (like plat-form's large statement)
   ========================================================================== */
.big-text-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.big-text {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--sgr-text-primary);
  max-width: 1000px;
}

.big-text .accent {
  color: var(--sgr-accent);
  font-style: italic;
}

.big-text .muted {
  color: var(--sgr-text-muted);
}

/* ==========================================================================
   Marquee / Scrolling Banner
   ========================================================================== */
.marquee {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--sgr-border);
  border-bottom: 1px solid var(--sgr-border);
  background: var(--sgr-bg-darker);
}

.marquee__inner {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee__item {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sgr-text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marquee__item .dot {
  width: 6px;
  height: 6px;
  background: var(--sgr-accent);
  border-radius: 50%;
}

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

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
  border-top: 1px solid var(--sgr-border);
  border-bottom: 1px solid var(--sgr-border);
  flex-wrap: wrap;
  gap: 2rem;
}

.stats-bar__item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.stats-bar__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sgr-accent);
  margin-bottom: 0.25rem;
}

.stats-bar__label {
  font-size: 0.8125rem;
  color: var(--sgr-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Process / How It Works
   ========================================================================== */
.process {
  counter-reset: process;
}

.process__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--sgr-border);
  transition: var(--sgr-transition);
  align-items: start;
}

.process__item:hover {
  padding-left: 1rem;
}

.process__number {
  counter-increment: process;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 108, 0, 0.2);
  line-height: 1;
  transition: var(--sgr-transition);
}

.process__item:hover .process__number {
  color: var(--sgr-accent);
}

.process__content h3 {
  margin-bottom: 0.5rem;
}

.process__content p {
  color: var(--sgr-text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq__item {
  border-bottom: 1px solid var(--sgr-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: var(--sgr-transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--sgr-font-body);
}

.faq__question h4 {
  font-size: 1.125rem;
  color: var(--sgr-text-secondary);
  transition: var(--sgr-transition);
}

.faq__question:hover h4,
.faq__item.active .faq__question h4 {
  color: var(--sgr-text-primary);
}

.faq__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq__icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sgr-accent);
  position: relative;
  transition: var(--sgr-transition);
}

.faq__icon span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--sgr-accent);
  transform: rotate(90deg);
  transition: var(--sgr-transition);
}

.faq__item.active .faq__icon span::after {
  transform: rotate(0);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 0;
}

.faq__item.active .faq__answer {
  max-height: 300px;
  padding: 0 0 1.5rem;
}

.faq__answer p {
  font-size: 0.9375rem;
  color: var(--sgr-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   CTA Section (Let's Talk style)
   ========================================================================== */
.cta-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section .section-label {
  margin-bottom: 2rem;
}

.cta__title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: var(--sgr-accent);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  transition: var(--sgr-transition-slow);
}

.cta__title:hover {
  text-shadow: 0 0 60px rgba(255, 108, 0, 0.3);
}

.cta__subtitle {
  font-size: 1.25rem;
  color: var(--sgr-text-secondary);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   CTA Interactive Roofing Canvas
   ========================================================================== */
.cta-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* Roofing page hero CTA */
.roofing-hero {
  padding: 2rem 0 5rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.roofing-hero .hero__actions {
  margin-bottom: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Combined CTA — "Get a Quote" | Phone | "Download App"
   ========================================================================== */
.cta-combined {
  padding: 4rem 0;
}

.cta-combined__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

/* Left & Right sides */
.cta-combined__side {
  text-align: center;
  padding: 2rem 1.5rem;
}

.cta-combined__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.cta-combined__heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.cta-combined__text {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* Centre phone wrapper with "or" dividers */
.cta-combined__phone-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 0.5rem;
}

.cta-combined__or {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* Phone mockup — compact */
.app-banner__phone {
  width: 150px;
  height: 300px;
  background: #1a1a1a;
  border-radius: 26px;
  border: 2.5px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-banner__phone:hover {
  transform: scale(1.05);
}

.app-banner__phone-screen {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 20px;
  background: linear-gradient(145deg, #111 0%, #1a1a1a 50%, #111 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  text-align: center;
  overflow: hidden;
}

.app-banner__phone-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,108,0,0.15) 0%, transparent 40%, transparent 60%, rgba(255,108,0,0.1) 100%);
  pointer-events: none;
}

.app-banner__phone-logo {
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.app-banner__phone-logo .accent-sub {
  color: var(--sgr-accent);
  font-size: 0.5rem;
  display: block;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.app-banner__phone-calc {
  position: relative;
  z-index: 1;
  width: 100%;
}

.app-banner__phone-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
}

.app-banner__phone-calc-row span:last-child {
  color: var(--sgr-accent);
  font-weight: 600;
}

.app-banner__phone-btn {
  margin-top: 0.5rem;
  background: var(--sgr-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-banner__phone-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,108,0,0.4);
}

/* Phone glow pulse */
@keyframes phoneGlow {
  0%, 100% { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(255,108,0,0.15); }
  50% { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(255,108,0,0.25); }
}

.app-banner__phone {
  animation: phoneGlow 4s ease-in-out infinite;
}

/* Phone screen shimmer */
@keyframes screenShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

.app-banner__phone-screen::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  transform: rotate(25deg);
  animation: screenShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

.app-banner__phone-calc {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* App download strip inside other CTA sections */
.cta-app-strip {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-app-strip__icon {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-app-strip__icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.cta-app-strip__text {
  flex: 1;
  min-width: 180px;
}

.cta-app-strip__text strong {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
}

.cta-app-strip__text span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8125rem;
}

.cta-app-strip .btn {
  flex-shrink: 0;
}

/* Responsive — combined CTA */
@media (max-width: 900px) {
  .cta-combined__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cta-combined__phone-wrap {
    flex-direction: row;
    justify-content: center;
    padding: 1.5rem 0;
  }
  .cta-combined__or {
    writing-mode: horizontal-tb;
  }
  .app-banner__phone {
    width: 130px;
    height: 260px;
  }
  .app-banner__phone-screen {
    padding: 0.75rem;
  }
  .app-banner__phone-logo {
    font-size: 0.65rem;
  }
  .app-banner__phone-calc-row {
    font-size: 0.45rem;
    padding: 0.2rem 0;
  }
  .app-banner__phone-btn {
    font-size: 0.45rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .cta-app-strip {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }
  .cta-app-strip .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Page hero banner image */
.page-hero-banner {
  border-radius: 16px;
  overflow: hidden;
  max-height: 400px;
}

.page-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--sgr-bg-darker);
  border-top: 1px solid var(--sgr-border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.9375rem;
  color: var(--sgr-text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

.footer__logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sgr-text-primary);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.625rem;
}

.footer__links a {
  font-size: 0.9375rem;
  color: var(--sgr-text-secondary);
  transition: var(--sgr-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer__links a:hover {
  color: var(--sgr-accent);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--sgr-text-secondary);
  font-size: 0.9375rem;
}

.footer__contact-icon {
  color: var(--sgr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--sgr-radius-sm);
  border: 1px solid var(--sgr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sgr-text-secondary);
  transition: var(--sgr-transition);
}

.footer__social a:hover {
  border-color: var(--sgr-accent);
  color: var(--sgr-accent);
  background: rgba(255, 108, 0, 0.1);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--sgr-border);
  font-size: 0.8125rem;
  color: var(--sgr-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom a {
  color: var(--sgr-text-muted);
}

.footer__bottom a:hover {
  color: var(--sgr-accent);
}

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

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--sgr-radius-sm);
  background: var(--sgr-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--sgr-transition);
  z-index: 999;
  box-shadow: var(--sgr-shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--sgr-accent-light);
  transform: translateY(-3px);
  box-shadow: var(--sgr-shadow-glow-strong);
}

/* ==========================================================================
   Page Header (Inner pages)
   ========================================================================== */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--sgr-bg-darker);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 108, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--sgr-text-muted);
}

.page-header__breadcrumb a {
  color: var(--sgr-text-muted);
}

.page-header__breadcrumb a:hover {
  color: var(--sgr-accent);
}

.page-header__breadcrumb .separator {
  color: var(--sgr-accent);
}

/* ==========================================================================
   Blog / Archive
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--sgr-bg-card);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-lg);
  overflow: hidden;
  transition: var(--sgr-transition);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--sgr-border-accent);
  box-shadow: var(--sgr-shadow-glow);
}

.post-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card__image img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 1.5rem;
}

.post-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--sgr-text-muted);
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-card__title a {
  color: var(--sgr-text-primary);
}

.post-card__title a:hover {
  color: var(--sgr-accent);
}

.post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--sgr-text-secondary);
  margin-bottom: 1rem;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sgr-accent);
}

.post-card__link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post__content {
  max-width: 800px;
  margin: 0 auto;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single-post__content p {
  margin-bottom: 1.5rem;
  max-width: none;
}

.single-post__content img {
  border-radius: var(--sgr-radius-md);
  margin: 2rem 0;
}

.single-post__content blockquote {
  border-left: 3px solid var(--sgr-accent);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--sgr-text-secondary);
}

.single-post__content ul, .single-post__content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--sgr-text-secondary);
}

.single-post__content li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-404__number {
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 108, 0, 0.15);
  line-height: 1;
}

/* ==========================================================================
   Contact Form (placeholder)
   ========================================================================== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: var(--sgr-bg-dark);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-sm);
  padding: 0.875rem 1rem;
  color: var(--sgr-text-primary);
  font-family: var(--sgr-font-body);
  font-size: 0.9375rem;
  transition: var(--sgr-transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sgr-accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.15);
}

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

/* ==========================================================================
   WordPress Block Editor Overrides
   ========================================================================== */
.wp-block-button .wp-block-button__link {
  background: var(--sgr-accent) !important;
  color: #fff !important;
  border-radius: var(--sgr-radius-sm) !important;
  padding: 0.875rem 2rem !important;
  font-family: var(--sgr-font-body) !important;
  font-weight: 600 !important;
  transition: var(--sgr-transition) !important;
  border: none !important;
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--sgr-accent-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--sgr-shadow-glow) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--sgr-border-light) !important;
  color: var(--sgr-text-primary) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--sgr-accent) !important;
  color: var(--sgr-accent) !important;
}

.wp-block-columns {
  gap: var(--sgr-gap) !important;
}

.wp-block-quote {
  border-left: 3px solid var(--sgr-accent) !important;
  padding-left: 1.5rem !important;
}

.wp-block-separator {
  border-color: var(--sgr-border) !important;
}

.wp-block-image img {
  border-radius: var(--sgr-radius-md) !important;
}

.entry-content {
  color: var(--sgr-text-secondary);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--sgr-text-primary);
}

/* ==========================================================================
   Horizontal Scroll Text (Marquee-style branding)
   ========================================================================== */
.brand-marquee {
  padding: 4rem 0;
  background: var(--sgr-accent);
  overflow: hidden;
}

.brand-marquee__inner {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.brand-marquee__item {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand-marquee__item .divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 1rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Magnetic hover effect for interactive elements */
.magnetic {
  transition: transform 0.2s ease-out;
}

/* Tilt card inner glow on hover */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--sgr-accent), transparent, var(--sgr-accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.glow-border:hover::after {
  opacity: 0.3;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--sgr-bg-card) 25%, var(--sgr-bg-elevated) 50%, var(--sgr-bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--sgr-radius-sm);
}

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

/* Text reveal animation */
.text-reveal {
  clip-path: inset(0 100% 0 0);
  animation: textReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textReveal {
  to { clip-path: inset(0 0 0 0); }
}

/* Grain overlay for texture */
.grain::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* Print styles */
@media print {
  .site-header, .site-footer, .back-to-top, .mouse-glow, .particles-bg {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a { color: #000; }
}

/* ==========================================================================
   Preview-only: Logo text styling
   ========================================================================== */
.header__logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--sgr-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: inline-block;
}

.header__logo-text .text-accent {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--sgr-accent);
}

/* Preview-only: Hero title word-wrapping fix */
.hero__title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero__title .hero-char {
  white-space: pre;
}

/* Preview-only: placeholder images */
.card--showcase .card__image {
  background: linear-gradient(135deg, var(--sgr-bg-elevated) 0%, var(--sgr-bg-card) 100%);
}

.split__image {
  background: linear-gradient(135deg, var(--sgr-bg-elevated) 0%, var(--sgr-bg-card) 100%);
  min-height: 350px;
}

.post-card__image {
  background: linear-gradient(135deg, var(--sgr-bg-elevated) 0%, var(--sgr-bg-card) 100%);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sgr-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border: 1px dashed var(--sgr-border-light);
  border-radius: var(--sgr-radius-md);
}

/* Preview-only: Page hero banner image */
.page-hero-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--sgr-radius-lg);
  margin-bottom: var(--sgr-gap-lg);
}

.page-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--sgr-bg-dark) 100%);
}

/* Preview-only: Colour swatches */
.colour-swatches {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.colour-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.colour-swatch__circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--sgr-border);
  transition: var(--sgr-transition);
}

.colour-swatch:hover .colour-swatch__circle {
  border-color: var(--sgr-accent);
  transform: scale(1.1);
}

.colour-swatch__label {
  font-size: 0.75rem;
  color: var(--sgr-text-secondary);
  font-weight: 500;
  text-align: center;
}

/* Preview-only: Contact form layout */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

/* Preview-only: Map placeholder */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--sgr-bg-card);
  border: 1px solid var(--sgr-border);
  border-radius: var(--sgr-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sgr-text-muted);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Preview-only: Info list */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sgr-border);
  color: var(--sgr-text-secondary);
  font-size: 0.9375rem;
}

.info-list li .icon {
  color: var(--sgr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Preview-only: Card image container */
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

/* Preview-only: Spec table */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.spec-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sgr-text-muted);
  border-bottom: 1px solid var(--sgr-border);
}

.spec-table td {
  padding: 0.75rem 1rem;
  color: var(--sgr-text-secondary);
  border-bottom: 1px solid var(--sgr-border);
  font-size: 0.9375rem;
}

.spec-table tbody tr:hover {
  background: rgba(255, 108, 0, 0.03);
}
