/* =============================================================
   86 Chef - Main Stylesheet
   Single file. No frameworks. No bloat.
   ============================================================= */

/* -- Fonts --------------------------------------------------- */
@font-face {
    font-family: 'KoHo';
    src: url('../fonts/KoHo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'KoHo';
    src: url('../fonts/KoHo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'KoHo';
    src: url('../fonts/KoHo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* -- Tokens -------------------------------------------------- */
:root {
    --gold:    #FFD700;
    --dark:    #1E1E1E;
    --navy:    #172F3A;
    --cream:   #E4E1D4;
    --accent:  #5B5639;
    --blue:    #81B7CA;
    --text:    #27241C;
    --gray:    #444444;
    --lgray:   #9FA1A8;
    --white:   #FFFFFF;
    --formbg:  #FDFDFB;
    --offwhite:#F9F7F2;
    --border:  #DDDDDD;

    --font-head: 'KoHo', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --max-w: 1180px;
    --radius: 4px;
    --nav-h: 72px;
    --transition: 0.2s ease;
}

/* -- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

/* -- Typography ---------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* -- Layout -------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }
.section--dark   { background: var(--dark);    color: var(--white); }
.section--navy   { background: var(--navy);    color: var(--white); }
.section--cream  { background: var(--cream); }
.section--offwhite { background: var(--offwhite); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap { gap: 16px; }

.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-cream   { color: var(--cream); }

/* -- Buttons ------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 36px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn--gold {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}
.btn--gold:hover {
    background: transparent;
    color: var(--gold);
}
.btn--outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn--outline:hover {
    background: var(--gold);
    color: var(--dark);
}
.btn--dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn--dark:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* -- Header / Nav -------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    height: var(--nav-h);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { height: 100%; }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.site-logo img {
    height: 48px;
    width: auto;
}
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-nav a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    transition: color var(--transition);
}
.site-nav a:hover,
.site-nav a.current-menu-item { color: var(--gold); }
.site-nav .nav-cta {
    background: var(--gold);
    color: var(--dark) !important;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 700;
}
.site-nav .nav-cta:hover {
    background: var(--accent);
    color: var(--white) !important;
}

/* -- Mobile nav toggle --------------------------------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

/* -- Hero ---------------------------------------------------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.hero__label {
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 16px;
}
.hero__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.05;
}
.hero__title span { color: var(--gold); }
.hero__text {
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 36px;
    max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* -- Page Hero (for inner pages) ----------------------------- */
.page-hero {
    background: var(--dark);
    padding: 80px 0 60px;
    text-align: center;
}
.page-hero__title { color: var(--gold); margin-bottom: 16px; }
.page-hero__sub   { color: var(--cream); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* -- Divider ------------------------------------------------- */
.divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 24px auto;
}
.divider--left { margin-left: 0; }

/* -- Product cards ------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.product-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--offwhite);
}
.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body { padding: 16px; }
.product-card__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--dark);
}
.product-card__price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
}
.product-card__price del { color: var(--lgray); font-weight: 400; font-size: 0.9rem; margin-right: 6px; }
.product-card .btn { width: 100%; text-align: center; }

/* -- Shop archive -------------------------------------------- */
.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-header h1 { margin: 0; }
.woocommerce-ordering select {
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    background: var(--white);
}

/* -- Single product ------------------------------------------ */
.single-product__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.single-product__gallery .main-image {
    aspect-ratio: 1;
    background: var(--offwhite);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.single-product__gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.single-product__info h1 { font-size: 2rem; margin-bottom: 12px; }
.single-product__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}
.single-product__desc { color: var(--text); margin-bottom: 28px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-input {
    width: 70px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
}

/* -- Cart ---------------------------------------------------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.cart-table th, .cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.cart-table th { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); }
.cart-item__img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.cart-totals { max-width: 380px; margin-left: auto; }
.cart-totals table { width: 100%; border-collapse: collapse; }
.cart-totals td { padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-totals .total-row td { font-weight: 700; font-size: 1.1rem; border-bottom: none; padding-top: 20px; }

/* -- Checkout ------------------------------------------------ */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.checkout-form .form-row { margin-bottom: 20px; }
.checkout-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--formbg);
    transition: border-color var(--transition);
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.order-summary {
    background: var(--offwhite);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.order-summary h3 { margin-bottom: 20px; }

/* -- Gravity Forms styling ----------------------------------- */
.gform_wrapper {
    max-width: 680px;
    margin: 0 auto;
}
.gform_wrapper .gfield_label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--formbg);
    transition: border-color var(--transition);
}
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    outline: none;
    border-color: var(--gold);
}
.gform_wrapper .gfield { margin-bottom: 20px; }
.gform_wrapper .gfield--type-checkbox .gfield_checkbox,
.gform_wrapper .gfield--type-radio .gfield_radio {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gform_wrapper .gfield--type-checkbox .gfield_checkbox label,
.gform_wrapper .gfield--type-radio .gfield_radio label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}
.gform_wrapper input[type=submit],
.gform_wrapper button[type=submit] {
    display: inline-block;
    padding: 14px 44px;
    background: var(--gold);
    color: var(--dark);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
    width: auto;
}
.gform_wrapper input[type=submit]:hover,
.gform_wrapper button[type=submit]:hover {
    background: transparent;
    color: var(--gold);
}
.gform_confirmation_message {
    padding: 20px 24px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius);
    color: #155724;
    font-weight: 600;
}
.gform_wrapper .validation_error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* -- Form pages ---------------------------------------------- */
.form-page { padding: 80px 0; background: var(--offwhite); }
.form-page__intro { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.form-page__intro h2 { color: var(--dark); margin-bottom: 12px; }
.form-page__intro p { color: var(--text); }

/* -- Bullet list with gold chevron --------------------------- */
.chef-list { list-style: none; }
.chef-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1rem;
}
.chef-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

/* -- About / content pages ----------------------------------- */
.content-page { padding: 80px 0; }
.content-page__body { max-width: 760px; }
.content-page__body p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.4rem; }

