/* ==========================================================================
   K and K Kitchens Inc — Public Site Styles
   Palette: warm walnut / cream, suited to a custom cabinetry business.
   ========================================================================== */

:root {
    --color-walnut: #4a3527;
    --color-walnut-dark: #33241a;
    --color-cream: #faf6f0;
    --color-cream-dark: #f0e8dc;
    --color-gold: #b98a4a;
    --color-gold-light: #d9b078;
    --color-text: #2c221a;
    --color-text-light: #6b5d50;
    --color-white: #ffffff;
    --color-border: #e4d9c9;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(51, 36, 26, 0.08);
    --container-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-walnut-dark);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--color-text-light); }
a { color: var(--color-gold); text-decoration: none; }
a:hover { color: var(--color-walnut); }
ul { padding: 0; list-style: none; margin: 0; }
img { max-width: 100%; display: block; }

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

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.6em;
}

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.btn-primary { background: var(--color-gold); color: var(--color-white); }
.btn-primary:hover { background: var(--color-walnut); color: var(--color-white); }
.btn-secondary { background: var(--color-walnut); color: var(--color-white); }
.btn-secondary:hover { background: var(--color-walnut-dark); color: var(--color-white); }
.btn-outline { background: transparent; border-color: var(--color-walnut); color: var(--color-walnut); }
.btn-outline:hover { background: var(--color-walnut); color: var(--color-white); }
.btn-lg { padding: 1em 2.2em; font-size: 1.05rem; }

/* ---------- Placeholder media block (used until real photos are uploaded) ---------- */
.ph-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, var(--color-cream-dark), var(--color-border));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    border-radius: var(--radius);
    text-align: center;
    padding: 1rem;
}
.ph-image-icon { font-size: 2rem; margin-bottom: 0.4rem; opacity: 0.6; }
.ph-image-label { font-size: 0.85rem; opacity: 0.75; }
.avatar.ph-image, img.avatar { width: 48px; height: 48px; min-height: 0; border-radius: 50%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--color-walnut-dark); color: var(--color-cream); font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--color-cream); margin-right: 1rem; }
.topbar a:hover { color: var(--color-gold-light); }
.topbar-contact a:last-child, .topbar-social a:last-child { margin-right: 0; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--color-white); box-shadow: 0 2px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 1.5rem; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--color-walnut-dark); }
.logo img { max-height: 52px; }
.main-nav ul { display: flex; gap: 1.8rem; }
.main-nav a { color: var(--color-text); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--color-gold); border-color: var(--color-gold); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--color-walnut-dark); border-radius: 2px; }

