/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */

/* ================================
   CRITICAL CSS - CURLY TAIL SCREEN & WINDOW
   Homepage above-fold only. SELF-CONTAINED.
   Loaded blocking on index.html ONLY.
   RULE: Zero duplication with structure.css,
         components.css, tokens.css, or any page CSS.
   ================================ */

/* ================================
   1. FONT FACE — MUST BE FIRST
   ================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Asap Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../assets/fonts/asap-condensed-bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================
   2. CSS VARIABLES — ALL TOKENS NEEDED ABOVE FOLD
   Defined inline — critical.css must NOT depend on tokens.css
   for above-fold rendering.
   ================================ */

:root {
  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Asap Condensed', 'Inter', sans-serif;

  /* Font weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Font sizes */
  --text-xs: clamp(0.75rem, 0.7vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85vw, 0.9375rem);
  --text-base: clamp(1rem, 1vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.2vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 2vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 2.5vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 3vw, 3rem);
  --text-5xl: clamp(2.5rem, 4vw, 3.5rem);
  --text-6xl: clamp(3rem, 5vw, 4.5rem);

  /* Line heights */
  --line-height-tight: 1.1;
  --line-height-heading: 1.2;
  --line-height-subheading: 1.3;
  --line-height-body: 1.7;
  --line-height-relaxed: 1.8;

  /* Letter spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.01em;

  /* Max line width */
  --max-line-width: 70ch;
  --paragraph-spacing: 1.5em;

  /* Core colors */
  --color-orange: #F97316;
  --color-orange-dark: #EA580C;
  --color-orange-light: #FB923C;
  --color-orange-accessible: #b45309;
  --color-orange-soft: #FED7AA;
  --color-orange-subtle: #FFF7ED;

  --color-blue: #1E40AF;
  --color-blue-dark: #1E3A8A;
  --color-blue-light: #2563EB;
  --color-blue-navy: #002a5b;
  --color-blue-soft: #DBEAFE;
  --color-blue-subtle: #EFF6FF;

  --color-text: #111827;
  --color-text-secondary: #374151;
  --color-text-muted: #6B7280;

  --color-white: #FFFFFF;
  --color-off-white: #EDEDEC;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;

  --color-success: #10B981;
  --color-error: #DC2626;

  /* Semantic tokens */
  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --text-heading: var(--color-text);
  --text-link: var(--color-blue);
  --text-link-hover: var(--color-blue-dark);
  --text-tertiary: var(--color-text-muted);

  --bg-page: var(--color-white);

  --border-light: var(--color-gray-200);
  --border-medium: var(--color-gray-300);

  /* Button tokens */
  --button-primary-bg: #c5670f;
  --button-primary-bg-hover: #a5570d;
  --button-primary-text: var(--color-white);

  /* Nav tokens */
  --nav-bg: var(--color-white);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
  --nav-text: var(--color-text);
  --nav-text-hover: var(--color-blue);

  /* Card tokens */
  --card-bg: var(--color-white);
  --card-border: var(--color-gray-200);

  /* Accent */
  --accent-primary: var(--color-orange);

  /* Badge */
  --badge-bg: var(--color-blue-subtle);
  --badge-text: var(--color-blue);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.18), 0 10px 16px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 16px 32px -6px rgba(0, 0, 0, 0.18), 0 6px 12px -3px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.8);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.2s ease-out;
  --transition-slow: 0.3s ease-out;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Transforms */
  --lift-sm: translateY(-2px);
  --lift-md: translateY(-4px);
  --lift-lg: translateY(-6px);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-fixed: 500;
  --z-modal: 1000;

  /* Overlays */
  --overlay-dark: rgba(17, 24, 39, 0.8);
  --overlay-medium: rgba(17, 24, 39, 0.5);
  --overlay-light: rgba(17, 24, 39, 0.3);

  /* Layout */
  --margin-page: 5%;
  --section-gap-sm: 80px;
  --section-gap-md: 120px;
  --section-gap-lg: 150px;
  --content-gap: 40px;
}

