/* =========================================================
   Lake Wylie Commissary Kitchen — Main Stylesheet
   Brand: Navy #1B2E4B | Red #C8202F | Cream #F5F0E8
   Vibe: Vintage Coastal Americana
   ========================================================= */

:root {
  --primary-navy:    #1B2E4B;
  --primary-red:     #C8202F;
  --accent-cream:    #F5F0E8;
  --water-gray:      #8B9BA8;
  --navy-dark:       #0F1A2E;
  --red-dark:        #A01822;
  --text-dark:       #2A2A2A;
  --text-light:      #5A6475;
  --white:           #FFFFFF;
  
  /* Vintage texture overlays */
  --texture-light:   rgba(0,0,0,0.02);
  --texture-medium:  rgba(0,0,0,0.05);
  
  /* Shadows with warm vintage feel */
  --shadow-sm:       0 4px 12px rgba(27,46,75,0.12);
  --shadow-md:       0 8px 24px rgba(27,46,75,0.16);
  --shadow-lg:       0 16px 48px rgba(27,46,75,0.20);
  --shadow-stamp:    0 6px 0 rgba(27,46,75,0.15);
  
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --max-width:       1400px;
  
  /* Typography */
  --font-script:     'Pacifico', cursive;
  --font-head:       'Montserrat', sans-serif;
  --font-body:       'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--accent-cream);
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.01) 2px, rgba(0,0,0,0.01) 4px);
  min-height: 100vh;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1.2rem; }

/* Script accent for special headings */
.script-text {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--primary-red);
  letter-spacing: 0.02em;
}

/* ── Container ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: none;
}
.btn-primary:hover { 
  color: var(--white); 
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 3px solid var(--primary-navy);
  box-shadow: none;
}
.btn-outline:hover { 
  background: var(--primary-navy); 
  color: var(--white); 
}

.btn-navy {
  background: var(--primary-navy);
  color: var(--white);
  box-shadow: var(--shadow-stamp);
}
.btn-navy:hover { 
  color: var(--white); 
  box-shadow: 0 8px 0 rgba(27,46,75,0.15), 0 4px 20px rgba(27,46,75,0.4);
}

/* ── Header & Navigation ──────────────────────────────── */
.site-header {
  background: var(--accent-cream);
  border-bottom: 4px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 116px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo — sits fully inside header with breathing room */
.logo {
  height: 140px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
  margin-top: 8px;
  margin-bottom: -40px;
  margin-right: 2rem;
  position: relative;
  z-index: 10;
}

/* Homepage logo variant — identical */
.logo-homepage {
  height: 140px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
  position: relative;
  margin-top: 8px;
  margin-bottom: -40px;
  margin-right: 2rem;
  z-index: 10;
}

/* Nav — centered in remaining space between logo and CTA */
.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-navy);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-red);
  transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a:hover { color: var(--primary-red); }

/* CTA buttons — identical height, same padding, consistent style */
.header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

/* Phone button — matches btn-primary exactly */
.phone-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-red);
  border: 2px solid var(--primary-red);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  box-shadow: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--white);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Ensure .btn in header matches phone-link height exactly */
.header-cta .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary-navy);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-left: auto;
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-inner { gap: 1.5rem; }
}

