/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
/* ================================
   STRUCTURE - CURLY TAIL SCREEN & WINDOW
   Consolidated: theme/reset, layout, navigation, footer, breadcrumbs
   Sources: theme-base.css, layout/structure.css, components/navigation.css,
            components/footer.css, components/breadcrumbs.css,
            ab-test.css (nav CTA visibility, footer mascot, breadcrumbs mobile hide),
            pages/about.css (corner-logo block)
   ================================ */

/* ========================================
   THEME / RESET
   Reset, html, body, headings, p, a, img, body.page-*
   moved to critical.css to prevent whole-body CLS.
   ======================================== */

/* Links in body content need underlines for accessibility */
p a,
li a:not(.nav-link),
.card-body a,
.feature-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

p a:hover,
li a:not(.nav-link):hover,
.card-body a:hover,
.feature-content a:hover {
  text-decoration-thickness: 2px;
}

/* List Defaults */
ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: var(--list-spacing);
}

/* Section Backgrounds — Alternating for visual rhythm */
.section-white {
  background-color: var(--color-white);
}

.section-off-white {
  background-color: var(--color-off-white);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.06);
}

.section-blue-subtle {
  background-color: var(--color-blue-subtle);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.04);
}

.section-orange-subtle {
  background-color: var(--color-orange-subtle);
}

/* Dark section for contrast (footer, special areas) */
.section-dark {
  background-color: var(--color-text);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-white);
}

.section-dark a {
  color: var(--color-orange-light);
}

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

/* Selection Styles — Brand-colored selection */
::selection {
  background-color: var(--color-blue-soft);
  color: var(--color-text);
}

/* Focus Styles — Accessible focus indicators */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* img, body responsive typography — moved to critical.css */

/* ========================================
   LAYOUT
   ======================================== */

/* Spacing tokens moved to critical.css :root */

/* Container System — 5% margins on desktop */
.container {
  max-width: 1200px;
  width: calc(100% - (var(--margin-page) * 2));
  margin-left: auto;
  margin-right: auto;
}

.container-narrow {
  max-width: 800px;
  width: calc(100% - (var(--margin-page) * 2));
  margin-left: auto;
  margin-right: auto;
}

.container-wide {
  max-width: 1400px;
  width: calc(100% - (var(--margin-page) * 2));
  margin-left: auto;
  margin-right: auto;
}

.container-full {
  width: 100%;
  padding-left: var(--margin-page);
  padding-right: var(--margin-page);
}

/* .section, .section-sm, .section-lg, .section-hero moved to critical.css */

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

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

.flex-start {
  display: flex;
  align-items: flex-start;
}

.flex-end {
  display: flex;
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Gap Utilities */
.gap-xs {
  gap: 8px;
}

.gap-sm {
  gap: 16px;
}

.gap-md {
  gap: 24px;
}

.gap-lg {
  gap: 40px;
}

.gap-xl {
  gap: 60px;
}

.gap-2xl {
  gap: 80px;
}

/* Grid System */
.grid {
  display: grid;
}

/* .grid-2 moved to critical.css and internal-critical.css */

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

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--content-gap);
}

/* .grid-split moved to critical.css and internal-critical.css */

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
  top: 0;
}

/* Alignment */
.text-center {
  text-align: center;
}

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

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

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

/* Display */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.hidden {
  display: none;
}

/* Width Utilities */
.w-full {
  width: 100%;
}

.w-half {
  width: 50%;
}

