/*
Theme Name: Toasty Indian
Description: Custom theme for the Toasty Indian media brand.
Version: 0.2.0
*/

:root {
  --cream: #FDF6EC;
  --cream-deep: #F6EAD3;
  --chili: #C23B22;
  --chili-deep: #A02E1A;
  --saffron: #EFA93A;
  --saffron-soft: #FBE7C0;
  --ink: #2E2A24;
  --muted: #6E6257;
  --card: #FFFFFF;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--chili); }
a:hover { color: var(--chili-deep); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
@media (min-width: 1500px) {
  .wrap { max-width: 1400px; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 246, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--chili);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--chili); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--ink); line-height: 1.1;
}
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--chili); }

.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 999px;
}
.main-nav a:hover { background: var(--saffron-soft); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 16px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 48px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.06;
  color: var(--ink); margin-bottom: 20px; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--chili); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: none;
}
.btn-primary { background: var(--chili); color: #fff; }
.btn-primary:hover { background: var(--chili-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* recipe cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mini-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(194,59,34,0.14); }
.mini-card .mc-img { aspect-ratio: 4 / 3; background: var(--cream-deep); overflow: hidden; }
.mini-card .mc-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .mc-body { padding: 20px; }
.mini-card .mc-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--chili); margin-bottom: 6px; }
.mini-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.mini-card h3 a { color: inherit; text-decoration: none; }
.mini-card p { font-size: 15px; color: var(--muted); }

/* featured recipe */
.featured-recipe {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  background: var(--card); border-radius: 24px; overflow: hidden;
  border: 2px solid rgba(194,59,34,0.14); margin-bottom: 28px;
}
.featured-recipe .fr-img { min-height: 320px; background: var(--cream-deep); }
.featured-recipe .fr-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-recipe .fr-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-recipe .fr-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--chili); margin-bottom: 10px; }
.featured-recipe h3 { font-family: var(--font-display); font-size: 32px; color: var(--ink); margin-bottom: 12px; line-height: 1.2; }
.featured-recipe p { color: var(--muted); margin-bottom: 20px; }

/* eat with us band */
.eat-band { background: var(--chili); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.eat-band h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); color: #fff; margin-bottom: 10px; }
.eat-band p { color: #FBE7C0; font-size: 18px; max-width: 52ch; }
.eat-band .btn { background: #fff; color: var(--chili); white-space: nowrap; }
.eat-band .btn:hover { background: var(--saffron-soft); color: var(--chili-deep); }

/* newsletter band */
.news-band { background: var(--saffron-soft); border-top: 3px solid var(--chili); border-bottom: 3px solid var(--chili); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.news-grid h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); margin-bottom: 12px; }
.news-grid p { color: var(--muted); margin-bottom: 20px; }
.news-form { display: flex; gap: 10px; }
.news-form input[type="email"] {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--ink);
  font-size: 16px; font-family: inherit; background: #fff;
}

/* footer */
.site-footer { background: var(--ink); color: #D8CFC2; padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer-brand-block .brand { display: inline-flex; }
.footer-brand-block .footer-note { margin-top: 4px; max-width: 32ch; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #D8CFC2; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-brand { font-family: var(--font-display); font-size: 26px; color: #fff; margin-bottom: 10px; }
.footer-note { font-size: 14px; color: #A89C8C; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #A89C8C; }

/* interior pages */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 54px); color: var(--ink); line-height: 1.12; margin-bottom: 16px; }
.page-hero .lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.page-body { padding: 8px 0 72px; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); color: var(--ink); font-size: 28px; margin: 36px 0 12px; }
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 18px 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-card { background: var(--card); border: 2px solid rgba(194,59,34,0.14); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-family: var(--font-display); color: var(--ink); font-size: 22px; margin-bottom: 12px; }

/* search */
.recipe-search { display: flex; gap: 10px; max-width: 560px; margin: 24px 0 32px; }
.recipe-search input[type="search"] {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--ink);
  font-size: 16px; font-family: inherit; background: #fff;
}
.recipe-search button {
  background: var(--chili); color: #fff; border: none; border-radius: 999px;
  padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.recipe-search button:hover { background: var(--chili-deep); }

/* categories */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.chip {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--card); border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
}
.chip:hover { background: var(--ink); color: #fff; }

/* recipe card (single) */
.recipe-card {
  background: var(--card); border-radius: 24px; border: 2px solid rgba(194,59,34,0.14);
  padding: 40px; margin: 32px 0;
}
.recipe-meta { display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0; padding: 20px 0; border-top: 2px solid var(--cream-deep); border-bottom: 2px solid var(--cream-deep); }
.recipe-meta div { min-width: 120px; }
.recipe-meta .meta-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.recipe-meta .meta-value { font-size: 18px; font-weight: 700; color: var(--ink); }
.recipe-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }

/* shop */
.shop-featured {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  background: var(--card); border-radius: 24px; border: 2px solid rgba(194,59,34,0.14);
  padding: 40px; margin-bottom: 32px;
}
.shop-featured img { border-radius: 16px; }
.shop-featured .sf-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--chili); margin-bottom: 10px; }
.shop-featured h3 { font-family: var(--font-display); font-size: 30px; color: var(--ink); margin-bottom: 12px; }
.shop-featured p { color: var(--muted); margin-bottom: 20px; }
.disclosure { font-size: 14px; color: var(--muted); background: var(--cream-deep); border-radius: 12px; padding: 16px 20px; margin: 28px 0; }

