/*
Theme Name: Kitchen Craft
Description: Photography-led portfolio for Kitchen Craft Modular Kitchen & All Interior.
Version: 1.3.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kitchen-craft
*/
@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/dm-sans.woff2") format("woff2");
    font-weight: 400 600;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("assets/fonts/instrument-serif.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
    font-style: italic;
    font-display: swap;
}

:root {
    --paper: #f3efe7;
    --ink: #292720;
    --accent: #745235;
    --line: #d5cfc3;
    --tint: #e9e1d4;
    --white: #fffaf2;
    --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 "DM Sans", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0 0 .28em; font: 400 1em/.98 var(--serif); }
h1 { font-size: clamp(68px, 10vw, 150px); letter-spacing: -.035em; }
h2 { font-size: clamp(43px, 6.6vw, 92px); letter-spacing: -.025em; }
h3 { font-size: clamp(32px, 4vw, 54px); }
p { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.skip-link { position: absolute; top: 0; left: 0; transform: translateY(-110%); z-index: 10; padding: .7rem 1rem; background: var(--white); }
.skip-link:focus { transform: none; }
.wrap { width: min(1320px, calc(100% - 10vw)); margin-inline: auto; }
.section { padding-block: clamp(66px, 9vw, 136px); }
.section.flush { padding-top: 0; }
.site-header { position: relative; z-index: 5; background: #f5eee3; color: #342820; border-bottom: 1px solid #daccb9; }
.header-row { min-height: 86px; padding-inline: 4vw; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font: 400 32px/.9 var(--serif); }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a17952; border-radius: 50%; font-size: 24px; color: #634627; }
.brand small { display: block; margin-top: 7px; font: 600 8px/1.15 "DM Sans", Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.custom-logo { width: auto; max-width: 220px; max-height: 54px; object-fit: contain; }
.menu, #primary-nav > div > ul { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px); margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.menu a:hover, .menu a[aria-current] { color: #765331; text-decoration: underline; text-underline-offset: .4em; }
.menu-toggle, .mobile-menu-title { display: none; }
.hero { position: relative; display: flex; align-items: end; min-height: clamp(620px, 77svh, 930px); margin-inline: 2vw; overflow: hidden; isolation: isolate; color: #fff; background: #28241e; }
.carousel-track, .carousel-slide, .carousel-slide img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.carousel-slide { visibility: hidden; pointer-events: none; }
.carousel-slide.is-active, .carousel-slide.is-outgoing { visibility: visible; }
.carousel-slide img { object-fit: cover; object-position: center 50%; }
.carousel-slide.from-right { animation: slide-in-right .52s ease-out both; }
.carousel-slide.from-left { animation: slide-in-left .52s ease-out both; }
.carousel-slide.to-left { animation: slide-out-left .52s ease-out both; }
.carousel-slide.to-right { animation: slide-out-right .52s ease-out both; }
@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slide-in-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slide-out-left { to { transform: translateX(-100%); visibility: hidden; } }
@keyframes slide-out-right { to { transform: translateX(100%); visibility: hidden; } }
.studio-carousel { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.34; background: #302821; }
.studio-carousel .carousel-controls { right: 12px; bottom: 12px; color: white; background: #252521; padding: 4px; }
.hero::after { content: ""; z-index: 0; background: linear-gradient(90deg,rgba(16,13,9,.78),rgba(16,13,9,.16) 85%), linear-gradient(0deg,rgba(16,13,9,.38),transparent 58%); pointer-events: none; }
.hero-copy { z-index: 1; max-width: 1140px; padding: 78px 6vw 135px; }
.hero-copy h1 { font-size: clamp(60px, 8.1vw, 126px); }
.hero-copy h1 em { color: #f2dbbb; }
.hero-copy > p:not(.eyebrow) { max-width: 440px; }
.hero-copy > * { animation: emerge .85s ease both; }
.hero-copy > :nth-child(2) { animation-delay: .13s; }
.hero-copy > :nth-child(3) { animation-delay: .27s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
@keyframes emerge { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: .76rem 1.22rem; border: 1px solid currentColor; font-weight: 600; font-size: 13px; }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-light:hover { background: #ead8bf; border-color: #ead8bf; }
.hero-controls { position: absolute; z-index: 2; right: 4vw; bottom: 26px; display: flex; align-items: center; gap: 10px; }
.hero-controls button { min-width: 44px; min-height: 44px; border: 1px solid #eee8db; background: #231c1499; color: #fff; }
.hero-controls button:hover { background: #211a13; }
.hero-controls [data-carousel-action="pause"] { min-width: 55px; font-size: 12px; }
.slide-count { padding-inline: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(36px, 8vw, 126px); }
.split p:not(.eyebrow) { max-width: 470px; }
.studio-photo, .studio-photo img { width: 100%; }
.studio-photo img, img.studio-photo { aspect-ratio: 1.3; object-fit: cover; }
.text-link { display: inline-block; color: var(--accent); font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: .26em; }
.gallery-band { background: var(--tint); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .text-link { flex-shrink: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 22px 0; }
.filters button { padding: .45rem .7rem; border: 1px solid #af9e88; background: transparent; font-size: 12px; min-height: 38px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.photo-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(5px, .8vw, 14px); }
.photo-grid a { display: block; overflow: hidden; aspect-ratio: 1; background: #d5cbbb; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-grid a:hover img { transform: scale(1.06); }
.lightbox { max-width: 94vw; max-height: 94vh; padding: 0; border: 0; background: #1d1914; color: #fff; overflow: visible; }
.lightbox::backdrop { background: #17140fdf; }
.lightbox img { max-width: min(90vw, 1050px); max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 1px solid #eee8db; background: #231c14; color: white; font-size: 25px; }
.stack { display: grid; gap: clamp(16px, 4vw, 50px); isolation: isolate; }
.stack-card { position: sticky; top: calc(18px + var(--stack-offset, 0) * 8px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; min-height: 340px; background: #e7ddce; border: 1px solid #cdbfae; box-shadow: 0 -10px 30px #33261424; }
.stack-card:nth-child(even) { background: #f0e8dd; }
.stack-card > img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 1.6; object-fit: cover; }
.stack-card > .stack-copy { align-self: center; padding: 30px clamp(26px, 5vw, 70px); }
.stack-card p { max-width: 40ch; }
.feature { position: relative; min-height: clamp(420px, 55vw, 690px); display: grid; align-items: end; color: white; background: #342a20; isolation: isolate; }
.feature img, .feature::after { position: absolute; inset: 0; height: 100%; width: 100%; }
.feature img { object-fit: cover; }
.feature::after { content: ""; z-index: 0; background: linear-gradient(82deg,#18130ee6, #18130e10 90%); }
.feature-copy { position: relative; z-index: 1; max-width: 785px; margin: 0 6vw; padding: 70px 0; }
.film-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 25px; }
.film { margin: 0; }
.film video { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: #252019; }
.film figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding-top: 9px; font-size: 13px; }
.film figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: .23em; }
.process-list { list-style-position: inside; margin: 0; padding: 0; }
.process-list li { padding-block: 20px; border-top: 1px solid #bcae9c; }
.process-list li::marker { font-size: 12px; font-weight: 600; }
.process-list h3 { display: inline; margin-left: 7px; font-size: clamp(29px, 3.2vw, 46px); }
.process-list p { margin: .5em 0 0; }
.contact-band { background: #302821; color: var(--white); }
.contact-band .section { padding-block: clamp(60px, 7vw, 106px); }
.contact-band .eyebrow { color: #e3c7a6; }
.page-heading { padding-block: clamp(48px,7vw,100px) clamp(45px,5vw,76px); }
.page-heading p { max-width: 620px; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 5vw; }
.contact-layout h2 { font-size: clamp(39px, 5vw, 70px); }
.contact-layout address { font-style: normal; margin: 1.4rem 0; line-height: 1.9; }
.contact-layout address a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map iframe { width: 100%; min-height: 360px; border: 1px solid var(--line); margin-bottom: 12px; }
.site-footer { background: #302a24; color: #f7eee3; border-top: 1px solid #55493e; padding-block: clamp(48px, 7vw, 95px) 86px; }
.footer-inner { display: grid; grid-template-columns: 1.25fr 1fr .55fr; align-items: start; gap: clamp(30px, 6vw, 92px); }
.footer-intro .eyebrow { color: #e4c599; }
.footer-heading { font-size: clamp(44px, 5vw, 72px); margin-bottom: 12px; }
.footer-intro > p:last-child, .footer-contact dd, .footer-nav li { font-size: 15px; color: #eee2d4; }
.footer-label { font: 600 13px/1.3 "DM Sans", Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; color: #e4c599; margin: 6px 0 18px; }
.footer-contact address { font-style: normal; }
.footer-contact dl { margin: 0; display: grid; gap: 14px; }
.footer-contact dt { font-size: 12px; color: #d6bda0; }
.footer-contact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.footer-contact .footer-map { display: inline-block; margin-top: 5px; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid #665747; margin-top: clamp(32px, 5vw, 62px); padding-top: 18px; color: #d6c4af; font-size: 13px; }
.floating { display: flex; justify-content: end; gap: 8px; position: fixed; z-index: 6; right: 16px; bottom: max(14px,env(safe-area-inset-bottom)); }
.floating a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 24px; box-shadow: 0 2px 9px #201a1655; font-size: 13px; font-weight: 600; }
.call { background: #1254a4; border-color: #1254a4; color: white; }
.whatsapp { background: #25d366; border-color: #25d366; color: #102c1d; }
.call:hover, .whatsapp:hover { filter: brightness(.92); }
.editable-content iframe { max-width: 100%; }
.reveal-in { animation: emerge .72s ease both; }

@media (max-width: 980px) {
    .header-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .js .menu-toggle { display: block; grid-column: 2; grid-row: 1; padding: 6px 14px; border: 1px solid #b59c7c; background: #f9f2e8; color: inherit; font-weight: 700; min-width: 70px; min-height: 44px; }
    #primary-nav { grid-column: 1 / -1; padding: 14px 0 18px; }
    .js #primary-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        inset-inline: 4vw;
        max-width: 440px;
        max-height: calc(100svh - 106px);
        margin-inline-start: auto;
        padding: clamp(20px, 5vw, 32px);
        overflow-y: auto;
        color: #35271e;
        background: #f9f2e8;
        border: 1px solid #e3d0b6;
        border-radius: 20px;
        box-shadow: 0 20px 55px #30221938;
    }
    @supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
        .js #primary-nav {
            background: linear-gradient(138deg, #fffbf0f0, #efe1cfe8);
            -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
        }
    }
    .js #primary-nav.open { display: block; }
    .mobile-menu-title { display: block; margin: 0 0 12px; color: #402b1f; font-size: clamp(33px, 7vw, 44px); }
    #primary-nav .menu, #primary-nav > div > ul { display: grid; justify-content: stretch; gap: 0; }
    #primary-nav .menu li a, #primary-nav > div > ul li a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid #74543632; color: #3d2f24; font-size: 16px; font-weight: 700; }
    #primary-nav a[aria-current="page"] { color: #6a4826; }
    #primary-nav .sub-menu { padding-inline-start: 16px; list-style: none; }
    .hero { margin-inline: 0; min-height: max(510px, 73svh); }
    .photo-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .stack-card { top: calc(12px + var(--stack-offset, 0) * 6px); }
}
@media (max-width: 600px) {
    
    .header-row { min-height: 68px; grid-template-columns: 1fr auto; padding-block: 12px; }
    .js .menu-toggle { grid-column: 2; }
    .brand { font-size: 27px; gap: 8px; }
    .brand-icon { width: 36px; height: 36px; font-size: 20px; }
    .brand small { font-size: 7px; max-width: 120px; }
    .hero-copy { padding: 56px 6vw 110px; }
    .hero-copy h1 { font-size: clamp(53px, 11.5vw, 68px); }
    .carousel-slide img { object-position: 54% center; }
    .split, .contact-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .film-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 10px; }
    .stack-card { grid-template-columns: 1fr; min-height: 0; top: calc(8px + var(--stack-offset, 0) * 4px); }
    .stack-card > img { aspect-ratio: 2.4; height: auto; }
    .stack-card > .stack-copy { padding: 20px; }
    .stack-card h3 { font-size: 34px; }
    .stack-card p { margin-bottom: .65em; }
    .map iframe { min-height: 310px; }
}
@media (max-height: 475px), (prefers-reduced-motion: reduce) {
    .stack-card { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.lead-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(28px, 7vw, 100px); }
.lead-layout > div > p { max-width: 43ch; }
.lead-form { display: grid; gap: 8px; }
.lead-form label { margin-top: 7px; font-size: 14px; font-weight: 600; }
.lead-form label span { font-weight: 400; }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%;
    min-height: 46px;
    padding: .67rem .8rem;
    background: var(--white);
    color: var(--ink);
    border: 1px solid #987e66;
    border-radius: 0;
    font: inherit;
}
.lead-form textarea { resize: vertical; }
.lead-form > p { margin: 7px 0; font-size: 13px; }
.lead-form button { justify-self: start; min-height: 44px; }
@media (max-width: 690px) {
    .lead-layout { grid-template-columns: 1fr; }
}

.gallery-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.gallery-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.gallery-previews a { display: block; overflow: hidden; aspect-ratio: 3/4; background: #ded5c8; }
.gallery-previews img { width: 100%; height: 100%; object-fit: cover; }
.gallery-previews a:hover img { opacity: .85; }
.contact-details dl { margin: 0; }
.contact-details dl div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { color: var(--accent); font-size: 13px; font-weight: 600; }
.contact-details dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.lead-form select { cursor: pointer; min-width: 0; }
@media (max-width: 720px) { .gallery-heading { grid-template-columns: 1fr; } }
@media (max-width: 375px) { .header-row { gap: 6px; } .brand-icon { display: none; } }

.inspiration-note { display: block; margin-top: 12px; font-size: 12px; color: #fff2df; }
.kitchen-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.kitchen-details img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
#space-prayer > img { object-position: center 38%; }

.lead-demo [role="status"] { margin: 0; font-weight: 600; }
.lead-demo [role="status"]:empty { display: none; }

/* Preserve the theme's section widths inside the installed Elementor layouts. */
.kc-elementor-container.e-con {
    --padding-block-start: 0px;
    --padding-block-end: 0px;
    --padding-inline-start: 0px;
    --padding-inline-end: 0px;
    --gap: 0px;
    overflow: visible;
}