.max-w-prose {
  max-width: var(--max-line-width);
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

/* Spacing Utilities */
.mt-auto {
  margin-top: auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  :root {
    --margin-page: 4%;
    --section-gap-md: 100px;
    --section-gap-lg: 120px;
  }

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

@media (max-width: 768px) {
  :root {
    --margin-page: 5%;
    --section-gap-sm: 60px;
    --section-gap-md: 80px;
    --section-gap-lg: 100px;
    --content-gap: 30px;
  }

  .container,
  .container-narrow,
  .container-wide {
    width: calc(100% - 40px);
  }

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

  .gap-lg {
    gap: 24px;
  }

  .gap-xl {
    gap: 40px;
  }

  .gap-2xl {
    gap: 60px;
  }

  /* Mobile hide/show */
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* ========================================
   NAVIGATION
   ======================================== */

/* .nav and .nav.scrolled base moved to critical.css (page-jump fix) */

/* .nav-content moved to critical.css and internal-critical.css */

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--color-text-secondary);
}

/* .nav-links and .nav-link base moved to critical.css (open-menu bug fix) */

/* Nav Dropdown (CSS-only hover menus) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  padding-right: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background-color: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background-color: var(--color-blue-subtle);
  color: var(--color-blue);
}

/* Phone Number in Nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-phone:hover {
  color: var(--color-orange);
}

.nav-phone-icon {
  width: 20px;
  height: 20px;
  color: var(--color-orange);
}

/* .nav-cta moved to critical.css */

/* Nav Right Section - Phone + CTA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* .hamburger base moved to critical.css */

/* Nav CTA Visibility — Show/hide CTAs based on viewport */
.nav-cta-desktop {
  display: inline-flex;
  opacity: 0;
  animation: fadeInButton 0.5s ease-out 0.5s forwards;
}

.nav-cta-mobile {
  display: none;
  opacity: 0;
  animation: fadeInButton 0.5s ease-out 0.5s forwards;
}

/* Mobile nav slide-out CTA styling */
.nav-links .nav-cta-desktop {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding: 16px 24px;
}

.nav-links .nav-cta-mobile {
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding: 16px 24px;
  background-color: #15803D;
  color: #FFFFFF !important;
}

.nav-links .nav-cta-mobile:hover {
  background-color: #14532D;
  color: #FFFFFF !important;
}

.nav-links .nav-cta-mobile span {
  color: #FFFFFF !important;
}

/* Light Show page nav CTA override */
.page-light-show .nav-cta-desktop {
  background-color: var(--color-blue);
}

.page-light-show .nav-cta-desktop:hover {
  background-color: var(--color-blue-dark);
}

/* Desktop: show first Christmas Light Show link, hide mobile one */
.nav-link-mobile-last {
  display: none;
}

/* Mobile Navigation — hamburger at 1250px */
@media (max-width: 1250px) {
  .nav-content {
    width: calc(100% - 40px);
    padding: 12px 0;
  }

  .hamburger {
    display: flex;
    margin-left: 16px;
  }

  .nav-right .nav-cta {
    padding: 8px 14px;
    font-size: var(--text-xs);
  }

  /* position, transform, flex-direction, background-color moved to critical files.
     Only visual styling remains here (safe deferred — only visible when open). */
  .nav-links {
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: var(--shadow-2xl);
  }

  .nav-link {
    width: 100%;
    padding: 16px 0;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--border-light);
  }

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

  /* Mobile phone - prominent at top */
  .nav-phone-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    background-color: var(--color-blue-subtle);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-blue);
    text-decoration: none;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 24px;
    padding: 16px 24px;
  }

  /* Hide desktop phone on mobile nav bar */
  .nav-right .nav-phone {
    display: none;
  }

  /* Nav Dropdown - Mobile: always visible in sidebar */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > .nav-link {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: 0;
    background-color: transparent;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border-light);
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--overlay-medium);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: -1;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Nav CTA Visibility — Mobile overrides */
  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
  }

  .nav-right .nav-cta-mobile {
    padding: 8px 14px;
    font-size: var(--text-xs);
    background-color: #15803D;
    color: #FFFFFF !important;
  }

  .nav-right .nav-cta-mobile:hover {
    background-color: #14532D;
    color: #FFFFFF !important;
  }

  /* Mobile: hide desktop-first Light Show link, show mobile-last one */
  .nav-link-desktop-first {
    display: none;
  }

  .nav-link-mobile-last {
    display: block;
  }
}

/* Tablet adjustments — nav links still visible above 1250px */
/* (Old 1024-769 tablet nav-link gap reduction removed — hamburger now active at 1250px) */

/* ========================================
   CORNER LOGO (Interior Pages)
   Base styles in internal-critical.css / critical.css.
   ======================================== */

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--nav-bg);
  padding: 40px 20px 20px;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.footer.section-dark {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-grid {
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.footer h3 {
  color: var(--footer-heading);
  font-size: var(--text-lg);
  margin-bottom: 20px;
}

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

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: var(--footer-link);
  font-size: var(--text-base);
}

.footer ul a:hover {
  color: var(--footer-link-hover);
}

.footer-contact p,
.footer-contact a {
  color: var(--footer-text);
  font-size: var(--text-base);
  margin-bottom: 8px;
  display: block;
}

.footer-contact a:hover {
  color: var(--footer-link-hover);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-social a svg {
  width: 48px;
  height: 48px;
}

.footer-social a:hover {
  color: var(--color-orange);
}

.footer-brand p {
  color: var(--footer-text);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand h3,
.footer-col h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
  padding-left: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
  color: var(--footer-text);
  font-size: var(--text-base);
  margin: 0;
}

.footer-bottom a {
  color: var(--color-text);
}

.footer-bottom__subtext {
  color: var(--footer-text);
  font-size: var(--text-xs);
}

/* Footer Mascot */
.lizard-mascot-footer {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 60px;
  height: auto;
  pointer-events: none;
  opacity: 0.8;
}

/* Footer — Mobile Adjustments */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-brand h3,
  .footer-col h3 {
    font-size: var(--text-2xl);
  }

  .footer h3 {
    font-size: var(--text-2xl);
  }

  .footer-brand p {
    font-size: var(--text-xl);
  }

  .footer-col a {
    font-size: var(--text-2xl);
  }

  .footer ul a {
    font-size: var(--text-xl);
  }

  .footer-contact p,
  .footer-contact a {
    font-size: var(--text-xl);
  }

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

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

  .footer-bottom p {
    font-size: var(--text-lg);
  }

  .footer-bottom__subtext {
    font-size: var(--text-base);
  }

  .lizard-mascot-footer {
    width: 40px;
    right: 10px;
  }
}

/* ========================================
   BREADCRUMBS
   Styles moved to internal-critical.css.
   ======================================== */

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