/* Chipotle Nutrition Calculator - Modern & Friendly Design System */

:root {
  /* Vibrant & Friendly Brand Colors */
  --green: #257849;
  --green-dark: #185733;
  --green-accent: #2fb367;
  --green-light: #eef8f2;
  --green-border: #cae6d5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  
  /* Text & Neutrals */
  --ink: #14211a;
  --ink-light: #2b3d33;
  --muted: #53695d;
  --muted-light: #7e9488;
  --bg: #f9fcfb;
  --bg-alt: #f0f6f2;
  --card-bg: #ffffff;
  --line: #e1ede5;
  --line-hover: #bde0cb;
  
  /* Design Tokens */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 6px rgba(20, 45, 30, 0.03);
  --shadow: 0 4px 18px rgba(20, 55, 35, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 14px 34px rgba(20, 65, 40, 0.11), 0 3px 8px rgba(0, 0, 0, 0.03);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse at 95% 2%, rgba(47, 179, 103, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse at 5% 30%, rgba(217, 119, 6, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 70%, rgba(37, 120, 73, 0.07) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3 {
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--green-accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-accent) 0%, var(--green) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 120, 73, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 120, 73, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 120, 73, 0.12);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(225, 237, 229, 0.8);
  box-shadow: 0 2px 10px rgba(20, 45, 30, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 120, 73, 0.1);
}

.brand-icon-wrap img {
  width: 41px;
  height: 41px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.primary-nav a:hover {
  color: var(--green-dark);
  background: var(--green-light);
}

.nav-cta {
  display: inline-flex;
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  padding: 0 11px;
  transition: all 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--green);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--green);
}

/* Hero Section */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.hero-inner {
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px rgba(37, 120, 73, 0.08);
}

.hero h1 {
  margin-bottom: 1.15rem;
  letter-spacing: -0.03em;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto 2.25rem;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

/* Hero Highlights Pills */
.hero-highlights-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-light);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section h2 {
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.4rem auto 0;
}

/* Menu Card Grid */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s cubic-bezier(0.2, 0, 0, 1), border-color 0.22s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-border);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0f7f3 0%, #e2efe7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.card:hover img {
  transform: scale(1.08);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  align-items: flex-start;
}

.card-body h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--ink);
}

.card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.card-footer {
  width: 100%;
  padding-top: 0.5rem;
  margin-top: auto;
}

.card-footer .btn {
  width: 100%;
}

/* Steps / How It Works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-accent) 0%, var(--green) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 120, 73, 0.25);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Modern FAQ Accordion */
.accordion {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.accordion-item {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-item:hover {
  border-color: var(--green-border);
  box-shadow: var(--shadow);
}

.accordion-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.accordion-trigger:hover {
  color: var(--green-dark);
}

.accordion-trigger[aria-expanded="true"] {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--green);
  border-radius: 2px;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  transition: transform 0.2s ease;
}

.accordion-icon::after {
  transform: rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(0deg);
}

.accordion-panel {
  padding: 0 1.5rem 1.35rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.accordion-panel p {
  margin: 0.85rem 0 0;
}

/* Disclaimer Section */
#disclaimer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.link-arrow {
  font-weight: 700;
  text-decoration: none;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.15s ease;
}

.link-arrow:hover {
  color: var(--green-dark);
  text-decoration: underline;
  gap: 0.55rem;
}

/* Contact Box */
.contact-box {
  text-align: center;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-accent), var(--green), var(--amber));
}

.contact-email-pill {
  display: inline-block;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  margin: 1.25rem 0 1.75rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.contact-email-pill:hover {
  transform: scale(1.03);
  background: #e2f2e8;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 2.2fr 1fr 1fr;
}

.footer-about p {
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: 0.925rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 1rem;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: var(--muted-light);
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 980px) {
  .card-grid, .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 1rem;
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-name {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
  }
  
  .nav-cta {
    display: none;
  }
  
  .primary-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    display: none;
    overflow: hidden;
  }
  
  .primary-nav.is-open {
    display: block;
    animation: menuSlide 0.2s cubic-bezier(0.2, 0, 0, 1);
  }
  
  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
  }
  
  .primary-nav li {
    width: 100%;
  }
  
  .primary-nav li + li {
    border-top: 1px solid var(--line);
  }
  
  .primary-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }
  
  .hero-highlights-list {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 600px) {
  .card-grid, .steps, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .contact-box {
    padding: 2.25rem 1.25rem;
  }

  .contact-email-pill {
    font-size: 1rem;
    padding: 0.55rem 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
