/* ==========================================================================
   Carmen's Handmade Peanut Butter — Modern Design System
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #FFF9F3;
    --tan: #F5E9DA;
    --warm-gold: #C9923A;
    --gold-light: #E8C88A;
    --pb-brown: #8B5C2A;
    --roasted: #5C3A18;
    --chocolate: #3D2314;
    --white: #FFFFFF;
    --text: #4A3728;
    --text-muted: #7A6558;
    --border: rgba(139, 92, 42, 0.12);
    --shadow-sm: 0 2px 8px rgba(61, 35, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(61, 35, 20, 0.1);
    --shadow-lg: 0 16px 48px rgba(61, 35, 20, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --header-height: 72px;
    --max-width: 1200px;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--pb-brown);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--roasted);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--roasted);
    line-height: 1.25;
    font-weight: 700;
}

main {
    min-height: 50vh;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

a.btn {
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pb-brown), var(--roasted));
    color: var(--white);
    border-color: var(--pb-brown);
}

.btn-primary:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--roasted), var(--chocolate));
}

.btn-secondary {
    background: var(--white);
    color: var(--pb-brown);
    border-color: var(--pb-brown);
}

.btn-secondary:hover {
    background: var(--tan);
    color: var(--roasted);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--warm-gold), var(--gold-light));
    color: var(--chocolate);
    border-color: var(--warm-gold);
}

.btn-gold:hover {
    color: var(--chocolate);
}

.btn-large {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-call {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    min-height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    color: inherit;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--roasted);
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pb-brown);
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.main-nav a:hover {
    background: var(--tan);
    color: var(--roasted);
}

.main-nav a.active {
    background: var(--pb-brown);
    color: var(--white);
}

.main-nav a.active:hover {
    color: var(--white);
    background: var(--roasted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--roasted);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(61, 35, 20, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--cream);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--roasted);
    background: var(--tan);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    margin-top: 3rem;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.mobile-nav a.active {
    color: var(--pb-brown);
    font-weight: 700;
}

.mobile-nav-call {
    margin-top: 1.5rem;
    width: 100%;
}

/* Legacy header support */
header:not(.site-header) {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
}

.logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-info h1 {
    font-size: 1.35rem;
    margin: 0;
}

.brand-info h2 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pb-brown);
    margin: 0;
}

.contact {
    font-size: 0.85rem;
    color: var(--text-muted);
}

nav:not(.main-nav):not(.breadcrumb) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

nav:not(.main-nav):not(.breadcrumb) a {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
}

nav:not(.main-nav):not(.breadcrumb) a.active {
    background: var(--pb-brown);
    color: var(--white);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--pb-brown);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Page Hero (inner pages)
   ========================================================================== */

.page-hero {
    background: linear-gradient(135deg, var(--tan) 0%, var(--cream) 100%);
    padding: 3rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   Section Layout
   ========================================================================== */

.section {
    padding: 4rem 1.25rem;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-alt {
    background: var(--white);
}

.section-warm {
    background: var(--tan);
}

/* ==========================================================================
   Homepage Hero
   ========================================================================== */

.hero-home {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--roasted) 0%, var(--pb-brown) 45%, var(--warm-gold) 100%);
}

.hero-home-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(61, 35, 20, 0.88) 0%, rgba(92, 58, 24, 0.75) 45%, rgba(139, 92, 42, 0.55) 100%),
        url('assets/images/hero-treats.svg') center/cover no-repeat;
}

.hero-home-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-home-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero-home-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy hero */
.hero {
    background: linear-gradient(135deg, var(--tan), var(--cream));
    padding: 4rem 1.25rem;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
}

.trust-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--roasted);
    line-height: 1.3;
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.products-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--tan);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-image--jar {
    aspect-ratio: 178 / 280;
    display: block;
    background: var(--cream);
    overflow: visible;
}

.product-card-image--jar img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.product-card-image--jar-sm {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image--jar-sm img {
    width: 50%;
}

.product-card:hover .product-card-image:not(.product-card-image--jar) img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.product-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pb-brown);
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%;
}

.product-order-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.variants {
    margin-bottom: 1rem;
}

.variant {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    border-bottom: 1px dashed var(--border);
}

.variant:last-child {
    border-bottom: none;
}

.variant span:last-child {
    font-weight: 700;
    color: var(--pb-brown);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Category sections */
.product-category {
    margin-bottom: 3rem;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold-light);
    display: inline-block;
}

.category-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.page-products .product-category {
    text-align: center;
}

