/* ============================================================
   SORTERLY — shared design system
   ============================================================ */
:root {
    --bg: #F7F3EC;          /* cream */
    --bg-warm: #EFE7DA;     /* sand */
    --bg-deep: #2A2520;     /* espresso */
    --text: #2D2823;
    --text-soft: #6E6356;
    --line: #E3DACA;
    --accent: #9C8369;      /* clay */
    --accent-dark: #6F5C49; /* mocha */
    --gold: #A88A66;
    --white: #FFFFFF;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans); font-weight: 400; color: var(--text);
    background: var(--bg); line-height: 1.75; font-size: 16px;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 22px; }
.eyebrow.light { color: rgba(255,255,255,0.85); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(34px, 4.6vw, 56px); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; padding: 17px 38px; border-radius: 2px; transition: all .35s ease; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--text); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: #fff; color: var(--text); }

/* ---------- Nav ---------- */
#nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background .4s ease, box-shadow .4s ease; padding: 10px 0; }
#nav.scrolled { background: rgba(247,243,236,0.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 58px; width: auto; filter: brightness(0) invert(1); transition: filter .4s ease; }
#nav.scrolled .nav-logo img { filter: none; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a { font-size: 12.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,0.92); transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
#nav.scrolled .nav-links a { color: var(--text-soft); }
#nav.scrolled .nav-links a:hover, #nav.scrolled .nav-links a.active { color: var(--accent-dark); }
.nav-links a.nav-cta { border: 1px solid rgba(255,255,255,0.6); padding: 12px 26px; border-radius: 2px; color: #fff; }
.nav-links a.nav-cta:hover { background: #fff; color: var(--text); }
#nav.scrolled .nav-links a.nav-cta { border-color: var(--accent-dark); color: var(--accent-dark); }
#nav.scrolled .nav-links a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }
#nav.scrolled .nav-toggle span { background: var(--text); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('images/about-hero.jpg') center/cover no-repeat; transform: scale(1.05); }
/* Banner is bright + airy, so keep the scrim light to let it glow; text-shadows below carry legibility. */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,0.42) 0%, rgba(20,15,10,0) 22%), linear-gradient(100deg, rgba(26,21,16,0.64) 0%, rgba(34,27,21,0.38) 48%, rgba(34,27,21,0.10) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 40px; width: 100%; }
.hero-content { max-width: 680px; }
.hero .eyebrow.light { text-shadow: 0 1px 14px rgba(18,12,6,0.55); }
.hero h1 { font-size: clamp(52px, 8vw, 104px); font-weight: 500; line-height: 1.02; letter-spacing: -0.5px; text-shadow: 0 2px 30px rgba(18,12,6,0.58); }
.hero h1 em { font-style: italic; color: #fff; }
.hero p { font-size: 19px; font-weight: 300; line-height: 1.8; margin: 28px 0 40px; max-width: 540px; color: rgba(255,255,255,0.92); text-shadow: 0 1px 18px rgba(18,12,6,0.55); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: rgba(255,255,255,0.5); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; padding-bottom: 72px; }
.ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.ph-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,23,18,0.82) 0%, rgba(34,28,22,0.5) 50%, rgba(34,28,22,0.35) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 82px); font-weight: 500; }
.page-hero h1 em { font-style: italic; }
.page-hero p { max-width: 580px; margin-top: 18px; color: rgba(255,255,255,0.9); font-weight: 300; font-size: 18px; }

/* ---------- Section heads / intro ---------- */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 70px; }
.section-head p { color: var(--text-soft); font-weight: 300; font-size: 17px; margin-top: 14px; }
.intro { padding: 130px 0; text-align: center; }
.intro .inner { max-width: 820px; margin: 0 auto; }
.intro h2 { margin-bottom: 26px; }
.intro p { font-size: 19px; font-weight: 300; color: var(--text-soft); line-height: 1.9; }
.intro .rule { width: 56px; height: 1px; background: var(--gold); margin: 40px auto 0; }

