/* Cosy Cafe Harleston — shared stylesheet */

:root {
  --sage: #94ab99;
  --sage-dark: #6e8473;
  --pink: #f2c4ce;
  --pink-dark: #e59fb1;
  --cream: #ffffff;
  --charcoal: #2c352d;
  --teal: #eef2ef;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 53, 45, 0.08);
  --font-script: "Playfair Display", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-script);
  color: var(--charcoal);
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }

p { margin: 0 0 1rem; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--sage); color: var(--charcoal); }
.btn-primary:hover { background: var(--sage-dark); color: var(--white); }

.btn-accent { background: #2a2a2a; color: var(--white); }
.btn-accent:hover { background: var(--sage-dark); color: var(--white); }

.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(44,53,45,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; line-height: 1.1; }
.logo-text .logo-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0;
}
.logo-text span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  color: var(--sage-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover:not(.btn), .nav-links a.active:not(.btn) { color: var(--sage-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--charcoal);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 20px;
    display: none;
    border-bottom: 1px solid rgba(44,53,45,0.08);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero Gallery ---------- */
.hero-slider {
  position: relative;
  height: 46vh;
  min-height: 340px;
  max-height: 460px;
  max-width: 1160px;
  margin: 1.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 1200px) {
  .hero-slider { margin-left: 20px; margin-right: 20px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,53,45,0.15), rgba(44,53,45,0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 { color: var(--white); font-size: 2.6rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { color: var(--white); font-size: 1.05rem; max-width: 640px; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.5); cursor: pointer;
}

.hero-dots button.active { background: var(--white); }

/* ---------- Sections ---------- */
section { padding: 2.75rem 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 1.6rem; }
.section-head p { color: #555; }

/* ---------- Category / Card Grid ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-5 {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 980px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-4px); }
.card img { height: 180px; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: #555; font-size: 0.95rem; }

/* ---------- Badges ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.badge {
  background: var(--teal);
  color: var(--charcoal);
  padding: 1.6rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(44,53,45,0.08);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}
.badge:hover { transform: translateY(-4px); }
.badge-icon { font-size: 1.8rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.stars { color: #e8a83c; letter-spacing: 2px; margin-bottom: 0.5rem; }
.review-name { font-weight: 700; margin-top: 0.8rem; }

/* ---------- Menu ---------- */
.menu-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.menu-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--sage);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}

.menu-tab-btn.active, .menu-tab-btn:hover { background: var(--sage); }

.menu-section { display: none; }
.menu-section.active { display: block; }

.menu-group { margin-bottom: 2.5rem; }
.menu-group h3 { border-bottom: 2px solid var(--sage-dark); display: inline-block; padding-bottom: 0.2rem; }

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(44,53,45,0.15);
}

.menu-item-name { font-weight: 700; }
.menu-item-desc { color: #555; font-size: 0.92rem; }
.menu-item-price { font-weight: 700; white-space: nowrap; color: var(--sage-dark); }

table.cake-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table.cake-table th, table.cake-table td {
  border: 1px solid rgba(44,53,45,0.1);
  padding: 0.7rem 1rem;
  text-align: left;
}
table.cake-table th { background: var(--sage); }
table.cake-table tr:nth-child(even) { background: rgba(148,171,153,0.15); }

.note-box {
  background: var(--pink);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
}

.note-box ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-grid img { height: 220px; width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: var(--white); padding: 0.6rem 0.8rem; font-size: 0.85rem;
}
.gallery-item.hidden { display: none; }

/* ---------- Events ---------- */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  margin-bottom: 1.6rem;
}
.event-card img { height: 100%; object-fit: cover; }
.event-card-body { padding: 1.5rem; }
.event-date { color: var(--pink-dark); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card img { height: 200px; }
}

/* ---------- Forms ---------- */
.form-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.form-tab-btn {
  padding: 0.7rem 1.5rem; border-radius: 999px; border: 2px solid var(--sage);
  background: var(--white); cursor: pointer; font-weight: 600; font-family: var(--font-body);
}
.form-tab-btn.active { background: var(--sage); }
.booking-form { display: none; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; max-width: 700px; margin: 0 auto; }
.booking-form.active { display: block; }

.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid rgba(44,53,45,0.2);
  font-family: var(--font-body); font-size: 1rem; background: var(--cream);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-msg { display: none; padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; }
.form-msg.success { display: block; background: var(--sage); }
.form-msg.error { display: block; background: #f4c7c3; color: #7a1f16; }
.form-msg:not(.success):not(.error):not(:empty) { display: block; background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: var(--pink); font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--pink); }
.social-icons { display: flex; gap: 1rem; margin-top: 0.6rem; }
.footer-bottom { text-align: center; margin-top: 2.5rem; font-size: 0.85rem; color: rgba(251,246,239,0.6); }
.footer-bottom a { color: rgba(251,246,239,0.8); }

/* ---------- Sticky book now ---------- */
.sticky-book {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); color: #ffffff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
