/**
 * ============================================================================
 * STARTER THEME STYLESHEET
 * ============================================================================
 * This CSS file provides a minimal, documented starting point for theme
 * developers. Each section corresponds to a component in the PHP template.
 *
 * CSS VARIABLES (set dynamically from site palette):
 *   --c1: Primary color (from site settings)
 *   --c2: Secondary color (from site settings)
 *
 * NAMING CONVENTION:
 * This file should be named: theme-[themename].css
 * And placed in: public/css/
 * ============================================================================
 */

/* SouthernCharm theme — built from theme-starter.css
   Elegant Southeast vibe: warm neutrals, soft glass, rounded cards, gentle motion. */

:root {
  --c1: var(--c1);
  --c2: var(--c2);
  --bg: #fffdf9;
  --bg2: #f7f4ee;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(31, 41, 55, .12);
  --shadow: 0 18px 40px color-mix(in srgb, var(--c1) 18%, transparent);
  --shadow-soft: 0 10px 20px color-mix(in srgb, var(--c1) 12%, transparent);
  --radius: 20px;
  --radius-lg: 32px;
  --max: 960px;
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 15% 0%, rgba(217, 119, 6, .10), transparent 55%),
    radial-gradient(900px 500px at 90% 15%, rgba(59, 130, 246, .08), transparent 55%),
    linear-gradient(135deg, var(--bg) 0%, #fff 55%, #f2f6fb 100%);
  line-height: 1.5;
}

a {
  color: inherit
}

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

.muted {
  color: var(--muted)
}

.lede {
  margin: .25rem 0 0;
  color: var(--muted);
  max-width: 48ch
}

.layout-container,
.section,
.site-footer {
  width: 100%;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 18px;
}

.section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: var(--c2);
}

.btn-primary,
.btn-secondary,
.email-btn,
.directions-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--c1);
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 14px 28px rgba(217, 119, 6, .18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.02)
}

.btn-secondary {
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  padding: 10px 18px;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 6, .28)
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 14px 0;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 20px rgba(17, 24, 39, .10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .12);
}

.brand-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: none;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--c2);
  font-size: .9rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--c1)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}

.nav-toggle-lines {
  display: block;
  width: 18px;
  height: 12px;
  margin: 0 auto;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  top: 2px;
}

.nav-toggle-lines::after {
  top: 8px
}

.nav-drawer {
  max-width: var(--max);
  margin: 10px auto 0;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .60);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer a {
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 850;
  color: var(--text);
  border: 1px solid transparent;
}

.nav-drawer a:hover {
  border-color: rgba(217, 119, 6, .25);
  background: rgba(217, 119, 6, .06)
}

.nav-drawer .drawer-cta {
  background: rgba(31, 41, 55, .92);
  color: #fff
}

.nav-drawer .drawer-cta:hover {
  background: var(--c1);
  border-color: transparent
}

.hero {
  padding-top: 140px;
  padding-bottom: 76px;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: -120px -40px auto -40px;
  height: 520px;
  background:
    radial-gradient(500px 300px at 15% 30%, rgba(217, 119, 6, .20), transparent 60%),
    radial-gradient(520px 360px at 85% 15%, rgba(59, 130, 246, .14), transparent 65%),
    linear-gradient(135deg, rgba(253, 251, 247, .85), rgba(255, 255, 255, .88));
  border-radius: 60px;
  filter: blur(0px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c1);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, .12);
}

.badge-text {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 950;
}

.hero-accent {
  background: linear-gradient(90deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: var(--muted);
  font-weight: 650;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px
}

.hero-body {
  width: 100%;
  max-width: 72ch;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.hero-body :first-child {
  margin-top: 0
}

.hero-body :last-child {
  margin-bottom: 0
}

.gallery {
  padding-top: 40px;
  padding-bottom: 80px;
}

.gallery-wrapper {
  width: 100%;
  overflow: hidden;
  margin: 18px 0;
}

.gallery-head {
  max-width: var(--max);
  margin: 0 auto 18px;
}

.gallery-row {
  display: flex;
  gap: 16px;
  overflow: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-row::-webkit-scrollbar {
  display: none
}

.gallery-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(72vw, 420px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, .55);
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06)
}

.info {
  padding-top: 76px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.info-card,
.map-card,
.hours-card,
.social-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.info-card {
  padding: 22px
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px
}

.contact-item {
  margin: 0
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 850
}

.contact-item a:hover {
  color: var(--c1)
}

.email-btn {
  background: rgba(31, 41, 55, .90);
  color: #fff;
  padding: 10px 14px;
  border: none;
}

.email-btn:hover {
  background: var(--c1)
}

.map-card {
  position: relative;
  min-height: 320px
}

.map {
  height: 100%;
  min-height: 320px
}

.map-placeholder {
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-eyebrow {
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c1);
}

.map-title {
  font-weight: 900
}

.map-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c1);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 119, 6, .20);
}

.hours-card {
  padding: 22px
}

.hours-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px
}

.hours-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.hours-body li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(31, 41, 55, .03);
  border: 1px solid rgba(31, 41, 55, .06);
}

.hours-body strong {
  font-weight: 950
}

.hours-body span {
  color: var(--muted);
  font-weight: 750
}

.social-section {
  padding: 66px 18px
}

.social-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
}

.social-title {
  margin: 0 0 8px
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, .08);
  background: rgba(255, 255, 255, .75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}

.social-pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--c1) 30%, transparent);
  background: color-mix(in srgb, var(--c1) 8%, transparent);
}

.social-ico {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.social-ico svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
  transition: fill .15s ease;
}

.social-pill:hover .social-ico svg {
  fill: var(--c1);
}

.social-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  transition: color .15s ease;
}

.social-pill:hover .social-name {
  color: var(--c1);
}

.site-footer {
  padding: 44px 18px 70px;
  border-top: 1px solid rgba(31, 41, 55, .08);
  background: rgba(255, 255, 255, .55);
}

.site-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 650;
}

.site-footer a {
  color: inherit
}

.site-footer a:hover {
  color: var(--c1)
}

#map .leaflet-control-attribution {
  display: none
}

/* Responsive */
@media (min-width: 860px) {
  .site-nav {
    display: flex
  }

  .nav-toggle {
    display: none
  }

  .nav-drawer {
    display: none !important
  }

  .info-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 22px
  }

  .social-pills {
    grid-template-columns: repeat(2, 1fr)
  }

  .section {
    padding-left: 0;
    padding-right: 0
  }
}