/*
Theme Name: Aromaa Food Truck
Theme URI: https://example.com/aromaa-foodtruck
Author: Your Name
Author URI: https://example.com
Description: A bold, warm WordPress theme for a street-food / food-truck business. Inspired by a wood-fired Sri Lankan food-truck layout: full-screen hero, jewel-tone menu cards, daily specials, catering, gallery and a rich footer with opening hours. Placeholder content is ready to rebrand from the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aromaa
Tags: restaurant, food, one-column, custom-menu, custom-logo, featured-images, full-width-template
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --cream:        #fffcf8;
  --cream-2:      #f7f1e8;
  --ink:          #1c1917;
  --ink-soft:     #57534e;
  --muted:        #a8a29e;
  --line:         rgba(28, 25, 23, 0.10);
  --accent:       #e23b2e;   /* warm chili red */
  --accent-dark:  #b62a20;
  --gold:         #c79a3e;
  --white:        #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -18px rgba(28, 25, 23, 0.45);
  --shadow-soft: 0 10px 30px -16px rgba(28, 25, 23, 0.30);
  --transition: 0.25s ease;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand__tag {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.hours-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(28,25,23,0.05);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.hours-pill .dot { color: #2ecc71; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: var(--transition); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,14,0.55) 0%, rgba(20,16,14,0.35) 40%, rgba(20,16,14,0.75) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 0 24px; }
.hero__content .eyebrow { color: var(--gold); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin-bottom: 0.3em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.92);
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.8);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ==========================================================================
   Menu category cards
   ========================================================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.menu-card {
  position: relative;
  min-height: 190px;
  border-radius: var(--radius);
  padding: 26px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.menu-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(0,0,0,0.25));
  pointer-events: none;
}
.menu-card__count {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.18);
  padding: 4px 10px; border-radius: 999px;
  z-index: 2;
}
.menu-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.25em; position: relative; z-index: 2; }
.menu-card p { color: rgba(255,255,255,0.82); font-size: 0.88rem; margin: 0 0 0.8em; position: relative; z-index: 2; }
.menu-card__link { color: var(--white); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; position: relative; z-index: 2; }
.menu-card__link:hover { color: var(--white); }

/* Jewel-tone gradients (cycled by :nth-child) */
.menu-card:nth-child(8n+1) { background: linear-gradient(135deg, #5b1216, #2a0608); }
.menu-card:nth-child(8n+2) { background: linear-gradient(135deg, #14213d, #050a17); }
.menu-card:nth-child(8n+3) { background: linear-gradient(135deg, #5a3210, #271404); }
.menu-card:nth-child(8n+4) { background: linear-gradient(135deg, #4a1d4f, #1a0a1c); }
.menu-card:nth-child(8n+5) { background: linear-gradient(135deg, #6b1f1f, #2a0808); }
.menu-card:nth-child(8n+6) { background: linear-gradient(135deg, #103b2d, #04140d); }
.menu-card:nth-child(8n+7) { background: linear-gradient(135deg, #143b3f, #04161a); }
.menu-card:nth-child(8n+8) { background: linear-gradient(135deg, #3a3a12, #141404); }

/* ==========================================================================
   Specials
   ========================================================================== */
.specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.special-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.special-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.special-card__img { aspect-ratio: 4/3; background: var(--cream-2) center/cover; }
.special-card__body { padding: 18px 20px 22px; }
.special-card h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.special-card__desc { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.8em; }
.special-card__price { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 1.1rem; }

/* ==========================================================================
   About / split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split__body h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.split__body p { color: var(--ink-soft); }
.split--reverse .split__media { order: 2; }

.stats { display: flex; gap: 40px; margin-top: 28px; }
.stat__num { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* ==========================================================================
   Catering features
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature {
  text-align: center;
  padding: 8px;
}
.feature__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(226,59,46,0.12);
  color: var(--accent);
  font-size: 1.5rem;
}
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-2);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 1.8rem; }
.cta-band__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__tag { color: var(--gold); }
.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-about p { font-size: 0.92rem; margin: 14px 0 18px; max-width: 320px; }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hours-list { font-size: 0.88rem; }
.hours-list .row { display: flex; justify-content: space-between; padding: 4px 0; }
.hours-list .row span:first-child { color: rgba(255,255,255,0.6); }
.hours-note { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 12px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom .accent { color: var(--gold); }

/* ==========================================================================
   Generic WP content (page.php / posts)
   ========================================================================== */
.page-content { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.page-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6em; }
.page-content img { border-radius: var(--radius); margin: 1.5em 0; }

/* WP alignment + caption helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hours-pill { display: none; }

  .site-nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
  }
  .site-nav-open .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav-open .main-nav li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a:first-child { grid-column: span 2; grid-row: span 1; }
  .stats { gap: 24px; }
}