.page-products .category-desc {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.page-products .products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.page-products .products-grid .product-card {
    flex: 1 1 280px;
    max-width: 320px;
    min-width: 260px;
}

/* ==========================================================================
   About Sections
   ========================================================================== */

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-preview-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-preview-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-preview-image--jar {
    overflow: visible;
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
    background: var(--cream);
}

.about-preview-image--jar img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--cream);
}

.about-preview-image--jar-lg {
    max-width: none;
}

.about-preview-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.about-preview-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   How to Order Steps
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pb-brown), var(--roasted));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card,
.testimonial {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--warm-gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.testimonial-quote,
.testimonial-content p {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

.testimonial-author,
.customer {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pb-brown);
}

.testimonial-rating {
    color: var(--warm-gold);
    margin-top: 0.5rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
    background: linear-gradient(135deg, var(--pb-brown), var(--roasted));
    padding: 4rem 1.25rem;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.custom-orders {
    background: var(--gold-light);
    color: var(--chocolate);
    text-align: center;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   Order Page
   ========================================================================== */

.order-call {
    background: linear-gradient(135deg, var(--tan), var(--cream));
    padding: 3rem 1.25rem;
    text-align: center;
}

.order-call h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

.order-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    max-width: 220px;
    text-align: center;
}

.feature-item h4 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.order-cta > p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.order-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-form-section {
    padding: 3rem 1.25rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.order-form-section > h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.order-form-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.order-form-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.order-form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.form-section-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tan);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--roasted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pb-brown);
    box-shadow: 0 0 0 3px rgba(139, 92, 42, 0.15);
}

.order-items-section h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
}

.order-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.order-item {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: border-color var(--transition);
}

.order-item:hover {
    border-color: var(--gold-light);
}

.order-item--highlight {
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 3px rgba(201, 146, 58, 0.25);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.item-header h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.item-icon {
    font-size: 1.5rem;
}

.option-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    cursor: pointer;
    line-height: 1.4;
}

.option-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pb-brown);
    flex-shrink: 0;
}

.quantity-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.quantity-group label {
    font-size: 0.875rem;
    font-weight: 600;
}

.qty-input {
    width: 72px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.order-summary-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.order-summary {
    background: var(--white);
    border: 2px solid var(--pb-brown);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.order-summary h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tan);
}

#order-summary-content {
    min-height: 80px;
    margin-bottom: 1rem;
}

#order-summary-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item-summary {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
}

.order-item-summary span:last-child {
    font-weight: 700;
    color: var(--pb-brown);
}

.total-display h4 {
    font-size: 1.25rem;
    color: var(--roasted);
    padding-top: 0.75rem;
    border-top: 2px solid var(--tan);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions .btn-primary {
    flex: 1;
    min-width: 180px;
}

/* Success overlay */
#orderSuccessOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 35, 20, 0.6);
    z-index: 9999;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.success-card {
    width: min(90%, 480px);
    background: var(--white);
    margin: 0;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-redirect-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1.25rem 0;
}

.success-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Payment Page
   ========================================================================== */

.payment-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.payment-section > h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.payment-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.payment-memo-notice {
    background: var(--tan);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--roasted);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.payment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.payment-qr {
    max-width: 220px;
    margin: 0 auto 1rem;
}

.payment-qr img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.payment-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.payment-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.payment-details {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
}

.payment-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
}

.payment-instructions,
.payment-policy {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.payment-instructions h3,
.payment-policy h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.instruction {
    text-align: center;
}

.instruction .step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--pb-brown);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.instruction p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.payment-policy ul {
    list-style: none;
    padding: 0;
}

.payment-policy li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.payment-policy li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--warm-gold);
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 35, 20, 0.6);
    z-index: 9999;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    max-width: 480px;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.payment-option {
    padding: 0.85rem 1rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    transition: border-color var(--transition);
}

.payment-option:hover {
    border-color: var(--pb-brown);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer,
footer {
    background: var(--chocolate);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 1.25rem 0;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-brand a {
    color: var(--gold-light);
}

.footer-brand a:hover {
    color: var(--white);
}

.footer-section h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--gold-light);
}

.footer-section p {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-content .footer-section h3 {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

#backToTop {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--pb-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: 900;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    background: var(--roasted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.comic-sans {
    font-family: var(--font-body);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-home-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-preview {
        grid-template-columns: 1fr;
    }

    .order-form-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-sidebar {
        position: static;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions .btn-call {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .steps-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    nav:not(.main-nav):not(.breadcrumb) {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }

    .hero-home {
        min-height: auto;
    }

    .hero-home-inner {
        padding: 3rem 1rem;
    }

    .order-form-container {
        padding: 1.25rem;
    }
}
