/* ===========================
   CALABRIAN CAFE — stylesheet
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #f2e8d0;   /* logo interior cream */
  --espresso: #2a4f38;   /* logo dark forest green */
  --rust:     #3a7a55;   /* medium green accent */
  --gold:     #c9993a;   /* logo gold ring */
  --tan:      #ddd0b0;   /* warm tan */
  --mid:      #4d7a62;   /* mid forest green */
  --light-bg: #f8f3e8;   /* warm off-white */
  --text:     #2d1a08;   /* logo dark brown (body text) */
  --muted:    #5a7a68;   /* muted green-grey */
  --white:    #ffffff;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(42,79,56,.12);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}

.center { text-align: center; }

.section-sub {
  max-width: 560px;
  margin: 16px auto 56px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-light {
  background: var(--white);
  color: var(--espresso);
}
.btn-light:hover { background: var(--tan); }

.btn-dark {
  background: var(--espresso);
  color: var(--white);
}
.btn-dark:hover { background: var(--rust); }

.btn-outline {
  border-color: var(--rust);
  color: var(--rust);
  padding: 10px 22px;
  font-size: .85rem;
}
.btn-outline:hover {
  background: var(--rust);
  color: var(--white);
}

.btn-outline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--espresso);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?w=1800&q=80')
    center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(42,79,56,.72) 0%, rgba(42,79,56,.50) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 24px;
  max-width: 720px;
}

.hero-logo {
  width: clamp(220px, 40vw, 380px);
  height: auto;
  display: block;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.35));
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- ABOUT ---- */
.about { background: var(--light-bg); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text .label { margin-bottom: 8px; }

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--espresso);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text .btn { margin-top: 12px; }

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow);
}

/* ---- GALLERY ---- */
.gallery { background: var(--white); }

.gallery h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--espresso);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-bg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(42,79,56,.18);
}

.card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img-wrap img {
  object-fit: contain;
}

.card-img-wrap img {
  transition: transform .4s ease;
}

.gallery-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 {
  font-size: 1.15rem;
  color: var(--espresso);
  margin-bottom: 8px;
}

.card-body p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- MENUS ---- */
.menus {
  background: var(--espresso);
  color: var(--white);
}

.menus .label { color: var(--gold); }

.menus h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
}

.menus .section-sub { color: rgba(255,255,255,.65); }

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.menu-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.menu-card:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.menu-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.menu-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.menu-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
  line-height: 1.6;
}

.menu-card .btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}

.menu-card .btn-outline:hover {
  background: var(--gold);
  color: var(--espresso);
}

/* ---- CONTACT ---- */
.contact { background: var(--cream); }

.contact-inner { align-items: start; gap: 80px; }

.contact-text .label { margin-bottom: 8px; }

.contact-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--espresso);
  margin-bottom: 32px;
}

.contact-details { display: flex; flex-direction: column; gap: 24px; }

.contact-item { display: flex; flex-direction: column; gap: 4px; }

.contact-item strong {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rust);
}

.contact-item span,
.contact-item a {
  font-size: 1rem;
  color: var(--text);
}

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

.contact-map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--espresso);
  color: rgba(255,255,255,.6);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.footer-tagline {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy { font-size: .8rem; margin-top: 8px; }

/* ---- HALAL BADGE ---- */
.card-badges { margin-bottom: 10px; }

.badge-halal {
  display: inline-block;
  background: #1a7a3a;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.halal-note {
  color: #1a7a3a;
  font-size: .85rem;
  display: block;
  margin-top: 6px;
}

/* ---- ORDER ONLINE ---- */
.order { background: var(--light-bg); }

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.order-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: var(--shadow);
}

.order-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  filter: brightness(1.08);
}

.deliveroo-card { background: #fff; border-top: 6px solid #00CCBC; }
.justeeat-card  { background: #fff; border-top: 6px solid #FF8000; }

.order-logo img {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

.order-cta {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.deliveroo-card:hover .order-cta { color: #00CCBC; }
.justeeat-card:hover  .order-cta { color: #FF8000; }

/* ---- PHOTO GALLERY ---- */
.photo-gallery { background: var(--cream); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.photo-tall { grid-row: span 2; }
.photo-wide { grid-column: span 2; }

/* ---- SOCIAL LINKS ---- */
.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,153,58,.1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img { height: 300px; }

  .contact-inner { gap: 40px; }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .photo-wide { grid-column: span 2; }
  .photo-tall { grid-row: span 1; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--espresso);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open { display: flex; }

  .hamburger { display: block; }

  .gallery-grid { grid-template-columns: 1fr; }

  .order-grid { grid-template-columns: 1fr; max-width: 380px; }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }
}

@media (max-width: 440px) {
  .menu-card { max-width: none; }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .photo-wide { grid-column: span 1; }
}
