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

/* ================================
   INTERNAL CRITICAL CSS - CURLY TAIL SCREEN & WINDOW
   All non-homepage pages above-fold only.
   SELF-CONTAINED. Loaded blocking on every
   page EXCEPT index.html.
   RULE: Zero duplication with structure.css,
         components.css, tokens.css, or any page CSS.
   The two critical files may share rules with
   each other — they never load on the same page.
   ================================ */

/* ================================
   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 — internal-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);

  --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);

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

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

  /* 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
   Shared with critical.css — never loaded together.
   Must be critical or whole-body CLS fires on structure.css load.
   ================================ */

*,
*::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-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. NAV BASE — Must be critical (shared with critical.css).
   position:fixed removes nav from flow. Without this in critical,
   nav renders in flow on first paint → page jumps when structure.css loads.
   ================================ */

.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);
}

/* ================================
   4b. NAV CONTENT, NAV-LINKS, NAV-LINK, NAV-CTA, HAMBURGER
   Shared with critical.css (never loaded together).
   Without these, internal pages show broken nav on first paint:
   - nav-content stacks vertically (missing display:flex)
   - nav-links renders as open block (missing display:flex)
   - nav-cta unstyled (wrong shape, wrong colour)
   - hamburger visible on desktop
   ================================ */

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

.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 {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.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 {
  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 {
  padding: 10px 28px;
  font-size: 28px;
}

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

/* Mobile: nav drawer hidden state — must be critical.
   Without position:fixed + translateX(100%), drawer renders
   in normal flow or visible on first paint. */
@media (max-width: 1250px) {
  .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);
  }
}

/* ================================
   5. CORNER LOGO — Interior variant
   scoped to .page-interior so no conflict
   with critical.css (never on same page).
   ================================ */

.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));
}

/* ================================
   5. INTERIOR NAV — White background variant
   Scoped to .page-interior to ensure
   no duplication with homepage nav styles
   in critical.css.
   ================================ */

/* Interior nav — starts with white background */
.page-interior .nav-interior {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-interior .nav-no-logo .nav-content {
  justify-content: flex-end;
  padding-left: 140px;
}

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

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

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

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

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

/* Scrolled state */
.page-interior .nav.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

/* ================================
   6. BREADCRUMBS
   ================================ */

.breadcrumbs {
  background: var(--color-white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  flex-wrap: wrap;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-link:hover {
  color: var(--color-orange);
}

.breadcrumbs-separator {
  color: var(--color-text-muted);
  opacity: 0.5;
  font-size: var(--text-xs);
  user-select: none;
}

.breadcrumbs-current {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.breadcrumbs-home-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ================================
   7. PAGE HEADER — Interior hero
   ================================ */

.page-header {
  position: relative;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-heading);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: 16px;
}

.page-header p {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  /* Breadcrumbs — hide on mobile */
  .breadcrumbs {
    display: none;
  }

  .page-interior .nav-no-logo .nav-content {
    padding-left: 90px;
  }

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

  .page-interior .hamburger {
    margin-left: 8px;
  }

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

  .corner-logo img {
    width: 84px;
  }

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

  .page-header {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-header h1 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    padding: 10px 0;
  }

  .breadcrumbs-list {
    font-size: var(--text-xs);
  }
}

/* ================================
   9. REVEAL ANIMATION INITIAL STATE
   Shared with critical.css (never loaded together).
   If opacity:0 is only in deferred components.css,
   elements briefly flash visible then snap to hidden = 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);
}

/* ================================
   10. ABOVE-FOLD LAYOUT CLASSES
   grid-split, grid-2, section-header — defined in deferred
   structure.css and components.css. Any above-fold element
   using these classes will CLS when the deferred file loads.
   Must be here so layout is correct on first paint.
   ================================ */

/* Grid utility classes — duplicated from structure.css for critical path */
.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 spacing — shared with critical.css (never loaded together) */
.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);
}

/* Section header — used above fold on every internal page */
.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);
}

/* ================================
   10. ABOUT PAGE — ABOVE-FOLD HERO
   .about-hero uses position:relative + min-height.
   Without it the hero collapses to 0 on first paint.
   ================================ */

.about-hero {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  margin-top: 80px;
}

/* ================================
   11. SERVICES PAGE — FLIP CARD HEIGHT
   Without height:350px, flip cards have no height on first
   paint — entire services grid collapses then expands.
   ================================ */

.flip-card {
  perspective: 1000px;
  height: 350px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

@media (max-width: 768px) {
  .flip-card {
    height: auto;
    perspective: none;
  }

  .flip-card-inner {
    transform: none !important;
    transform-style: flat;
  }

  .about-hero {
    display: none;
  }
}

/* ================================
   12. FAQ PAGE — ABOVE-FOLD LIST LAYOUT
   .faq-list centring via max-width/margin must be
   critical or the list snaps to full-width then centres.
   ================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ================================
   8. GOOGLE REVIEWS — Base definition
   Shared with critical.css (never loaded together).
   Needed for internal pages that show reviews (contact).
   ================================ */

.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;
}

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