/* ================================
   3. GLOBAL RESET & BASE ELEMENTS
   Moved from structure.css — these must be critical
   or the entire body shifts when structure.css loads deferred.
   ================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--line-height-heading);
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
}

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

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

h4 {
  font-size: var(--text-2xl);
  line-height: var(--line-height-subheading);
}

h5 {
  font-size: var(--text-xl);
  line-height: var(--line-height-subheading);
}

h6 {
  font-size: var(--text-lg);
  line-height: var(--line-height-subheading);
}

p {
  max-width: var(--max-line-width);
  margin-bottom: var(--paragraph-spacing);
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-link-hover);
}

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

body.page-home {
  background-color: var(--color-white);
}

body.page-standard {
  padding-top: 80px;
  background-color: var(--color-white);
}

body.page-form {
  padding-top: 0;
  background-color: var(--bg-page);
}

/* ================================
   4. SKIP LINK
   ================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-blue);
  color: #FFFFFF !important;
  padding: 8px 16px;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: #FFFFFF !important;
}

/* ================================
   4. CORNER LOGO — Homepage variant
   Scoped to .page-v2 or base style.
   structure.css handles .corner-logo base;
   index.css has mobile overrides.
   These base styles are shared — we define
   them here and strip from structure.css.
   ================================ */

.corner-logo {
  position: fixed;
  top: 12px;
  left: calc(4% + 12px);
  z-index: 1001;
  display: block;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.corner-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 3px rgba(255, 255, 255, 1)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-base), width var(--transition-base), filter var(--transition-base);
}

.corner-logo:hover img {
  transform: scale(1.05);
}

.corner-logo.scrolled img {
  width: 96px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* ================================
   4b. NAV-CONTENT BASE
   display:flex layout for nav row. Without this the nav items
   stack vertically until structure.css loads.
   Moved from structure.css; shared with internal-critical.css.
   ================================ */

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: 1400px;
  width: calc(100% - 10%);
  margin: 0 auto;
}

/* ================================
   5. NAV-LINKS & NAV-LINK BASE
   Must be critical — without display:flex on .nav-links,
   mobile renders nav as open/block on load.
   Without nav-link base, links unstyled until structure.css loads.
   Moved from structure.css.
   ================================ */

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: var(--nav-text);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-link.active::after {
  width: 100%;
  background-color: var(--color-blue);
}

/* @keyframes fadeInButton — referenced by nav-cta-desktop/mobile in structure.css.
   Must be in critical or buttons stay opacity:0 until components.css loads. */
@keyframes fadeInButton {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   6. NAV BASE — Must be critical.
   Without position:fixed + background-color, nav renders in
   document flow on first paint. When structure.css loads deferred,
   nav snaps to fixed — entire page jumps up to fill the gap = CLS.
   Moved from structure.css.
   ================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: var(--nav-bg);
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  background-color: var(--nav-bg-scrolled);
  box-shadow: var(--shadow-sm);
}

/* ================================
   7. TRANSPARENT NAV — Homepage only
   Scoped under .page-v2 so no conflict
   with structure.css .nav base or
   interior nav styles.
   ================================ */

/* Hide default logo in nav when corner logo is used */
.page-v2 .nav-no-logo .logo {
  display: none;
}

/* Adjust nav content to push right when no logo */
.page-v2 .nav-no-logo .nav-content {
  justify-content: flex-end;
  padding-left: 140px;
}

.page-v2 .nav-links {
  margin-right: 40px;
}

/* Transparent Nav for Hero */
.page-v2 .nav-transparent {
  background-color: transparent;
}

.page-v2 .nav-transparent .nav-link,
.page-v2 .nav-transparent .nav-phone {
  color: var(--color-white);
}

.page-v2 .nav-transparent .nav-link:hover {
  color: var(--color-orange);
}

.page-v2 .nav-transparent .nav-link::after {
  background-color: var(--color-white);
}