/* ---------- Services cards ---------- */
.services { padding: 40px 0 130px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.svc-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s ease, box-shadow .4s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(60,50,40,0.13); }
.svc-img { aspect-ratio: 4/3; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 32px 30px 36px; }
.svc-body .num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); }
.svc-body h3 { font-size: 27px; margin: 6px 0 12px; }
.svc-body p { font-size: 15px; color: var(--text-soft); font-weight: 300; line-height: 1.8; }
.svc-link { display: inline-block; margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-dark); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* ---------- Service detail rows (services page) ---------- */
.svc-detail { padding: 110px 0; }
.svc-detail + .svc-detail { padding-top: 0; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.svc-row.reverse .svc-row-img { order: 2; }
.svc-row-img img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.svc-row-text h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.svc-row-text p { color: var(--text-soft); font-weight: 300; line-height: 1.9; margin-bottom: 16px; }
.svc-row-text .price { display: inline-block; margin-top: 8px; font-family: var(--serif); font-size: 26px; color: var(--accent-dark); }
.svc-row-text .price span { font-family: var(--sans); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); display: block; margin-top: 2px; }
.svc-incl { list-style: none; margin: 18px 0 8px; }
.svc-incl li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 15px; color: var(--text-soft); }
.svc-incl li::before { content: ''; position: absolute; left: 0; top: 11px; width: 11px; height: 11px; border: 1px solid var(--gold); border-radius: 50%; }

/* ---------- Feature (alternating) ---------- */
.feature { background: var(--bg-warm); padding: 120px 0; }
.feature .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature.reverse .feature-img { order: 2; }
.feature-img { position: relative; }
.feature-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.feature-img .tag { position: absolute; bottom: -26px; right: -26px; background: var(--bg-deep); color: #fff; padding: 26px 30px; max-width: 230px; }
.feature-img .tag .big { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.feature-img .tag .small { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 6px; }
.feature-text h2 { margin-bottom: 24px; }
.feature-text p { color: var(--text-soft); font-weight: 300; margin-bottom: 18px; line-height: 1.9; }
.feature-text .btn { margin-top: 18px; }

/* ---------- Process / steps ---------- */
.process { padding: 130px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 30px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step .n { font-family: var(--serif); font-size: 64px; color: var(--line); line-height: 1; }
.step h3 { font-size: 25px; margin: 10px 0 12px; }
.step p { color: var(--text-soft); font-weight: 300; font-size: 15px; line-height: 1.8; }

/* ---------- Values ---------- */
.values { padding: 130px 0; background: var(--bg-warm); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); padding: 40px 34px; }
.value-card .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--accent-dark); margin-bottom: 20px; }
.value-card h3 { font-size: 24px; margin-bottom: 10px; }
.value-card p { color: var(--text-soft); font-weight: 300; font-size: 15px; line-height: 1.8; }

