/*
Theme Name: KSR Contractor
Author: KSR & Co.
Description: Bespoke residential contractor theme for KSR & Co., with a project portfolio, project galleries and premium residential construction presentation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ksr-contractor
*/

:root{
  --ink:#131313;
  --muted:#66615b;
  --paper:#f5f1eb;
  --paper-2:#ede6dc;
  --line:#ddd4c8;
  --card:#faf7f3;
  --dark:#0f0f10;
  --dark-2:#171819;
  --max:1320px;
  --radius:28px;
  --shadow:0 24px 70px rgba(20,18,16,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{width:min(var(--max),92vw);margin:auto}
.label{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:10px;padding:15px 22px;border-radius:999px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;transition:.25s ease;border:0;cursor:pointer}
.btn-dark{background:var(--dark);color:#fff}.btn-dark:hover{background:#262729}
.btn-light{border:1px solid rgba(255,255,255,.45);color:#fff;background:rgba(255,255,255,.08);backdrop-filter:blur(6px)}
.btn-light:hover{background:rgba(255,255,255,.16)}
.btn-outline{border:1px solid var(--line);background:#fff}.btn-outline:hover{border-color:#b5aa9b;transform:translateY(-1px)}
.arrow::after{content:'↗';font-size:14px;transform:translateY(-1px)}

/* Header */
.site-header{position:absolute;z-index:30;top:0;left:0;right:0;padding:0;color:#fff;background:linear-gradient(to bottom,rgba(0,0,0,.56) 0%,rgba(0,0,0,.27) 58%,rgba(0,0,0,0) 100%)}
.site-header.dark{position:sticky;top:0;background:#0d0d0e;color:#fff;border-bottom:1px solid rgba(255,255,255,.09)}
.navbar{display:flex;align-items:center;justify-content:space-between;padding:24px 0 20px;border-bottom:1px solid rgba(255,255,255,.24)}
.site-header.dark .navbar{border-color:rgba(255,255,255,.09)}
.brand-wrap{display:flex;align-items:center;width:146px;flex-shrink:0}
.brand-logo,.brand-wrap img,.custom-logo{display:block;width:132px;height:auto;max-height:none;object-fit:contain}
.navlinks{display:flex;gap:30px;font-size:12px;letter-spacing:.11em;text-transform:uppercase;font-weight:600}
.navlinks a{opacity:.9}.navlinks a:hover{opacity:1}
.navlinks .menu-list{display:flex;gap:30px;list-style:none;margin:0;padding:0}.navlinks .menu-list li{margin:0;padding:0}
.menu-toggle{display:none;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.18);color:#fff;border-radius:999px;padding:9px 13px;font-size:11px;letter-spacing:.12em;text-transform:uppercase}

/* Hero */
.hero{min-height:100vh;position:relative;display:flex;align-items:flex-end;color:#fff;background:linear-gradient(90deg,rgba(8,8,8,.65),rgba(8,8,8,.16)),url('assets/generated/wide_photorealistic_high_end_interior_living_roo_1_batch_1.jpg') center/cover no-repeat}
.hero::after{content:'';position:absolute;left:0;right:0;bottom:0;height:28vh;background:linear-gradient(to top,rgba(0,0,0,.42),transparent)}
.hero .content{position:relative;z-index:1;padding:128px 0 11vh}
.eyebrow{font-size:12px;letter-spacing:.2em;text-transform:uppercase;margin-bottom:18px;opacity:.92}
.hero h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(50px,8vw,104px);line-height:.94;max-width:980px;margin:0}
.hero p{font-size:18px;line-height:1.7;max-width:640px;margin:26px 0 0;color:#f0efec}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}

/* About */
.intro{padding:104px 0;background:var(--paper)}
.intro-grid{display:grid;grid-template-columns:170px minmax(0,1fr);gap:64px;align-items:start}
.about-copy{max-width:860px}
.intro .about-copy h2{max-width:820px;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(44px,4.35vw,64px);line-height:1.12;letter-spacing:-.025em;text-wrap:balance;margin:0}
.intro .about-copy>p{max-width:760px;margin:28px 0 0;font-size:17px;line-height:1.82;color:#4b4945}
.founder-panel{margin-top:54px;display:grid;grid-template-columns:minmax(280px,.74fr) minmax(0,1.26fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:24px;overflow:hidden}
.founder-title,.founder-copy{background:#fff;padding:40px 42px}
.founder-title{display:flex;flex-direction:column;justify-content:space-between;min-height:288px}
.founder-title h3{font-family:Georgia,'Times New Roman',serif;font-size:42px;font-weight:400;line-height:1.08;margin:12px 0 0}
.founder-role{font-size:11px;letter-spacing:.135em;text-transform:uppercase;color:var(--muted);line-height:1.9;margin-top:18px;max-width:360px}
.founder-copy{display:flex;flex-direction:column;justify-content:center}
.founder-copy p{font-size:16px;line-height:1.86;color:#4e4a45;margin:0 0 18px;max-width:780px}.founder-copy p:last-child{margin-bottom:0}.founder-copy strong{font-weight:600;color:#26221e}
.expertise-row{display:flex;gap:0;flex-wrap:wrap;margin-top:30px;border-top:1px solid var(--line);padding-top:20px}
.expertise-row span{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#5c5751;padding-right:18px;margin-right:18px;border-right:1px solid var(--line)}.expertise-row span:last-child{border-right:0;margin-right:0;padding-right:0}
.services{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:64px}
.service{background:#fff;padding:26px;border-radius:20px;box-shadow:0 8px 28px rgba(24,20,16,.04)}
.service .n{font-size:11px;color:var(--muted);margin-bottom:30px}.service h3{font-size:18px;margin:0 0 12px;font-weight:500}.service p{font-size:13px;line-height:1.65;margin:0;color:var(--muted)}

/* Feature content */
.feature-band{padding:110px 0}
.feature-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:stretch}
.feature-card{border-radius:var(--radius);overflow:hidden;position:relative;min-height:600px;box-shadow:var(--shadow)}
.feature-card.image{background:#ddd center/cover no-repeat}.feature-card.overlay::before{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,.08))}
.feature-card .inner{position:absolute;left:34px;right:34px;bottom:34px;color:#fff;z-index:1}.feature-card .inner h3{font-family:Georgia,'Times New Roman',serif;font-size:42px;line-height:1.02;font-weight:400;margin:12px 0}.feature-card .inner p{max-width:460px;color:rgba(255,255,255,.88);line-height:1.7;font-size:15px;margin:0}
.feature-stack{display:grid;grid-template-rows:1fr 1fr;gap:24px}
.mini-card{background:var(--card);border-radius:var(--radius);padding:34px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 12px 30px rgba(24,20,16,.05)}
.mini-card h3{font-family:Georgia,'Times New Roman',serif;font-size:34px;line-height:1.04;font-weight:400;margin:10px 0 16px}.mini-card p{font-size:15px;line-height:1.75;color:#59554f;max-width:520px}
.mini-card.image-card{padding:0;overflow:hidden;position:relative;background:#eee center/cover no-repeat}.mini-card.image-card::before{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,.06))}
.mini-card.image-card .overlay-text{position:absolute;left:28px;right:28px;bottom:28px;color:#fff;z-index:1}.mini-card.image-card .overlay-text h3{font-size:32px;margin:8px 0 12px}.mini-card.image-card .overlay-text p{color:rgba(255,255,255,.88)}

/* Projects */
.projects-home{padding:50px 0 110px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:34px}.section-head h2{font-family:Georgia,'Times New Roman',serif;font-size:56px;font-weight:400;margin:0}.section-head p{max-width:460px;color:var(--muted);font-size:14px;line-height:1.7;margin:0}
.home-single-project{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:stretch}.home-single-project .teaser{height:100%}
.teaser{background:#fff;border-radius:var(--radius);padding:30px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:22px}.teaser .meta{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}.teaser h3{font-family:Georgia,'Times New Roman',serif;font-size:42px;font-weight:400;margin:8px 0 12px}.teaser p{line-height:1.75;font-size:15px;color:#55524d;margin:0}.teaser .thumb{border-radius:20px;overflow:hidden;aspect-ratio:16/10;background:#ddd center/cover no-repeat}

/* Process */
.process{background:var(--dark);color:#fff;padding:110px 0}.process h2{font-family:Georgia,'Times New Roman',serif;font-size:56px;font-weight:400;margin:0 0 26px}.process .lede{max-width:560px;color:#b8b8b8;line-height:1.8;margin-bottom:48px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.step{background:var(--dark-2);padding:28px;border-radius:22px;border:1px solid rgba(255,255,255,.05)}.step .num{color:#a7a7a7;font-size:11px;margin-bottom:40px}.step h3{font-size:20px;font-weight:500;margin:0 0 14px}.step p{color:#bdbdbd;line-height:1.72;font-size:13px;margin:0}

/* Contact */
.cta-section{padding:120px 0 96px;background:var(--paper-2)}.cta-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:10vw;align-items:end}.cta-section h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(48px,6vw,82px);font-weight:400;line-height:1.01;margin:14px 0 0}.cta-section p{line-height:1.8;color:#4f4b46;max-width:520px}

/* Project archive */
.page-hero{padding:180px 0 100px;background:linear-gradient(180deg,#f7f2ec,#fff 70%)}.page-hero .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:42px;align-items:center}.page-hero h1{font-size:clamp(44px,6vw,86px);line-height:.98;margin:16px 0 18px;font-weight:400;font-family:Georgia,'Times New Roman',serif}.page-hero p{font-size:17px;line-height:1.8;color:#514d47;max-width:620px}.page-hero .ph-image{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.cards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;padding-bottom:100px}.project-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.project-card .cover{aspect-ratio:16/11;background:#ddd center/cover no-repeat}.project-card .copy{padding:28px}.project-card .meta{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}.project-card h3{font-family:Georgia,'Times New Roman',serif;font-size:40px;font-weight:400;margin:10px 0 14px}.project-card p{font-size:15px;line-height:1.75;color:#55524d;margin:0 0 18px}

/* Single project */
.project-hero{position:relative;min-height:82vh;color:#fff;display:flex;align-items:flex-end;background-position:center;background-size:cover}.project-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,7,7,.56),rgba(7,7,7,.18))}.project-hero::after{content:'';position:absolute;left:0;right:0;bottom:0;height:24vh;background:linear-gradient(to top,rgba(0,0,0,.42),transparent)}.project-hero .content{position:relative;z-index:1;padding:0 0 9vh}.project-hero h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(48px,7vw,92px);line-height:.96;margin:10px 0 18px}.project-hero p{max-width:670px;color:#f1f1ee;line-height:1.8;font-size:17px}
.project-summary{padding:90px 0 56px;background:#fff}.summary-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:6vw;align-items:start}.summary-grid h2{font-family:Georgia,'Times New Roman',serif;font-size:48px;font-weight:400;margin:0 0 14px}.summary-grid p{font-size:16px;line-height:1.85;color:#4f4b46}.info-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:22px}.info-item{padding:18px 20px;border-radius:18px;background:var(--card)}.info-item span{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}.info-item strong{font-size:16px;font-weight:500}.gallery-section{padding:26px 0 110px}.gallery-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}.gallery-grid figure{margin:0;border-radius:22px;overflow:hidden;background:#ddd;box-shadow:0 10px 26px rgba(20,18,16,.06)}.gallery-grid img{width:100%;height:100%;object-fit:cover}.span-7{grid-column:span 7}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-4{grid-column:span 4}.span-8{grid-column:span 8}.span-12{grid-column:span 12}.caption-strip{padding:24px 0 0;color:var(--muted);font-size:14px;line-height:1.7}

/* Generic content */
.content-page{padding:150px 0 100px}.content-page h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(46px,6vw,76px);font-weight:400;margin:0 0 30px}.content-page .entry{max-width:820px;line-height:1.8;color:#4f4b46}

/* Footer */
.site-footer{background:#111;color:#ccc;padding:28px 0}.foot{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.site-footer .brand-logo,.site-footer .custom-logo{width:98px;height:auto}

@media(max-width:1080px){
  .feature-grid,.page-hero .grid,.summary-grid,.cta-grid,.intro-grid{grid-template-columns:1fr}
  .services,.steps{grid-template-columns:repeat(2,1fr)}
  .cards-grid{grid-template-columns:1fr}
  .home-single-project{grid-template-columns:1fr}
  .intro-grid{gap:22px}.founder-panel{grid-template-columns:1fr}.founder-title{min-height:auto}
}
@media(max-width:800px){
  .site-header .navbar{padding:18px 0 16px}.brand-wrap{width:112px}.brand-logo,.brand-wrap img,.custom-logo{width:104px;height:auto}
  .navlinks{display:none;position:absolute;top:82px;left:4vw;right:4vw;background:#111;padding:20px;border-radius:18px;flex-direction:column;gap:16px;box-shadow:0 18px 50px rgba(0,0,0,.3)}.navlinks.is-open{display:flex}.navlinks .menu-list{flex-direction:column;gap:16px}.menu-toggle{display:block}
  .hero{min-height:88vh}.hero .content{padding-top:105px}.hero h1{max-width:700px}
  .intro{padding:76px 0 82px}.intro .about-copy h2{font-size:clamp(38px,11vw,52px);line-height:1.1}.founder-title,.founder-copy{padding:30px}.founder-title h3{font-size:34px}
  .services,.steps,.info-list{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr}.gallery-grid figure,.span-7,.span-5,.span-6,.span-4,.span-8,.span-12{grid-column:span 1}
  .section-head{display:block}.section-head p{margin-top:14px}.feature-card{min-height:420px}.feature-stack{grid-template-rows:auto auto}.foot{flex-direction:column;align-items:flex-start}
}
