/* ═══════════════════════════════════════════
   CANDLES & PALMS CAFE — styles.css
   Theme: Warm ivory, soft sage, aged gold
   Fonts: Cormorant Garamond (display) + Jost (body)
═══════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --cream:      #FAF8F4;
  --ivory:      #F3EFE7;
  --warm-white: #FDFCF9;
  --gold:       #B89A68;
  --gold-light: #D4B98A;
  --sage:       #8A9E8C;
  --charcoal:   #2C2B28;
  --brown:      #4A3F2F;
  --mid:        #7A7060;
  --border:     rgba(184,154,104,0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --nav-h: 72px;
  --max-w: 1160px;
  --radius: 4px;
  --shadow: 0 8px 40px rgba(44,43,40,0.08);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
p  { color: var(--mid); font-size: 1rem; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section   { padding: 6rem 0; }
.center    { text-align: center; }
.hidden    { display: none !important; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-title { margin-top: 0.25rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-dark {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.btn-dark:hover {
  background: var(--brown);
  border-color: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,43,40,0.18);
}
.btn-light {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}
.btn-light:hover {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--cream);
}
.btn-full { width: 100%; text-align: center; }

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ivory);
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
  border-radius: inherit;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(253,252,249,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  transition: color var(--transition);
  white-space: nowrap;
}
#navbar.scrolled .nav-logo { color: var(--charcoal); }
.nav-logo span { color: var(--gold-light); }
#navbar.scrolled .nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253,252,249,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--cream); }

#navbar.scrolled .nav-link {
  color: var(--mid);
}
#navbar.scrolled .nav-link:hover { color: var(--charcoal); }
#navbar.scrolled .nav-link::after { background: var(--gold); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-cta:hover {
  background: rgba(255,255,255,0.12);
}
#navbar.scrolled .nav-cta {
  border-color: var(--border);
  color: var(--charcoal);
}
#navbar.scrolled .nav-cta:hover {
  background: var(--ivory);
}
#navbar.scrolled .nav-cta::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--transition);
  border-radius: 2px;
}
#navbar.scrolled .nav-toggle span { background: var(--charcoal); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3a3226 0%, #2a2218 50%, #1e1a14 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem 2rem;
}
/* To use your own background photo, replace the above with:
   background: url('your-hero-image.jpg') center/cover no-repeat; */
.hero-bg-placeholder > span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,16,10,0.35) 0%,
    rgba(20,16,10,0.55) 60%,
    rgba(20,16,10,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 1.5rem;
  max-width: 780px;
  animation: heroFade 1.2s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  animation: heroFade 1.2s 0.1s ease both;
}
.hero-title {
  color: var(--cream);
  margin-bottom: 1.25rem;
  animation: heroFade 1.2s 0.2s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: rgba(253,252,249,0.7);
  margin-bottom: 2.5rem;
  animation: heroFade 1.2s 0.3s ease both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFade 1.2s 0.4s ease both;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253,252,249,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: heroFade 1.2s 0.6s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(253,252,249,0.4));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about { background: var(--warm-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-images {
  position: relative;
  height: 560px;
}
.img-card {
  position: absolute;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-card--large {
  top: 0; left: 0;
  width: 78%;
  height: 82%;
}
.img-card--small {
  bottom: 0; right: 0;
  width: 52%;
  height: 48%;
  border: 6px solid var(--warm-white);
}
.about-text p {
  margin-bottom: 1.25rem;
}
.about-text p strong { color: var(--charcoal); font-weight: 500; }
.about-text .section-title { margin: 0.25rem 0 1.5rem; }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem 0 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--charcoal);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ══════════════════════════════
   PRODUCTS
══════════════════════════════ */
.products { background: var(--ivory); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--warm-white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(44,43,40,0.12);
}
.product-card--featured {
  border-top: 3px solid var(--gold);
}
.product-img-wrap {
  height: 220px;
  overflow: hidden;
}
.product-body {
  padding: 1.5rem;
}
.product-body h3 {
  margin: 0.5rem 0 0.65rem;
  font-size: 1.3rem;
}
.product-body p { font-size: 0.88rem; }
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--cream);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

/* ══════════════════════════════
   EVENTS
══════════════════════════════ */
.events { background: var(--warm-white); }
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.event-card {
  display: grid;
  grid-template-columns: 90px 1fr 240px;
  gap: 2rem;
  align-items: center;
  background: var(--ivory);
  border-radius: 3px;
  padding: 2rem;
  border-left: 3px solid var(--gold);
  transition: box-shadow var(--transition);
}
.event-card:hover {
  box-shadow: var(--shadow);
}
.event-date {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}
.event-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-day {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--charcoal);
  line-height: 1;
}
.event-info h3 { margin-bottom: 0.35rem; }
.event-meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.event-info p { font-size: 0.9rem; margin-bottom: 1rem; }
.event-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--transition);
}
.event-link:hover { color: var(--gold); }
.event-img {
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ══════════════════════════════
   TESTIMONIALS
══════════════════════════════ */
.testimonials {
  background: var(--charcoal);
  padding: 5rem 0;
}
.testimonials .section-label { color: var(--gold-light); }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  padding: 2rem;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(253,252,249,0.88);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.testimonial-card cite {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-style: normal;
}
.testimonial-dots { display: none; } /* visible on mobile */

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact { background: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  margin-bottom: 4rem;
}
.contact-info .section-title { margin: 0.25rem 0 2rem; }
.info-block { margin-bottom: 2rem; }
.info-block h4 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.info-block p, .info-block a {
  font-size: 0.95rem;
  color: var(--mid);
}
.info-block a:hover { color: var(--charcoal); }
.hours-list { display: flex; flex-direction: column; gap: 0.35rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--mid);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

/* Form */
.contact-form-wrap .section-title { margin: 0.25rem 0 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122,112,96,0.45);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,154,104,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B89A68' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-success {
  background: rgba(138,158,140,0.15);
  border: 1px solid var(--sage);
  color: var(--sage);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Map */
.map-wrap {
  width: 100%;
  height: 420px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.6) brightness(1.05);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--charcoal);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
}
.footer-logo span { color: var(--gold-light); }
.footer-address {
  font-size: 0.82rem;
  color: rgba(253,252,249,0.45);
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253,252,249,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(253,252,249,0.25);
  margin-top: 0.5rem;
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { grid-template-columns: repeat(2, 1fr); }
  .event-card { grid-template-columns: 80px 1fr; }
  .event-img { display: none; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 360px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nav-toggle { display: flex; z-index: 10; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2.5rem;
    gap: 2rem;
    box-shadow: -4px 0 30px rgba(44,43,40,0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link, .nav-link:hover, #navbar .nav-link {
    color: var(--charcoal) !important;
    font-size: 0.8rem;
  }
  .nav-cta {
    border-color: var(--border) !important;
    color: var(--charcoal) !important;
  }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 1rem; text-align: left; display: flex; align-items: baseline; gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-btns { flex-direction: column; align-items: center; }
}