/* -- Blog ---------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
}
.post-card:hover { transform: translateY(-4px); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--offwhite); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__meta { font-size: 0.8rem; color: var(--lgray); margin-bottom: 8px; }
.post-card__title { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 10px; }
.post-card__title a { color: var(--dark); }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { font-size: 0.9rem; color: var(--gray); }

/* -- Single post -------------------------------------------- */
.post-single { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.post-single__meta { font-size: 0.85rem; color: var(--lgray); margin-bottom: 24px; }
.post-single__content h2, .post-single__content h3 { margin: 2rem 0 1rem; color: var(--dark); }
.post-single__content p { line-height: 1.8; margin-bottom: 1.4rem; }
.post-single__content img { border-radius: var(--radius); margin: 24px 0; }
.post-single__content ul, .post-single__content ol { padding-left: 24px; margin-bottom: 1.4rem; list-style: revert; }

/* -- Coming soon -------------------------------------------- */
.coming-soon {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    padding: 80px 24px;
}
.coming-soon__inner { max-width: 560px; }
.coming-soon__label { color: var(--gold); font-family: var(--font-head); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.coming-soon__title { color: var(--white); margin-bottom: 20px; }
.coming-soon__text { color: var(--cream); margin-bottom: 40px; }

/* -- Footer -------------------------------------------------- */
.site-footer {
    background: var(--dark);
    color: var(--cream);
    padding: 60px 0 32px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--lgray); line-height: 1.7; }
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--cream); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--lgray);
}

/* -- 404 ---------------------------------------------------- */
.error-404 { text-align: center; padding: 120px 24px; }
.error-404__code { font-size: clamp(5rem, 15vw, 10rem); font-family: var(--font-head); color: var(--gold); line-height: 1; margin-bottom: 16px; }
.error-404__msg { font-size: 1.5rem; margin-bottom: 12px; }
.error-404__sub { color: var(--gray); margin-bottom: 40px; }

/* -- Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .single-product__wrap { grid-template-columns: 1fr; gap: 40px; }
    .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--dark);
        padding: 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .site-nav a { display: block; padding: 14px 0; }
    .site-header { position: relative; }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { min-height: 70vh; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .shop-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .hero__title { font-size: 2.2rem; }
    .btn { padding: 11px 24px; }
}