.page-v2 .nav-transparent .nav-phone-icon {
  color: var(--color-white);
}

.page-v2 .nav-transparent .hamburger span {
  background-color: var(--color-white);
}

.page-v2 .nav.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
}

.page-v2 .nav.scrolled .nav-link,
.page-v2 .nav.scrolled .nav-phone {
  color: var(--color-text);
}

.page-v2 .nav.scrolled .nav-phone-icon {
  color: var(--color-orange);
}

.page-v2 .nav.scrolled .hamburger span {
  background-color: var(--color-text);
}

/* ================================
   6. NAV CTA, HAMBURGER, BTN-LG
   Above-fold elements missing from earlier sections.
   Moved from structure.css / components.css.
   ================================ */

/* Nav CTA button */
.nav-cta {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--weight-bold);
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background-color: var(--button-primary-bg-hover);
  transform: var(--lift-sm);
  box-shadow: var(--shadow-md);
  color: var(--button-primary-text);
}

/* Hamburger base */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* btn-lg — hero CTA uses btn btn-primary btn-lg */
.btn-lg {
  padding: 10px 28px;
  font-size: 28px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

/* ================================
   7. HERO FULLWIDTH SECTION
   ================================ */

.hero-fullwidth {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-fullwidth .hero-content {
  max-width: 700px;
  padding-right: 0;
  margin-left: 10%;
}

.hero-fullwidth .hero-content h1 {
  color: var(--color-white);
  font-size: var(--text-6xl);
  line-height: 1.05;
  margin-bottom: 40px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-fullwidth .hero-content h1 .hero-location {
  font-size: 0.55em;
  display: block;
  margin-top: 8px;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--color-white) !important;
}

.hero-fullwidth .hero-content h1 .line-break {
  display: block;
}

.hero-fullwidth p.hero-tagline {
  color: var(--color-orange);
  font-size: var(--text-xl);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
  margin-left: -10px;
  display: inline-block;
  background: rgba(80, 80, 80, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* Services 2x2 grid */
.hero-fullwidth .hero-services-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 32px;
  margin-top: 12px;
  margin-bottom: 36px;
  justify-content: start;
}

.hero-fullwidth .hero-services-grid span {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  position: relative;
  padding-left: 20px;
}

.hero-fullwidth .hero-services-grid span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-orange);
  border-radius: 50%;
}

.hero-fullwidth .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-fullwidth .hero-cta .btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-fullwidth .hero-cta .btn:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

/* Hero-specific btn-primary colour (slightly lighter than base) */
.hero-fullwidth .hero-cta .btn-primary,
.hero-form .btn-primary {
  background-color: #de7411;
}

.hero-fullwidth .hero-cta .btn-primary:hover,
.hero-form .btn-primary:hover {
  background-color: #c5670f;
}

/* ================================
   7. GOOGLE REVIEWS — Full definition
   Above-fold on homepage. Base + hero variant
   all in critical to avoid deferred LCP hit.
   ================================ */

/* Base google-reviews (canonical definition) */
.google-reviews {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.google-g {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.google-g img,
.google-g svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero-specific overrides */
.hero-fullwidth .google-reviews {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-fullwidth .google-reviews .reviews-top-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-fullwidth .google-reviews .reviews-rating {
  color: var(--color-text);
}

.hero-fullwidth .google-reviews .reviews-link {
  color: var(--color-blue);
  font-weight: var(--weight-semibold);
}

/* Hero response note */
.hero-response-note {
  display: block;
  color: var(--color-white);
  font-size: var(--text-sm);
  margin-bottom: 16px;
}

/* ================================
   8. HERO GRID — Two-column layout
   ================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.hero-grid .hero-content {
  max-width: none;
  margin-left: 0;
  padding-right: 0;
}

/* Form column */
.hero-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================================
   9. HERO FORM CARD
   Scoped to .hero-form to avoid
   duplicating .card and .card-body
   in components.css
   ================================ */

.hero-form.card {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
}

.hero-form .card-body {
  padding: 28px 24px;
}

.hero-form-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-blue-navy);
  text-align: center;
  margin-bottom: 20px;
}

.hero-form .form-group {
  margin-bottom: 14px;
}

.hero-form .form-group label {
  font-size: var(--text-xs);
  margin-bottom: 4px;
}

.hero-form .form-group input,
.hero-form .form-group textarea {
  padding: 10px 12px;
  font-size: var(--text-sm);
}

.hero-form .form-group textarea {
  min-height: 70px;
}

.hero-form .form-checkbox input[type="checkbox"] {
  accent-color: var(--color-blue);
}

/* Form trust badges — hero variant */
.hero-form-col .form-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-form-col .form-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  white-space: nowrap;
}

/* Form privacy note */
.form-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 0;
}

