/*
Theme Name: Frost It Up
Theme URI: https://frostitup.com
Description: Custom theme for Frost It Up wedding cakes, Clarksville AR.
Version: 1.4.2
Text Domain: frostitup
*/

/* ---------- Tokens ---------- */
:root {
  --plum: #4A2438;
  --plum-deep: #34182697;
  --rose: #F6E7E4;
  --rose-mid: #E9C9C3;
  --sage: #7D9480;
  --sage-light: #E4EBE3;
  --gold: #B08A4E;
  --ink: #2E2328;
  --muted: #6D6167;
  --line: #EADDDA;
  --white: #FFFFFF;
  --font-head: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--plum); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--plum); color: #fff; padding: 8px 14px; z-index: 999; }

.site-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--plum); color: #F3E6EA; font-size: 14px; }
.top-bar .site-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.top-bar a { color: #F3E6EA; text-decoration: none; }
.top-bar a:hover { color: #fff; text-decoration: underline; }
.top-bar .contact-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-branding svg { width: 46px; height: 46px; flex: none; }
.site-title { font-family: var(--font-head); font-size: 1.75rem; color: var(--plum); line-height: 1; display: block; }
.site-description { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-navigation a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: 15.5px; border-bottom: 2px solid transparent; }
.main-navigation a:hover { color: var(--plum); border-bottom-color: var(--rose-mid); }
.main-navigation .current-menu-item > a { color: var(--plum); border-bottom-color: var(--gold); }
.main-navigation .menu-cta a { background: var(--plum); color: #fff; border-radius: 2px; margin-left: 8px; border-bottom: 0; padding: 10px 18px; }
.main-navigation .menu-cta a:hover { background: var(--gold); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 9px 14px; font: inherit; color: var(--plum); cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .main-navigation ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; gap: 0; }
  .main-navigation.toggled ul { display: flex; }
  .main-navigation a { border-bottom: 1px solid var(--line); }
  .main-navigation .menu-cta a { margin: 12px 0 0; text-align: center; }
}

/* ---------- Page title banner ---------- */
.page-header { background: var(--rose); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.page-header h1 { margin-bottom: .3em; }
.breadcrumbs { font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; }

/* ---------- Layout ---------- */
.site-content { padding: 64px 0 80px; }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
@media (max-width: 960px) { .content-sidebar { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .top-bar .site-wrap > span:first-child { display: none; } }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .35em; }

/* ---------- Sidebar widgets ---------- */
.widget-area .widget { border: 1px solid var(--line); padding: 26px; margin-bottom: 28px; background: var(--white); }
.widget-title { font-size: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget-highlight { background: var(--plum) !important; color: #F3E6EA; border-color: var(--plum) !important; }
.widget-highlight .widget-title { color: #fff; border-color: rgba(255,255,255,.2); }
.widget-highlight a { color: #fff; }
.widget-timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 15px; }
.widget-timeline strong { color: var(--plum); font-weight: 700; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .button, button.button {
  display: inline-block; font: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: .02em;
  padding: 13px 26px; border-radius: 2px; border: 1px solid var(--plum);
  background: var(--plum); color: #fff; text-decoration: none; cursor: pointer;
}
.wp-block-button__link:hover, .button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.is-style-outline .wp-block-button__link, .button-outline { background: transparent; color: var(--plum); }
.is-style-outline .wp-block-button__link:hover, .button-outline:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Home hero ---------- */
.hero { background: linear-gradient(180deg, var(--rose) 0%, var(--white) 100%); padding: 72px 0 40px; overflow: hidden; }
.hero .site-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.08; margin-bottom: .45em; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cake { position: relative; }
.hero-cake svg { width: 100%; height: auto; display: block; max-width: 460px; margin: 0 auto; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
@media (max-width: 860px) { .hero .site-wrap { grid-template-columns: 1fr; } .hero-cake { order: -1; } .hero-cake svg { max-width: 300px; } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--rose); }
.section-sage { background: var(--sage-light); }
.section-intro { max-width: 640px; margin-bottom: 40px; }
.section-intro p { color: var(--muted); font-size: 1.08rem; }

.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.columns-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
@media (max-width: 860px) { .columns-3, .columns-2 { grid-template-columns: 1fr; } }

.offering { border-top: 3px solid var(--gold); padding-top: 22px; }
.offering p { color: var(--muted); }
.offering .from { font-family: var(--font-head); color: var(--plum); font-size: 1.1rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--plum); color: var(--plum); font-family: var(--font-head); font-size: 1.2rem; display: grid; place-items: center; background: var(--white); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: -18px; border-top: 1px dashed var(--rose-mid); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--plum); color: #F3E6EA; padding: 60px 0; }
.cta-band h2 { color: #fff; }
.cta-band .site-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band .wp-block-button__link { background: #fff; color: var(--plum); border-color: #fff; }
.cta-band .wp-block-button__link:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Cake styles / lists ---------- */
.style-item { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.style-item:first-of-type { padding-top: 0; }
.style-item svg { width: 150px; height: auto; }
.style-item h3 { margin-bottom: .3em; }
.style-item .rate { font-size: 15px; color: var(--sage); font-weight: 700; }
@media (max-width: 560px) { .style-item { grid-template-columns: 1fr; } }

.flavor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; list-style: none; padding: 0 !important; }
.flavor-grid li { border-bottom: 1px dashed var(--line); padding: 10px 0; margin: 0 !important; }
.flavor-grid .tag { font-size: 12.5px; background: var(--rose); color: var(--plum); padding: 2px 8px; margin-left: 6px; border-radius: 20px; white-space: nowrap; }
@media (max-width: 560px) { .flavor-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing tables ---------- */
.wp-block-table { overflow-x: auto; margin: 0 0 1.8em; }
.wp-block-table table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 16px; }
.wp-block-table th, .wp-block-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table thead th { background: var(--rose); color: var(--plum); font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; }
.wp-block-table td:last-child, .wp-block-table th:last-child { text-align: right; white-space: nowrap; }
.wp-block-table tbody tr:hover { background: #FCF7F6; }
.wp-block-table figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.price-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
.price-tier { border: 1px solid var(--line); padding: 26px 20px; text-align: center; }
.price-tier svg { width: 90px; height: 90px; }
.price-tier h3 { margin: 10px 0 2px; font-size: 1.2rem; }
.price-tier .serves { font-size: 14px; color: var(--muted); }
.price-tier .amount { font-family: var(--font-head); font-size: 2rem; color: var(--plum); margin: 10px 0 0; line-height: 1; }
.price-tier .amount small { font-family: var(--font-body); font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.price-tier.featured { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
@media (max-width: 1100px) { .price-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .price-tiers { grid-template-columns: 1fr; } }

.notice { background: var(--sage-light); border-left: 3px solid var(--sage); padding: 18px 22px; margin: 0 0 1.6em; font-size: 16px; }

/* ---------- Forms ---------- */
.wpforms-field { margin-bottom: 18px; }
.wpforms-field label, .field-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.wpforms-field .req { color: #A33A4F; }
.wpforms-field input[type=text], .wpforms-field input[type=email], .wpforms-field input[type=tel], .wpforms-field input[type=date], .wpforms-field input[type=number], .wpforms-field select, .wpforms-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #D8C9C6; border-radius: 2px; background: #fff; color: var(--ink);
}
.wpforms-field textarea { min-height: 130px; resize: vertical; }
.wpforms-field input:focus, .wpforms-field select:focus, .wpforms-field textarea:focus { border-color: var(--plum); outline: 2px solid var(--rose-mid); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-help { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 13.5px; color: #A33A4F; margin-top: 5px; display: none; }
.has-error .field-error { display: block; }
.has-error input, .has-error select, .has-error textarea { border-color: #A33A4F !important; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 9px 14px; cursor: pointer; margin: 0; font-size: 15.5px; }
.choice-group input { accent-color: var(--plum); }
.choice-group label:has(input:checked) { border-color: var(--plum); background: var(--rose); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; font-size: 13px; cursor: pointer; color: var(--muted); }
.swatches input { position: absolute; opacity: 0; }
.swatches .chip { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #D8C9C6; }
.swatches input:checked + .chip { outline: 2px solid var(--plum); outline-offset: 3px; }
.swatches input:focus-visible + .chip { outline: 2px solid var(--gold); outline-offset: 3px; }

fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-family: var(--font-head); font-size: 1.35rem; color: var(--plum); padding: 0; margin-bottom: 14px; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 10px; }

/* ---------- Cake builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.builder-summary { position: sticky; top: 110px; border: 1px solid var(--line); background: var(--white); }
.builder-summary .preview { background: var(--rose); padding: 20px; }
.builder-summary .preview svg { display: block; width: 100%; height: 260px; }
.builder-summary .body { padding: 22px 24px 26px; }
.estimate { font-family: var(--font-head); font-size: 2.4rem; color: var(--plum); line-height: 1; margin: 4px 0 6px; }
.estimate-label { font-size: 14px; color: var(--muted); }
.estimate-lines { list-style: none; padding: 0; margin: 16px 0; font-size: 14.5px; }
.estimate-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.estimate-lines li span:last-child { white-space: nowrap; }
.serving-hint { font-size: 13.5px; color: #8A5A22; background: #FBF3E6; padding: 8px 10px; margin-top: 8px; display: none; }
.serving-hint.show { display: block; }
@media (max-width: 1000px) { .builder { grid-template-columns: minmax(0, 1fr); } .builder-summary { position: static; } }

.request-result { display: none; border: 1px solid var(--sage); background: var(--sage-light); padding: 26px; margin-top: 10px; }
.request-result.show { display: block; }
.request-result pre { white-space: pre-wrap; font-family: var(--font-body); font-size: 14.5px; background: #fff; border: 1px solid var(--line); padding: 16px; max-height: 320px; overflow: auto; }

/* ---------- FAQ ---------- */
.wp-block-details { border-bottom: 1px solid var(--line); }
.wp-block-details summary { cursor: pointer; padding: 18px 30px 18px 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--plum); list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--gold); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: 30px 1fr; gap: 6px 14px; margin-bottom: 22px; }
.contact-card svg { width: 22px; height: 22px; color: var(--gold); margin-top: 4px; }
.contact-card strong { display: block; color: var(--plum); font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: #2F1A25; color: #D9C8CE; font-size: 15.5px; }
.footer-widgets { padding: 60px 0 40px; }
.footer-widgets .site-wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-widgets h4 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { padding: 4px 0; }
.site-footer a { color: #F3E6EA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-info { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 14px; }
.site-info .site-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 860px) { .footer-widgets .site-wrap { grid-template-columns: 1fr; gap: 28px; } }