/* ---------- Team ---------- */
.team { padding: 130px 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; max-width: 880px; margin: 20px auto 0; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1/1; overflow: hidden; border-radius: 50%; max-width: 280px; margin: 0 auto 26px; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .ph { font-size: 13px; color: var(--text-soft); letter-spacing: 1px; }
.team-card h3 { font-size: 28px; }
.team-card .role { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 4px 0 14px; }
.team-card p { color: var(--text-soft); font-weight: 300; font-size: 15px; line-height: 1.8; }

/* ---------- Gallery ---------- */
.gallery { padding: 0 0 130px; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.gal-grid figure { overflow: hidden; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.gal-grid figure:hover img { transform: scale(1.07); }
.gal-grid .tall { grid-row: span 2; }
.gal-grid .wide { grid-column: span 2; }

/* ---------- Testimonials ---------- */
.testi { background: var(--bg-warm); padding: 130px 0; }
.ti-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 20px; }
.ti-card { background: #fff; padding: 44px 36px; border: 1px solid var(--line); flex: 0 1 calc((100% - 64px) / 3); display: flex; flex-direction: column; }
.ti-card .quote { font-family: var(--serif); font-size: 70px; line-height: .6; color: var(--gold); }
.ti-card p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.55; color: var(--text); margin: 14px 0 26px; }
.ti-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ti-mono { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-warm); color: var(--accent-dark); font-family: var(--serif); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.ti-name { font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.ti-loc { font-size: 12px; color: var(--text-soft); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { padding: 130px 0; }
.faq-list { max-width: 820px; margin: 10px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: 23px; color: var(--text); }
.faq-q .pm { font-family: var(--sans); font-size: 22px; color: var(--gold); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 0 26px; color: var(--text-soft); font-weight: 300; line-height: 1.85; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); padding: 46px 44px; }
.form-card h3 { font-size: 30px; margin-bottom: 8px; }
.form-card .sub { color: var(--text-soft); font-weight: 300; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
    padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg);
    transition: border-color .25s, box-shadow .25s;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156,131,105,0.15); }
.form-submit { width: 100%; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; padding: 18px; border: 0; border-radius: 2px; background: var(--accent-dark); color: #fff; cursor: pointer; transition: background .3s; }
.form-submit:hover { background: var(--text); }
.form-submit:disabled { opacity: .7; cursor: default; }
.form-note { font-size: 12.5px; color: var(--text-soft); text-align: center; margin-top: 16px; font-weight: 300; }

/* ---------- Contact layout ---------- */
.contact-sec { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--text-soft); font-weight: 300; line-height: 1.9; margin-bottom: 34px; }
.ci-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.ci-item .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--bg-warm); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.ci-item .lbl { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.ci-item .val { font-size: 16px; color: var(--text); }
.ci-item .val a:hover { color: var(--accent-dark); }

/* ---------- CTA band ---------- */
.cta { position: relative; padding: 150px 0; text-align: center; color: #fff; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-ov { position: absolute; inset: 0; background: rgba(35,29,23,0.78); }
.cta .inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 22px; }
.cta p { font-weight: 300; font-size: 18px; color: rgba(255,255,255,0.88); margin-bottom: 40px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-deep); color: rgba(255,255,255,0.62); padding: 80px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 64px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.foot-brand p { font-weight: 300; font-size: 14px; max-width: 280px; line-height: 1.8; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.foot-col a, .foot-col p { display: block; font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.62); margin-bottom: 12px; transition: color .3s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 60px; padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; letter-spacing: .5px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .feature .grid, .svc-row { grid-template-columns: 1fr; gap: 50px; }
    .svc-row.reverse .svc-row-img { order: 0; }
    .feature.reverse .feature-img { order: 0; }
    .feature-img .tag { right: 20px; bottom: -20px; }
    .svc-grid, .steps, .ti-grid, .values-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .ti-card { flex-basis: 100%; }
    .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
    .wrap, .nav-inner, .hero-inner { padding-left: 24px; padding-right: 24px; }
    .nav-links { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px; transform: translateX(100%); transition: transform .4s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
    .nav-links.open { transform: none; }
    .nav-links a { color: var(--text-soft) !important; font-size: 14px; }
    .nav-links a.nav-cta { border-color: var(--accent-dark); color: var(--accent-dark) !important; }
    .nav-toggle { display: block; z-index: 1001; }
    /* On mobile, drop the scrolled backdrop-filter: it creates a containing
       block that traps the fixed full-screen menu inside the nav bar height,
       cutting the menu off. A solid bar avoids the bug. */
    #nav.scrolled { background: #F7F3EC; backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
    .nav-links { z-index: 1000; }
    /* Wide hero photo on a tall phone screen: shift the crop right so the
       organizing action (open cabinet) stays in frame instead of dead-center. */
    .hero { min-height: 100svh; }
    .hero-bg { background-position: 62% center; }
    .hero p { font-size: 17px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 32px 24px; }
    section, .intro, .services, .feature, .process, .testi, .cta, .values, .team, .faq, .contact-sec, .svc-detail { padding-top: 80px; padding-bottom: 80px; }
    .foot-grid { grid-template-columns: 1fr; }
}
