/* =============================================
   oventoairfryercalculator.com — style.css
   Semantically optimised for air fryer conversion keywords
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #E85D2B;
  --brand-dark:   #C4481C;
  --brand-light:  #FFF0EB;
  --accent:       #1A6B4A;
  --accent-light: #E6F4EE;
  --text:         #1C1C1C;
  --text-muted:   #5C5C5C;
  --text-light:   #8A8A8A;
  --border:       #E8E4DF;
  --bg:           #FFFCFA;
  --bg-warm:      #F7F3EF;
  --white:        #FFFFFF;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
  --max-w:        780px;
  --max-w-wide:   1060px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  line-height: 1.2;
}

.logo-text span {
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--bg-warm);
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  background: var(--brand) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: var(--brand-dark) !important;
  text-decoration: none !important;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #FFF7F4 0%, #FFF0E8 60%, #F0F8F4 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 20px 48px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero__badge {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* ── CALCULATOR SECTION ── */
.calc-section {
  padding: 52px 20px;
}

.calc-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
  color: var(--text);
}

.calc-section .section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Calculator Card */
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-card__header {
  background: var(--brand);
  padding: 18px 28px;
  color: var(--white);
}

.calc-card__header h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}

.calc-card__header p {
  font-size: 13px;
  opacity: 0.85;
}

.calc-card__body {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,93,43,0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5C5C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.toggle-group {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 46px;
}

.toggle-group button {
  flex: 1;
  border: none;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.toggle-group button.active {
  background: var(--brand);
  color: var(--white);
}

.toggle-group button:not(:last-child) {
  border-right: 1.5px solid var(--border);
}

.btn-calculate {
  width: 100%;
  height: 52px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 8px;
}

.btn-calculate:hover { background: var(--brand-dark); }
.btn-calculate:active { transform: scale(0.99); }

/* Result box */
.result-box {
  margin-top: 24px;
  background: var(--accent-light);
  border: 1.5px solid #A8D8C4;
  border-radius: var(--radius-md);
  padding: 24px;
  display: none;
}

.result-box.visible { display: block; }

.result-box__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid #C8E8D8;
}

.result-item__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-item__value {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.result-item__unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.result-note {
  font-size: 13px;
  color: var(--accent);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #C8E8D8;
  line-height: 1.5;
}

/* ── CONVERSION CHART ── */
.chart-section {
  padding: 52px 20px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chart-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.chart-section .section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.conversion-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.conversion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.conversion-table thead {
  background: var(--brand);
  color: var(--white);
}

.conversion-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.conversion-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.conversion-table tbody tr:last-child { border-bottom: none; }
.conversion-table tbody tr:hover { background: var(--brand-light); }

.conversion-table td {
  padding: 12px 18px;
  color: var(--text);
}

.conversion-table td:nth-child(2),
.conversion-table td:nth-child(4) {
  color: var(--brand);
  font-weight: 600;
}

.chart-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  font-style: italic;
}

/* ── HOW TO USE ── */
.howto-section {
  padding: 52px 20px;
}

.howto-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.howto-section .section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
}

.step-card__num {
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-section {
  padding: 52px 20px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.faq-section .section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--bg-warm); }

.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--brand);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 24px;
  border-top: 3px solid var(--brand);
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-0 { margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 36px 16px; }
  .calc-card__body { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
}
