/* ═══════════════════════════════════════════════
   KWALITY ICE CREAM — Brand Design System
   Inspired by the original brand: warm cream,
   rich browns, deep reds, handcrafted feel.
   ═══════════════════════════════════════════════ */

:root {
  /* Brand Palette — extracted from original site */
  --cream:         #fdfcf1;
  --cream-dark:    #f5f0e0;
  --brand-brown:   #5b544f;
  --brand-dark:    #403b37;
  --brand-red:     #9f191f;
  --brand-coral:   #d6745d;
  --brand-rust:    #ac2505;
  --text:          #3F3F3F;
  --text-light:    #7a726a;
  --white:         #ffffff;
  --border:        #e5e0d5;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow:        0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.1);
  --radius:        16px;
  --radius-sm:     10px;
  --max-width:     1120px;
  --font:          -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display:  'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--brand-red); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* ═══════════════════════════════════════════════
   TOP ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════ */

.top-bar {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 8px 20px;
  text-align: center;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar a { color: #f5e0c0; font-weight: 500; }
.top-bar .sep { color: rgba(255,255,255,0.2); margin: 0 6px; }

/* ═══════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════ */

header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img { height: 42px; width: auto; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
}

/* Navigation */
nav { display: flex; align-items: center; gap: 2px; }

nav a {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--brand-brown);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover { background: var(--cream-dark); color: var(--brand-dark); }
nav a.active { background: var(--cream-dark); color: var(--brand-red); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-dark);
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.hero {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

.btn:hover {
  background: var(--brand-brown);
  color: var(--white);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(64,59,55,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
}

.btn-outline:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.btn-coral {
  background: var(--brand-coral);
  color: var(--white);
}

.btn-coral:hover {
  background: var(--brand-rust);
  box-shadow: 0 4px 16px rgba(214,116,93,0.3);
}

.btn-red {
  background: var(--brand-red);
  color: var(--white);
}
.btn-red:hover { background: #7a1217; }

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */

section { padding: 72px 24px; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.section-alt { background: var(--cream-dark); }

/* ═══════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════ */

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card a { color: inherit; }
.product-card a:hover { opacity: 1; }

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.product-info .price {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-info .desc {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════════
   LOCATIONS
   ═══════════════════════════════════════════════ */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.location-card p {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.92rem;
}

.location-card a { color: var(--brand-red); font-weight: 500; }

/* ═══════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════ */

.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--brand-brown); font-weight: 500; }

.breadcrumbs .sep { color: var(--border); }

/* ═══════════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════════ */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 24px 48px;
}

.product-detail img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.product-detail .price-lg {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 16px;
}

.product-detail .description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}

.product-detail .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════
   PAGE CONTENT (About, Menu, Policies, etc.)
   ═══════════════════════════════════════════════ */

.page-content {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 24px 48px;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-brown);
  margin: 32px 0 12px;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
}

.page-content ul, .page-content ol {
  margin: 12px 0 20px 24px;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */

.about-story {
  max-width: 720px;
  margin: 0 auto;
}

.about-story p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════ */

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card h3 a { color: inherit; }

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.blog-card .read-more {
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Blog Article */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.blog-article h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-article img.featured {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  max-height: 400px;
  object-fit: cover;
}

.blog-article .content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.blog-article .content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 36px 0 12px;
}

.blog-article .content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-brown);
  margin: 24px 0 8px;
}

.blog-article .content p { margin-bottom: 16px; }

.blog-article .content ul, .blog-article .content ol {
  margin: 12px 0 20px 24px;
}

.blog-article .content li { margin-bottom: 8px; }

.blog-article .content a { font-weight: 500; }

.blog-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-cta p { margin-bottom: 8px; }
.blog-cta .btn { margin-top: 12px; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

footer h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4c5b0;
  margin-bottom: 16px;
}

footer p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

footer a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}

footer a:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom .links { display: flex; gap: 16px; }
.footer-bottom .links a {
  display: inline;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  padding: 0;
}
.footer-bottom .links a:hover { color: rgba(255,255,255,0.8); }

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.3); }

.newsletter-form button {
  padding: 10px 18px;
  background: var(--brand-coral);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--brand-rust); }

/* ═══════════════════════════════════════════════
   MENU LIST
   ═══════════════════════════════════════════════ */

.menu-section {
  margin-bottom: 32px;
}

.menu-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-dark);
  border-bottom: 2px solid var(--brand-coral);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.menu-item:last-child { border-bottom: none; }

.menu-item-name {
  font-weight: 500;
  color: var(--brand-dark);
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.menu-item-price {
  font-weight: 600;
  color: var(--brand-red);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════ */

.search-box {
  max-width: 500px;
  margin: 24px auto;
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus { border-color: var(--brand-brown); }

/* ═══════════════════════════════════════════════
   404
   ═══════════════════════════════════════════════ */

.page-404 {
  text-align: center;
  padding: 100px 24px;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.page-404 h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════
   DELIVERY PAGE
   ═══════════════════════════════════════════════ */

.delivery-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════
   GIFT CARDS
   ═══════════════════════════════════════════════ */

.gift-banner {
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 32px;
  text-align: center;
}

.gift-banner p {
  font-size: 1.05rem;
  color: var(--brand-brown);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0;
  }

  nav.open { display: flex; }

  nav a {
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
  }

  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  section { padding: 48px 16px; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 32px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card img { height: 160px; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 0.9rem; }
  .product-info .price { font-size: 0.95rem; }
  .product-info .desc { font-size: 0.8rem; }

  .product-detail { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 32px; }
  .product-detail h1 { font-size: 1.6rem; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-article h1 { font-size: 1.6rem; }

  .page-content h1 { font-size: 1.6rem; }
  .locations-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 140px; }

  .about-story p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card img { height: 130px; }
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 0.82rem; }
  .header-inner { padding: 0 16px; }
  .logo img { height: 34px; }
  .logo-text { font-size: 1rem; }
  .top-bar { font-size: 0.72rem; padding: 6px 12px; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Optional: if user prefers dark mode, maintain warm tones */
  body { background: var(--cream); }
}