.form-privacy a {
  color: var(--color-blue);
  text-decoration: underline;
}

/* Form success message */
.form-success-message {
  text-align: center;
}

.form-success-message .card {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
}

.form-success-message .card-body {
  padding: 32px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  color: var(--color-success);
  margin: 0 auto 16px;
  display: block;
}

.form-success-message h3 {
  color: var(--color-success);
  font-size: var(--text-2xl);
  margin-bottom: 8px;
}

/* ================================
   10. MOBILE RESPONSIVE — Above-fold only
   ================================ */

@media (max-width: 1024px) {
  .hero-fullwidth .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-fullwidth .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-fullwidth .hero-services-grid {
    justify-content: center;
  }

  .hero-fullwidth .hero-cta {
    justify-content: center;
  }

  .hero-fullwidth .google-reviews {
    margin: 0 auto;
  }

  .hero-fullwidth .hero-tagline {
    font-size: var(--text-2xl);
  }

  .hero-fullwidth .hero-services-grid span {
    font-size: var(--text-base);
  }
}

/* Homepage nav mobile overrides — matches structure.css hamburger at 1250px */
@media (max-width: 1250px) {
  /* CRITICAL: nav-links hidden state must be in critical.css.
     Without position:fixed + translateX(100%) from blocking CSS,
     the drawer renders in normal flow (half-open) until
     structure.css loads deferred and hides it. */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    background-color: var(--color-white);
    z-index: var(--z-modal);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .page-v2 .nav-no-logo .nav-content {
    padding-left: 90px;
    align-items: center;
  }

  .page-v2 .nav-right {
    display: flex;
    align-items: center;
  }

  .page-v2 .nav-right .nav-cta-mobile {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .page-v2 .hamburger {
    align-self: center;
  }

  .page-v2 .nav-links {
    margin-right: 0;
    width: 240px;
  }

  .page-v2 .nav-transparent .nav-links .nav-link {
    color: var(--color-text);
  }

  .page-v2 .nav-transparent .nav-links .nav-link:hover {
    color: var(--color-orange);
  }
}

@media (max-width: 900px) {
  .corner-logo img {
    width: 90px;
  }

  .corner-logo.scrolled img {
    width: 70px;
  }
}

@media (max-width: 768px) {
  .corner-logo {
    top: 8px;
    left: 8px;
    transition: top var(--transition-base), left var(--transition-base);
  }

  .corner-logo img {
    transition: width var(--transition-base);
    /* width inherits 90px from the 900px breakpoint — do not override */
  }

  .corner-logo.scrolled {
    top: 8px;
    left: 8px;
  }

  .corner-logo.scrolled img {
    width: 70px;
  }

  .hero-bg img {
    object-fit: contain;
    object-position: center top;
  }

  .hero-fullwidth {
    min-height: auto;
  }

  .hero-content-wrapper {
    padding-top: 140px;
    padding-bottom: 20px;
  }

  .hero-fullwidth .container {
    width: calc(100% - 16px) !important;
    padding: 0 8px;
  }

  .hero-fullwidth .hero-content {
    text-align: center;
    max-width: none !important;
    padding: 0;
  }

  .hero-fullwidth .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
    padding: 0;
  }

  .hero-fullwidth .hero-content h1 .line-break {
    display: block;
  }

  .hero-fullwidth .hero-tagline {
    font-size: var(--text-2xl);
  }

  .hero-fullwidth .hero-services-grid {
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 32px;
  }

  .hero-fullwidth .hero-services-grid span {
    font-size: var(--text-sm);
  }

  .hero-fullwidth .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 15px;
    padding: 0;
  }

  .hero-fullwidth .hero-cta .btn {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    font-size: var(--text-xl);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }

  .hero-fullwidth .hero-cta .btn-primary {
    background-color: #de7411;
    color: var(--color-white);
  }

  .hero-fullwidth .hero-cta .btn-white {
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--color-blue);
  }

  .hero-fullwidth .google-reviews {
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: var(--text-2xl);
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }

  .hero-fullwidth .google-reviews .reviews-top-line {
    display: flex;
    align-items: center;
  }

  .hero-fullwidth .google-reviews .google-g {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
  }

  .hero-fullwidth .google-reviews .google-g svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .hero-fullwidth .google-reviews .reviews-stars-img {
    width: 125px;
    height: auto;
    display: block;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }

  /* Hero Grid — stack on mobile */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-form .card-body {
    padding: 20px 16px;
  }

  .hero-form-title {
    font-size: var(--text-lg);
    margin-bottom: 14px;
  }
}

