/*
Theme Name: Alder & Stone Kitchens
Theme URI: https://example.com/alder-stone-kitchens
Author: Alder & Stone Kitchens
Description: A polished, image-led WordPress theme for bespoke kitchens, bedrooms and home offices.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: alder-stone
License: GNU General Public License v2 or later
*/

:root {
  --as-ink: #18201d;
  --as-forest: #23352f;
  --as-forest-soft: #354a42;
  --as-stone: #ded8ce;
  --as-sand: #f4f1eb;
  --as-cream: #fbfaf7;
  --as-bronze: #a98051;
  --as-white: #fff;
  --as-line: rgba(24, 32, 29, .14);
  --as-shadow: 0 24px 70px rgba(20, 28, 24, .14);
  --as-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --as-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --as-wrap: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--as-ink);
  background: var(--as-cream);
  font-family: var(--as-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: var(--as-wrap); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; z-index: 99999; background: white; }

h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--as-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.35rem, 4.8vw, 4.7rem); }
h3 { font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
p { margin: 0 0 1.25em; }
.eyebrow { margin: 0 0 18px; color: var(--as-bronze); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.lead { max-width: 760px; font-family: var(--as-serif); font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.45; }
.section { padding: clamp(76px, 10vw, 138px) 0; }
.section--sand { background: var(--as-sand); }
.section--forest { color: var(--as-white); background: var(--as-forest); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 50px; }
.section-head > * { max-width: 720px; }
.section-head p { max-width: 480px; margin-bottom: .5em; }

.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--as-ink); color: var(--as-ink); background: transparent;
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-decoration: none; text-transform: uppercase;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.button:hover, .button:focus-visible { color: white; background: var(--as-ink); transform: translateY(-2px); }
.button--light { color: white; border-color: rgba(255,255,255,.65); }
.button--light:hover, .button--light:focus-visible { color: var(--as-ink); background: white; border-color: white; }
.button--filled { color: white; background: var(--as-forest); border-color: var(--as-forest); }
.button--filled:hover, .button--filled:focus-visible { background: var(--as-bronze); border-color: var(--as-bronze); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; color: white; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.site-header.is-solid, .site-header--solid { color: var(--as-ink); background: rgba(251,250,247,.96); box-shadow: 0 8px 40px rgba(12,18,15,.08); backdrop-filter: blur(14px); }
.site-header.is-solid .header-cta, .site-header--solid .header-cta { color: var(--as-ink); border-color: var(--as-ink); }
.site-header.is-solid .header-cta:hover, .site-header.is-solid .header-cta:focus-visible,
.site-header--solid .header-cta:hover, .site-header--solid .header-cta:focus-visible { color: white; background: var(--as-ink); }
.header-inner { display: grid; min-height: 84px; grid-template-columns: 240px 1fr auto; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 47px; height: 52px; flex: 0 0 47px; place-items: center; }
.brand-mark-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand-mark-logo--dark { display: none; }
.site-header.is-solid .brand-mark-logo--light, .site-header--solid .brand-mark-logo--light { display: none; }
.site-header.is-solid .brand-mark-logo--dark, .site-header--solid .brand-mark-logo--dark { display: block; }
.brand-copy { line-height: 1; }
.brand-copy strong { display: block; font-family: var(--as-serif); font-size: 1.2rem; font-weight: 500; letter-spacing: .01em; }
.brand-copy small { display: block; margin-top: 5px; font-size: .55rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.custom-logo { width: auto; max-height: 54px; }
.primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(15px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.primary-menu a { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--as-bronze); }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; color: inherit; background: transparent; border: 1px solid currentColor; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 19px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; min-height: min(900px, 100svh); display: grid; align-items: end; overflow: hidden; color: white; background: var(--as-ink); }
.hero-media, .hero-media video, .hero-media img, .inner-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .inner-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,16,13,.76) 0%, rgba(9,16,13,.28) 58%, rgba(9,16,13,.3) 100%), linear-gradient(0deg, rgba(9,16,13,.55), transparent 45%); }
.hero-content { position: relative; z-index: 2; width: var(--as-wrap); margin-inline: auto; padding: 190px 0 90px; }
.hero h1 { max-width: 980px; }
.hero .lead { max-width: 610px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1180px)/2)); bottom: 38px; font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }

.trust-strip { border-bottom: 1px solid var(--as-line); background: white; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 26px 30px; text-align: center; border-right: 1px solid var(--as-line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: var(--as-serif); font-size: 1.15rem; font-weight: 500; }
.trust-item span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.intro-copy { columns: 2; column-gap: 44px; }
.intro-copy p { break-inside: avoid; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 620px; overflow: hidden; color: white; background: var(--as-forest); text-decoration: none; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,20,16,.85), rgba(12,20,16,0) 64%); }
.service-card:hover img { transform: scale(1.035); }
.service-card-content { position: absolute; z-index: 2; inset: auto 30px 28px; }
.service-card-content span { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.service-card-content h3 { margin: 8px 0 0; font-size: clamp(2rem, 3vw, 3rem); }

.feature-split { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 720px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(55px, 8vw, 110px); color: white; background: var(--as-forest); }
.feature-copy .lead { margin-bottom: 34px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: process; border-top: 1px solid rgba(255,255,255,.25); }
.process-item { min-height: 290px; padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.25); counter-increment: process; }
.process-item:last-child { border-right: 0; }
.process-item::before { content: "0" counter(process); display: block; margin-bottom: 55px; color: var(--as-bronze); font-family: var(--as-serif); font-size: 1.35rem; }
.process-item p { color: rgba(255,255,255,.72); font-size: .94rem; }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.journal-card { border-top: 1px solid var(--as-line); padding-top: 22px; }
.journal-card time { color: var(--as-bronze); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.journal-card h3 { margin-top: 17px; font-size: 1.7rem; }
.journal-card a { text-decoration: none; }

.appointment { position: relative; overflow: hidden; background: var(--as-stone); }
.appointment-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.appointment-details { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--as-line); }
.appointment-details li { padding: 16px 0; border-bottom: 1px solid var(--as-line); }
.appointment-details strong { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 0; color: var(--as-ink); background: transparent; border: 0; border-bottom: 1px solid rgba(24,32,29,.5); border-radius: 0; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--as-bronze); box-shadow: 0 1px var(--as-bronze); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: rgba(24,32,29,.7); }
.form-status { padding: 14px 16px; margin-bottom: 26px; border-left: 3px solid var(--as-bronze); background: rgba(255,255,255,.5); }
.hp-field { position: absolute !important; left: -10000px !important; }

.inner-hero { position: relative; min-height: 560px; display: grid; align-items: end; overflow: hidden; color: white; background: var(--as-ink); }
.inner-hero-content { position: relative; z-index: 2; width: var(--as-wrap); margin-inline: auto; padding: 180px 0 70px; }
.inner-hero h1 { max-width: 850px; font-size: clamp(3.4rem, 7vw, 6.5rem); }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 80px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.1em; }
.entry-content img { height: auto; }
.sidebar-card { padding: 30px; background: var(--as-sand); }
.sidebar-card h3 { font-size: 1.55rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { position: relative; min-height: 520px; overflow: hidden; color: white; background: var(--as-forest); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.project-card:hover img { transform: scale(1.03); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,16,13,.8), transparent 58%); }
.project-card-content { position: absolute; z-index: 2; inset: auto 28px 26px; }
.project-card-content h2 { font-size: 2rem; }
.project-card-content a { text-decoration: none; }
.post-list { display: grid; gap: 34px; }
.post-card { padding-bottom: 34px; border-bottom: 1px solid var(--as-line); }
.post-card h2 { font-size: 2.2rem; }
.post-card h2 a { text-decoration: none; }
.pagination { margin-top: 48px; }

.site-footer { color: rgba(255,255,255,.75); background: #121815; }
.footer-cta { padding: 42px 0; color: white; background: var(--as-bronze); }
.footer-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-cta h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.1rem); }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: 50px; padding: 72px 0; }
.footer-main h3 { color: white; font-family: var(--as-sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-main ul { margin: 0; padding: 0; list-style: none; }
.footer-main li { margin-bottom: 7px; }
.footer-main a { text-decoration: none; }
.footer-main a:hover { color: white; }
.footer-brand { max-width: 310px; }
.footer-brand-logo { display: block; width: min(220px, 80%); margin-bottom: 22px; }
.footer-brand-logo img { width: 100%; height: auto; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 20px 24px 30px; color: var(--as-ink); background: var(--as-cream); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: grid; justify-content: stretch; gap: 0; }
  .primary-menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--as-line); }
  .intro-grid, .appointment-grid { grid-template-columns: 1fr; }
  .intro-copy { columns: 1; max-width: 760px; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-media { min-height: 550px; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --as-wrap: min(100% - 32px, 1180px); }
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .brand-copy small { display: none; }
  .header-cta { display: none; }
  .hero { min-height: 780px; }
  .hero-content { padding: 150px 0 70px; }
  .hero-note { display: none; }
  .hero-media video { display: none; }
  .section-head { display: block; }
  .service-grid, .journal-grid, .project-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 540px; }
  .trust-strip .wrap { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--as-line); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item:nth-child(2) { border-right: 0; }
  .process-item { min-height: 250px; border-bottom: 1px solid rgba(255,255,255,.25); }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .content-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-cta .wrap, .footer-bottom .wrap { display: block; }
  .footer-cta .button { margin-top: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .brand-mark { width: 40px; height: 44px; flex-basis: 40px; }
  .brand-copy strong { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .process-grid, .footer-main { grid-template-columns: 1fr; }
  .process-item { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-media video { display: none; }
}