/* ── Hero Section ─────────────────────────────────────── */
.hero {
  background: var(--primary-navy);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Hero with static background (other pages) */
.hero-static {
  background-image: 
    linear-gradient(to right, rgba(27,46,75,0.95) 0%, rgba(27,46,75,0.70) 50%, rgba(27,46,75,0.40) 100%),
    url('/images/truck2.png');
  background-size: cover;
  background-position: center;
  padding: 4.2rem 0; /* 30% shorter than homepage hero */
}

/* Homepage hero - lake background */
.hero-home {
  background-image: 
    linear-gradient(to right, rgba(27,46,75,0.95) 0%, rgba(27,46,75,0.70) 50%, rgba(27,46,75,0.40) 100%),
    url('/images/heroback1.png');
  padding: 6rem 0; /* Full height for homepage */
}

/* Page-specific hero backgrounds */
.hero-services {
  background-image: 
    linear-gradient(to right, rgba(27,46,75,0.95) 0%, rgba(27,46,75,0.70) 50%, rgba(27,46,75,0.40) 100%),
    url('/images/truck2.png');
}

.hero-licensing {
  background-image: 
    linear-gradient(to right, rgba(27,46,75,0.95) 0%, rgba(27,46,75,0.70) 50%, rgba(27,46,75,0.40) 100%),
    url('/images/truck4.png');
}

.hero-about {
  background-image: 
    linear-gradient(to right, rgba(27,46,75,0.95) 0%, rgba(27,46,75,0.70) 50%, rgba(27,46,75,0.40) 100%),
    url('/images/truck5.png');
}

.hero-contact {
  background-image: 
    linear-gradient(to right, rgba(27,46,75,0.95) 0%, rgba(27,46,75,0.70) 50%, rgba(27,46,75,0.40) 100%),
    url('/images/truck6.png');
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(200,32,47,0.15);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 2px solid rgba(200,32,47,0.3);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--primary-red);
  display: block;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { padding: 4rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  
  /* Remove left padding on mobile */
  .hero-slideshow .hero-content {
    padding-left: 0;
    margin-left: 0;
  }
  
  .hero-slideshow {
    padding-top: 2rem;
  }
}

/* ── Section Layouts ──────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 1rem;
  display: block;
}

.section-title h2 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Alternating background sections */
.bg-white { background: var(--white); }
.bg-cream { background: var(--accent-cream); }
.bg-light { background: linear-gradient(to bottom, #fafbfc 0%, var(--accent-cream) 100%); }

/* ── Vintage Badge Cards ──────────────────────────────── */
.badge-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--primary-navy);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.badge-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-navy) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.badge-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.badge-card:hover::before {
  opacity: 0.1;
}

.badge-icon {
  width: 70px;
  height: 70px;
  background: var(--water-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  font-size: 2rem;
  color: var(--white);
}

.badge-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.badge-card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* ── Trust/Why Section ────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.trust-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-num {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--primary-red);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.3;
}

.trust-text h4 {
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
}

.trust-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Pricing Cards ────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 4px solid var(--primary-navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary-red);
  border-width: 6px;
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: var(--white);
  padding: 0.4rem 1.5rem;
  border-radius: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.pricing-title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.pricing-amount {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  list-style: none;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  padding: 0.7rem 0;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--primary-navy);
  background-image: 
    linear-gradient(135deg, rgba(27,46,75,0.95) 0%, rgba(200,32,47,0.9) 100%),
    url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle fill="rgba(255,255,255,0.03)" cx="30" cy="30" r="20"/></svg>');
  color: var(--white);
  padding: 5rem 0;
  margin-top: 5rem;
}

.cta-banner-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-banner p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
  border-top: 6px solid var(--primary-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.9;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-family: var(--font-script);
  color: var(--primary-red);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

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

/* ── Utility Classes ──────────────────────────────────── */
.text-center { text-align: center; }
.text-navy { color: var(--primary-navy); }
.text-red { color: var(--primary-red); }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* ── Section Background Images (Storage Rankers Style) ─── */
.section-bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27,46,75,0.92) 0%, rgba(27,46,75,0.88) 100%);
  z-index: 0;
}

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

.section-bg-image h2,
.section-bg-image h3,
.section-bg-image h4,
.section-bg-image p,
.section-bg-image li {
  color: var(--white);
}

/* ── Content/Prose Sections ───────────────────────────── */
.prose-section {
  max-width: 800px;
}

.prose-section h2 {
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.prose-section h2:first-child {
  margin-top: 0;
}

.prose-section h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.prose-section p {
  color: var(--text-dark);
  line-height: 1.9;
}

.prose-section ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose-section li {
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ── Contact Form ─────────────────────────────────────── */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--primary-navy);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(27,46,75,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-red);
}

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

/* ── Responsive Adjustments ───────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 3.5rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .badge-card { padding: 2rem 1.5rem; }
  .contact-form { padding: 2rem 1.5rem; }
}