/* ---------- Flash messages ---------- */
.flash { padding: 14px 0; text-align: center; font-weight: 600; }
.flash-success { background: #e5f3e5; color: #2e6b2e; }
.flash-error { background: #fbe6e6; color: #a13030; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-slider { position: relative; height: 78vh; min-height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media, .hero-media .ph-image { position: absolute; inset: 0; border-radius: 0; min-height: 0; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,20,14,0.72), rgba(30,20,14,0.35)); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: var(--color-white); max-width: 700px; }
.hero-content h1 { color: var(--color-white); font-size: 2.6rem; }
.hero-content p { color: var(--color-cream-dark); font-size: 1.1rem; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--color-white); background: transparent; cursor: pointer; padding: 0; }
.hero-dot.is-active { background: var(--color-white); }

/* ---------- Trust badges ---------- */
.trust-badges { background: var(--color-white); padding: 3rem 0; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.badge-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.badge-card h3 { font-size: 1.1rem; }

/* ---------- About / Intro ---------- */
.about-intro { padding: 5rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image .ph-image, .about-image img { border-radius: var(--radius); min-height: 340px; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services showcase ---------- */
.services-showcase { padding: 5rem 0; background: var(--color-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { background: var(--color-cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.service-card:hover { transform: translateY(-4px); }
.service-image { height: 180px; }
.service-image .ph-image, .service-image img { min-height: 0; height: 180px; width: 100%; object-fit: cover; border-radius: 0; }
.service-card h3 { padding: 1rem 1.2rem; margin: 0; font-size: 1.05rem; }

/* ---------- Media wall ---------- */
.media-wall { padding: 5rem 0; }
.media-wall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.media-wall-image .ph-image, .media-wall-image img { min-height: 340px; border-radius: var(--radius); width: 100%; object-fit: cover; }

/* ---------- Features ---------- */
.features { background: var(--color-walnut-dark); padding: 4.5rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.feature-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.features h3, .features .feature-card p { color: var(--color-cream); }
.features .feature-card p { color: var(--color-cream-dark); opacity: 0.85; }

/* ---------- Video ---------- */
.video-section { padding: 5rem 0; text-align: center; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { max-width: 600px; margin: 0 auto; }

/* ---------- Gallery ---------- */
.customer-gallery { padding: 5rem 0; background: var(--color-white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery-grid-full { grid-template-columns: repeat(3, 1fr); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item .ph-image, .gallery-item img { min-height: 220px; width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.gallery-caption { padding: 0.8rem 1rem; font-weight: 600; background: var(--color-cream); }
.gallery-filters { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5em 1.2em; border-radius: 999px; border: 2px solid var(--color-border); background: var(--color-white); cursor: pointer; font-weight: 600; color: var(--color-text-light); }
.filter-btn.is-active, .filter-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.testimonial-card { background: var(--color-white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.stars { color: var(--color-gold); margin-bottom: 0.6rem; letter-spacing: 2px; }
.testimonial-card .quote { font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.testimonial-author .ph-image { min-height: 0; }

/* ---------- Promo cards ---------- */
.promo-cards { padding: 4rem 0; background: var(--color-white); }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.promo-card { background: var(--color-cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; color: inherit; }
.promo-card:hover h3 { color: var(--color-gold); }
.promo-image { height: 160px; }
.promo-image .ph-image, .promo-image img { min-height: 0; height: 160px; width: 100%; object-fit: cover; border-radius: 0; }
.promo-card h3, .promo-card p { padding-left: 1.2rem; padding-right: 1.2rem; }
.promo-card h3 { margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 5rem 0; }
.faq-accordion { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.8rem; padding: 1rem 1.4rem; }
.faq-item summary { font-weight: 600; cursor: pointer; color: var(--color-walnut-dark); }
.faq-answer { margin-top: 0.8rem; color: var(--color-text-light); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-gold); padding: 3.5rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2, .cta-band p { color: var(--color-white); margin: 0; }
.cta-band .btn-primary { background: var(--color-walnut-dark); }
.cta-band .btn-primary:hover { background: var(--color-walnut); }

/* ---------- Brand partners ---------- */
.brand-partners { padding: 3rem 0; text-align: center; }
.brands-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 1.5rem; }
.brands-row { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.brand-logo img, .brand-logo .ph-image { max-height: 50px; width: auto; min-height: 0; filter: grayscale(100%); opacity: 0.7; }
.brand-logo:hover img { filter: none; opacity: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--color-walnut-dark); color: var(--color-white); padding: 4rem 0; text-align: center; }
.page-hero h1 { color: var(--color-white); }
.page-hero p { color: var(--color-cream-dark); margin: 0; }

/* ---------- Services list page ---------- */
.services-list { padding: 5rem 0; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; scroll-margin-top: 100px; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-row-image .ph-image, .service-row-image img { min-height: 300px; border-radius: var(--radius); width: 100%; object-fit: cover; }

/* ---------- Contact page ---------- */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.contact-info ul li { margin-bottom: 0.8rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.4rem; background: var(--color-white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { font-weight: 600; margin-top: 0.6rem; }
.contact-form input, .contact-form textarea {
    padding: 0.7em 0.9em; border: 1px solid var(--color-border); border-radius: 6px;
    font-family: var(--font-body); font-size: 1rem; background: var(--color-cream);
}
.contact-form button { margin-top: 1.2rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-walnut-dark); color: var(--color-cream-dark); padding: 4rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--color-cream-dark); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-logo { color: var(--color-white); margin-bottom: 0.6rem; }
.footer-social a { margin-right: 1rem; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 160px; padding: 0.6em 0.8em; border-radius: 6px; border: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.2rem 0; text-align: center; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid, .media-wall-grid, .contact-grid, .service-row, .service-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .badge-grid, .features-grid, .services-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid-full { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Coming Soon page ---------- */
.coming-soon-body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: var(--color-walnut-dark); }
.coming-soon-bg { position: absolute; inset: 0; z-index: 0; }
.coming-soon-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.coming-soon-bg.ph-image { min-height: 0; border-radius: 0; opacity: 0.5; }
.coming-soon-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,20,14,0.55), rgba(30,20,14,0.85)); z-index: 1; }
.coming-soon-box { position: relative; z-index: 2; max-width: 560px; width: 100%; margin: 2rem; padding: 3rem 2.5rem; background: rgba(250, 246, 240, 0.97); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.35); text-align: center; }
.coming-soon-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--color-walnut-dark); margin-bottom: 1.2rem; }
.coming-soon-logo img { max-height: 60px; margin: 0 auto; }
.coming-soon-box h1 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.coming-soon-box p.lead { font-size: 1.05rem; margin-bottom: 1.8rem; }
.coming-soon-form { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; }
.coming-soon-form input, .coming-soon-form textarea {
    padding: 0.75em 1em; border: 1px solid var(--color-border); border-radius: 6px;
    font-family: var(--font-body); font-size: 1rem; background: var(--color-white);
}
.coming-soon-form button { margin-top: 0.6rem; }
.coming-soon-social { margin-top: 1.6rem; }
.coming-soon-social a { margin: 0 0.5rem; }

@media (max-width: 680px) {
    .main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh; background: var(--color-white); flex-direction: column; padding: 5rem 1.5rem 2rem; box-shadow: -8px 0 24px rgba(0,0,0,0.1); transition: right 0.3s ease; }
    .main-nav.is-open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 1.2rem; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .badge-grid, .features-grid, .services-grid, .promo-grid, .gallery-grid, .gallery-grid-full { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.9rem; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    .topbar-inner { flex-direction: column; align-items: flex-start; }
}
