/* Gayle's Drapery & Blinds */

:root {
  --paper: #f7f5f1;
  --paper-deep: #efebe4;
  --ink: #2b2926;
  --ink-soft: #46433e;
  --muted: #6e6a64;
  --line: #e0dbd3;
  --sage: #9bc4b5;
  --sage-deep: #4f7a6b;
  --white: #ffffff;

  --font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--white);
  text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage-deep);
}

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}

.logo { display: block; flex: none; }
.logo img { width: 300px; }

.nav-list {
  display: flex; gap: clamp(18px, 2.6vw, 38px);
  margin: 0; padding: 0; list-style: none;
}
.nav-list a {
  position: relative; display: block; padding: 8px 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; white-space: nowrap;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.nav-toggle-bars { position: relative; width: 22px; height: 12px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 10px; }
.nav-open .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header-inner { min-height: 68px; }
  .logo img { width: 220px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: 68px 0 0 0; z-index: 19;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .js .nav-open .site-nav { opacity: 1; visibility: visible; }
  .js .nav-list { flex-direction: column; gap: 0; padding: 12px var(--gutter) 0; }
  .js .nav-list li { border-bottom: 1px solid var(--line); }
  .js .nav-list a {
    padding: 20px 0; font-size: 26px; font-weight: 300;
    letter-spacing: 0.01em; text-transform: none;
  }
  .js .nav-list a::after { bottom: 14px; width: 40px; right: auto; }
  .no-js .header-inner { flex-direction: column; padding: 18px 0; }
  .no-js .nav-list { flex-wrap: wrap; justify-content: center; }
}

/* Page intro */

.intro { padding: clamp(48px, 9vw, 120px) 0 clamp(36px, 6vw, 72px); }
.intro h1 {
  margin-top: 18px;
  font-size: clamp(40px, 7vw, 84px); font-weight: 300;
  line-height: 1.02; letter-spacing: -0.02em;
}
.intro .lede {
  max-width: 34em; margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(19px, 1.8vw, 23px); font-weight: 300; line-height: 1.55; color: var(--ink-soft);
}

/* Home */

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px);
}
.hero-text h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4.4vw, 56px); font-weight: 300;
  line-height: 1.08; letter-spacing: -0.015em;
}
.hero-text p:not(.eyebrow) {
  margin-top: 26px; max-width: 30em;
  font-size: 19px; font-weight: 300; line-height: 1.65; color: var(--ink-soft);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
}

.services { padding: clamp(56px, 8vw, 112px) 0; background: var(--paper-deep); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.1;
}

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card { display: block; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 0;
  font-size: 21px; font-weight: 400;
}
.card-label .arrow { transition: transform 0.35s var(--ease); color: var(--sage-deep); }
.card:hover .card-label .arrow { transform: translateX(6px); }
@media (max-width: 760px) { .card-media { aspect-ratio: 16 / 10; } }

/* Gallery */

.gallery { margin: 0; }
.gallery + .gallery { margin-top: clamp(64px, 9vw, 120px); }

.gallery-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.gallery-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; }

.gallery-frame { position: relative; }

.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  background: var(--line);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -2px; }

.gallery-slide {
  flex: 0 0 100%; margin: 0; scroll-snap-align: start;
  aspect-ratio: 723 / 404;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px;
}
.gallery-count {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gallery-count .current { color: var(--ink); }

.gallery-buttons { display: flex; gap: 8px; }
.gallery-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--ink); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.gallery-btn:hover { background: var(--ink); color: var(--paper); }
.gallery-btn[disabled] { opacity: 0.3; cursor: default; background: transparent; color: var(--ink); }
.gallery-btn svg { width: 18px; height: 18px; }
.no-js .gallery-buttons { display: none; }

.gallery-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px; margin: 16px 0 0; padding: 0; list-style: none;
}
.gallery-thumbs button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  aspect-ratio: 723 / 404; overflow: hidden;
  opacity: 0.5; transition: opacity 0.3s var(--ease);
}
.gallery-thumbs button:hover { opacity: 0.85; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--sage); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.no-js .gallery-thumbs { display: none; }
@media (max-width: 560px) { .gallery-thumbs { display: none; } }

/* Content sections */

.content { padding-bottom: clamp(72px, 10vw, 140px); }
.content-narrow { max-width: 900px; }

/* Contact */

.contact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.contact-item { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.contact-item + .contact-item { padding-left: clamp(24px, 4vw, 48px); border-left: 1px solid var(--line); }
.contact-item a {
  display: inline-block; margin-top: 12px;
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 300; letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--sage), var(--sage)) left bottom / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.contact-item a:hover { background-size: 100% 2px; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item + .contact-item { padding-left: 0; border-left: 0; }
}

.cta {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--ink); color: var(--paper);
}
.cta .eyebrow { color: var(--sage); }
.cta h2 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 64px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05;
}
.cta-links { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; }
.cta-links a {
  font-size: clamp(19px, 2vw, 24px); font-weight: 300; text-decoration: none;
  border-bottom: 1px solid rgba(155, 196, 181, 0.6); padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cta-links a:hover { color: var(--sage); border-bottom-color: var(--sage); }

/* Footer */

.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.cta + .site-footer { border-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-inner img { width: 240px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img, .card-label .arrow { transition: none; }
}