@media (max-width: 600px) {
  .corner-logo img {
    width: 80px;
  }

  .corner-logo.scrolled img {
    width: 49px;
  }
}

@media (max-width: 480px) {
  .hero-fullwidth .hero-tagline {
    font-size: var(--text-base) !important;
  }
}

@media (max-width: 430px) {
  .hero-fullwidth .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-fullwidth .hero-tagline {
    font-size: var(--text-sm) !important;
  }
}

@media (max-width: 375px) {
  .hero-fullwidth .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-fullwidth .hero-content h1 .hero-location {
    font-size: 0.5em;
  }
}

/* ================================
   INTRO BAR — Section immediately below hero.
   Above-fold on most viewports. Moved from components.css.
   ================================ */

.intro-bar {
  background-color: var(--color-white);
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.intro-bar-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-headline {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro-headline.company-name {
  font-family: var(--font-logo);
  font-size: var(--text-5xl);
  letter-spacing: 0.02em;
  color: var(--color-blue-navy);
}

.intro-tagline {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  text-align: center;
}

@media (max-width: 900px) {
  .intro-bar-content {
    max-width: calc(100% - 20px);
    padding: 0 10px;
  }

  .intro-headline.company-name {
    font-size: clamp(1rem, 7.5vw, var(--text-5xl)) !important;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .intro-headline {
    font-size: var(--text-xl);
  }

  .intro-headline.company-name {
    font-size: clamp(1rem, 7.5vw, var(--text-5xl)) !important;
    white-space: nowrap;
  }
}

/* ================================
   SECTION SPACING — Used by intro-bar (section-sm).
   Moved from structure.css.
   ================================ */

.section {
  padding-top: var(--section-gap-md);
  padding-bottom: var(--section-gap-md);
}

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

.section-lg {
  padding-top: var(--section-gap-lg);
  padding-bottom: var(--section-gap-lg);
}

.section-hero {
  padding-top: 0;
  padding-bottom: var(--section-gap-md);
}

/* ================================
   GRID UTILITIES — Must be in critical (shared with internal-critical.css).
   Used above-fold on internal pages; below-fold on homepage.
   Stripped from structure.css to prevent duplication.
   ================================ */

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

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--content-gap);
  align-items: center;
}

/* Section header — used on every page; moved from components.css */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

/* ================================
   REVEAL ANIMATIONS — Initial state must be critical.
   If opacity:0 + transform are only in deferred CSS,
   elements are briefly visible at normal position,
   then snap to hidden when components.css loads = CLS.
   ================================ */

[data-reveal] {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.reveal-fade-up,
[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-fade-up.is-visible,
[data-reveal="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