/* form */
.ti-form { display: grid; gap: 16px; max-width: 560px; }
.ti-form label { font-weight: 700; font-size: 15px; color: var(--ink); display: grid; gap: 6px; }
.ti-form input, .ti-form textarea, .ti-form select {
  padding: 13px 16px; border-radius: 12px; border: 2px solid rgba(46,42,36,0.3);
  font-size: 16px; font-family: inherit; background: #fff; width: 100%;
}
.ti-form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }
.form-success { background: #E8F5E9; border: 2px solid #4CAF50; padding: 18px 22px; border-radius: 12px; font-weight: 600; }

.beta-ribbon {
  background: var(--chili); color: #fff; text-align: center; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; padding: 8px; text-transform: uppercase;
}

/* ---------- newsletter popup ---------- */
.ti-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(46, 42, 36, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.ti-popup-overlay.show { display: flex; }
.ti-popup {
  background: var(--cream); border-radius: var(--radius);
  border-top: 6px solid var(--chili);
  max-width: 440px; width: 100%;
  padding: 36px 32px 28px; text-align: center;
  position: relative; box-shadow: 0 24px 60px rgba(46, 42, 36, 0.25);
  animation: ti-pop 0.35s ease-out;
}
@keyframes ti-pop { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ti-popup h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink); margin: 0 0 10px; }
.ti-popup h3 em { font-style: italic; color: var(--chili); }
.ti-popup p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.ti-popup-form { display: flex; gap: 8px; margin-bottom: 12px; }
.ti-popup-form input[type="email"] {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 15px;
  border: 2px solid var(--saffron-soft); border-radius: 12px; font-family: var(--font-body);
}
.ti-popup-form input[type="email"]:focus { outline: none; border-color: var(--chili); }
.ti-popup-form button {
  background: var(--chili); color: #fff; border: none; border-radius: 12px;
  padding: 12px 20px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
  white-space: nowrap;
}
.ti-popup-form button:hover { background: var(--chili-deep); }
.ti-popup-dismiss { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: var(--font-body); }
.ti-popup-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1;
}
.ti-popup-close:hover { color: var(--ink); }
@media (max-width: 480px) { .ti-popup-form { flex-direction: column; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .news-grid, .two-col, .featured-recipe, .shop-featured, .eat-band { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eat-band { padding: 36px 28px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 2px solid var(--chili); padding: 12px 24px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; }
  .recipe-search { flex-direction: column; }
  body { font-size: 16px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 32px 0; }
}

/* press */
.press-band { background: var(--ink); border-radius: 24px; padding: 40px 48px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.press-band .press-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--saffron); width: 100%; }
.press-badge {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff;
  text-decoration: none; padding: 12px 24px; border: 2px solid rgba(255,255,255,0.25);
  border-radius: 16px; transition: all 0.2s;
}
.press-badge:hover { border-color: var(--saffron); color: var(--saffron); }
@media (max-width: 600px) { .press-band { padding: 32px 24px; } .press-badge { font-size: 20px; } }

/* ---------- bold hero (EverSeal-inspired) ---------- */
.hero-bold { position: relative; overflow: hidden; padding: 0; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(253,246,236,0.96) 30%, rgba(253,246,236,0.55) 60%, rgba(253,246,236,0.15) 100%);
}
.hero-bold-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.hero-bold-text h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5.6vw, 72px); line-height: 1.04;
  color: var(--ink); margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero-bold-text h1 em { font-style: italic; color: var(--chili); }
.hero-bold-text p { font-size: 19px; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-bold-text p strong { color: var(--ink); }
.hero-card {
  background: #fff; border-radius: 20px; padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(46,42,36,0.16);
  border-top: 6px solid var(--chili);
}
.hero-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.hero-card h3 em { font-style: italic; color: var(--chili); }
.hero-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.hero-card form { display: grid; gap: 10px; margin-bottom: 12px; }
.hero-card input[type="email"] {
  padding: 14px 16px; border: 2px solid rgba(46,42,36,0.2); border-radius: 12px;
  font-size: 16px; font-family: inherit; width: 100%;
}
.hero-card input[type="email"]:focus { outline: none; border-color: var(--chili); }
.hero-card button[type="submit"] {
  background: var(--chili); color: #fff; border: none; border-radius: 12px;
  padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.hero-card button[type="submit"]:hover { background: var(--chili-deep); }
.hero-card .form-note { font-size: 13px; margin: 0; text-align: center; }

/* trust badges */
.trust-row { background: #fff; border-top: 1px solid rgba(46,42,36,0.1); border-bottom: 1px solid rgba(46,42,36,0.1); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; font-weight: 700; font-size: 15px; color: var(--ink); }
.trust-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--chili); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
@media (max-width: 900px) {
  .hero-bold-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-item { justify-content: flex-start; }
}

/* trust links */
.trust-item.trust-link { text-decoration: none; color: var(--ink); }
.trust-item.trust-link:hover { color: var(--chili); }
.trust-item.trust-link:hover .trust-icon { background: var(--chili-deep); }

/* press line (as seen in) */
.press-line { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.press-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--saffron); }
.press-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.press-item:hover { color: var(--chili); }
.press-star { color: var(--chili); font-size: 20px; }
@media (max-width: 600px) {
  .press-line { gap: 20px; }
  .press-item { font-size: 15px; }
}
