/* Color palette */
:root {
  --color-bg: #FAF9F6;
  --color-bg-alt: #F5F0EB;
  --color-primary: #722F37;
  --color-primary-hover: #8B3A42;
  --color-text: #2D2D2D;
  --color-text-light: #5a5a5a;
  --color-accent: #C9A962;
  --color-accent-sage: #A8B5A0;
  --color-border: #e5e0db;

  /* Border radius scale */
  --radius-sm: 4px;    /* buttons, small UI elements */
  --radius-md: 8px;    /* images, cards, inputs */
  --radius-lg: 16px;   /* large cards, featured containers */
  --radius-pill: 50px; /* pills, fully rounded buttons */

  /* Section spacing - desktop default */
  --section-padding-x: 2rem;      /* 32px - side padding */
  --section-padding-y: 4rem;      /* 64px - top/bottom padding */
  --section-padding-y-lg: 5rem;   /* 80px - larger sections */
}

/* Tablet breakpoint */
@media (max-width: 900px) {
  :root {
    --section-padding-x: 1.5rem;    /* 24px */
    --section-padding-y: 3rem;      /* 48px */
    --section-padding-y-lg: 4rem;   /* 64px */
  }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
  :root {
    --section-padding-x: 1rem;      /* 16px - best practice for mobile */
    --section-padding-y: 2.5rem;    /* 40px */
    --section-padding-y-lg: 3rem;   /* 48px */
  }
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Hind Madurai', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Header */
.site-header {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

/* Branding - centered */
.branding {
  text-align: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: #000;
  text-decoration: none;
  display: block;
}

.logo:hover {
  color: #000;
}

.tagline {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
  margin-top: 0.25rem;
}

/* Navigation - left and right */
.nav-left,
.nav-right {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-left {
  left: 2rem;
}

.nav-right {
  right: 2rem;
}

.nav-left a,
.nav-right a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-left a:hover,
.nav-right a:not(.nav-cta):hover {
  color: var(--color-primary);
}

/* Hover underline effect */
.nav-left a:not(.current)::after,
.nav-right a:not(.nav-cta):not(.current)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-left a:not(.current):hover::after,
.nav-right a:not(.nav-cta):not(.current):hover::after {
  transform: scaleX(1);
}

/* Active page indicator */
.nav-left a.current,
.nav-right a.current,
.nav-dropdown-menu a.current {
  color: var(--color-primary);
  position: relative;
}

.nav-left a.current::after,
.nav-right a.current:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* CTA Button */
.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--color-primary-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
  transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--color-primary);
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  margin-top: 0.75rem;
  z-index: 200;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f5f5f5;
  color: var(--color-primary);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  gap: 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-nav a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  text-decoration: none;
}

/* Mobile Accordion */
.mobile-accordion {
  width: 100%;
  text-align: center;
}

.mobile-accordion-toggle {
  background: none;
  border: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
}

.accordion-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.mobile-accordion.open .accordion-arrow {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.mobile-accordion.open .mobile-accordion-content {
  display: flex;
}

.mobile-accordion-content a {
  font-size: 0.8rem;
  color: #666;
}

/* Mobile CTA Button */
.mobile-nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 0.75rem 2rem !important;
  border-radius: var(--radius-pill);
  font-weight: 500;
  margin-top: 0.5rem;
}

.mobile-nav.active {
  display: flex;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition: all 0.3s;
}

/* HOLIDAY CHEER - REMOVE AFTER NEW YEAR 2025 */
/* Based on Pure CSS Christmas Lights by Toby - https://codepen.io/tobyj/pen/QjvEex */

.holiday-bar {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--color-bg);
  z-index: 99;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightrope {
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Footer lights */
.footer-lightrope {
  position: relative;
  height: 50px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightrope li {
  position: relative;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  list-style: none;
  display: inline-block;
  width: 12px;
  height: 22px;
  border-radius: 50%;
  margin: 18px;
  background: #00f7a5;
  box-shadow: 0px 4px 20px 3px #00f7a5;
  animation-name: flash-1;
  animation-duration: 2s;
}

.lightrope li:nth-child(2n+1) {
  background: #00c9ff;
  box-shadow: 0px 4px 20px 3px #00c9ff;
  animation-name: flash-2;
  animation-duration: 0.4s;
}

.lightrope li:nth-child(4n+2) {
  background: #f70094;
  box-shadow: 0px 4px 20px 3px #f70094;
  animation-name: flash-3;
  animation-duration: 1.1s;
}

.lightrope li:nth-child(odd) {
  animation-duration: 1.8s;
}

.lightrope li:nth-child(3n+1) {
  animation-duration: 1.4s;
}

.lightrope li:before {
  content: "";
  position: absolute;
  background: #444;
  width: 8px;
  height: 6px;
  border-radius: 2px;
  top: -5px;
  left: 2px;
}

.lightrope li:after {
  content: "";
  top: -12px;
  left: 5px;
  position: absolute;
  width: 40px;
  height: 16px;
  border-bottom: solid 2px #444;
  border-radius: 50%;
}

.lightrope li:last-child:after {
  content: none;
}

.lightrope li:first-child {
  margin-left: -20px;
}

@keyframes flash-1 {
  0%, 100% { background: #00f7a5; box-shadow: 0px 4px 20px 3px #00f7a5; }
  50% { background: rgba(0,247,165,0.4); box-shadow: 0px 4px 20px 3px rgba(0,247,165,0.2); }
}

@keyframes flash-2 {
  0%, 100% { background: #00c9ff; box-shadow: 0px 4px 20px 3px #00c9ff; }
  50% { background: rgba(0,201,255,0.4); box-shadow: 0px 4px 20px 3px rgba(0,201,255,0.2); }
}

@keyframes flash-3 {
  0%, 100% { background: #f70094; box-shadow: 0px 4px 20px 3px #f70094; }
  50% { background: rgba(247,0,148,0.4); box-shadow: 0px 4px 20px 3px rgba(247,0,148,0.2); }
}

@media (max-width: 768px) {
  .holiday-bar,
  .footer-lightrope {
    height: 40px;
  }
  .lightrope li {
    width: 10px;
    height: 18px;
    margin: 10px;
  }
  .lightrope li:nth-child(2n) {
    display: none;
  }
  .lightrope li:after {
    width: 24px;
  }
}
/* END HOLIDAY CHEER */

/* Main content - offset for fixed header + holiday bar */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: calc(80px + 50px + 2rem); /* header + holiday bar + spacing */
  min-height: calc(100vh - 120px);
}

/* Footer */
.site-footer {
  background: #fff;
  color: #333;
}

/* Footer CTA Banner */
.footer-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-cta h3 {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.footer-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.footer-cta-button {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.footer-cta-button:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer Main */
.footer-main {
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Footer Brand Section */
.footer-brand {
  flex: 0 0 280px;
}

.footer-logo a {
  text-decoration: none;
}

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

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 220px;
}

/* Footer Columns */
.footer-columns {
  display: flex;
  flex: 1;
  gap: 2.5rem;
  justify-content: space-between;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.footer-col a,
.footer-col p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-col .contact-label {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--color-text);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-light);
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

/* Footer bottom */
.footer-bottom {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Mobile styles */
@media (max-width: 900px) {
  .site-header {
    height: auto;
  }

  .header-content {
    height: 80px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-main {
    padding-top: calc(80px + 40px + 2rem); /* header + holiday bar (mobile) + spacing */
  }

  /* Footer mobile */
  .footer-cta {
    padding: 2.5rem 1.5rem;
  }

  .footer-cta h3 {
    font-size: 1.4rem;
  }

  .footer-cta p {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .footer-brand {
    flex: none;
    width: 100%;
  }

  .footer-columns {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
  }

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

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

  .footer-bottom {
    padding: 1rem 1.5rem;
  }
}

/* ===========================================
   TRUNCATABLE TEXT COMPONENT
   For SEO content that can be expanded (mobile only)
   =========================================== */

.truncatable-text {
  position: relative;
}

.truncatable-text .text-content {
  position: relative;
}

/* Desktop/Tablet: Full text visible, button hidden */
.read-more-btn {
  display: none;
}

/* Mobile only: Enable truncation */
@media (max-width: 768px) {
  .truncatable-text .text-content {
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* Collapsed state - show full first paragraph with fade */
  .truncatable-text.collapsed .text-content {
    max-height: 10em; /* ~5-6 lines - enough for one full paragraph */
  }

  /* Fade overlay when collapsed */
  .truncatable-text.collapsed .text-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4em;
    background: linear-gradient(to bottom, transparent, var(--truncate-bg, #fff));
    pointer-events: none;
  }

  /* For sections with #f9f9f9 background */
  .truncatable-text.collapsed.bg-alt .text-content::after {
    background: linear-gradient(to bottom, transparent, #f9f9f9);
  }

  /* Expanded state */
  .truncatable-text.expanded .text-content {
    max-height: 2000px; /* Large enough for any content */
  }

  .truncatable-text.expanded .text-content::after {
    display: none;
  }

  /* Show read more button on mobile */
  .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary, #722F37);
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .read-more-btn:hover {
    opacity: 0.8;
  }

  .read-more-btn::after {
    content: "↓";
    font-size: 0.85em;
    transition: transform 0.3s ease;
  }

  .truncatable-text.expanded .read-more-btn::after {
    transform: rotate(180deg);
  }

  /* Hide button when JS is disabled (progressive enhancement) */
  .no-js .truncatable-text .text-content {
    max-height: none !important;
  }

  .no-js .truncatable-text .text-content::after {
    display: none !important;
  }

  .no-js .read-more-btn {
    display: none !important;
  }
}
