/* ============================================================
   THE RUG ATELIER — style.css
   Premium brand website
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-white:       #ffffff;
  --color-off-white:   #f7f5f2;
  --color-light-grey:  #ede9e4;
  --color-mid-grey:    #b0a99f;
  --color-dark:        #1c1a18;
  --color-charcoal:    #2e2b28;
  --color-accent:      #4aadaa;
  --color-accent-dark: #317d7b;
  --color-warm:        #8c7b6b;

  --font-display: "Futura", "Avenir Next", "Avenir", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Avenir", "Avenir Next", "Futura", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1100px;
  --nav-height: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-off-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; }

p {
  font-size: 1rem;
  line-height: 1.78;
  color: #5a4d43;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74,173,170,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
}
.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 64px;
  width: auto;
  transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: color 0.25s;
}

.nav.scrolled .nav-links a {
  color: var(--color-charcoal);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--color-accent); }
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-charcoal);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--color-white);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  z-index: 999;
  flex-direction: column;
  gap: 1.6rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-light-grey);
  padding-bottom: 1.2rem;
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/images/product7.jpeg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.82);
  transform: scale(1.06);
  animation: heroZoom 12s var(--ease-out) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(28,26,24,0.45) 0%,
    rgba(28,26,24,0.1) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: 0.2s;
}

.hero-logo {
  width: 120px;
  margin-bottom: 1.2rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  border-radius: 4px;
}

.hero h1 {
  color: var(--color-white);
  max-width: 640px;
  margin-bottom: 1.4rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: 0.3s;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero-tagline {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.4rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: 0.45s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: 0.6s;
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll {
  display: none;
}

/* ============================================================
   SHOWCASE SECTION
   ============================================================ */
.showcase {
  padding: 7rem 0;
  background: var(--color-off-white);
}

.showcase-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}
.showcase-header .eyebrow { justify-content: center; }
.showcase-header .section-label { justify-content: center; }
.showcase-header h2 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}
.showcase-header p {
  max-width: 500px;
  margin-inline: auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 320px 220px;
  gap: 10px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.showcase-item {
  overflow: hidden;
  position: relative;
}
.showcase-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.showcase-item:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.showcase-item:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.showcase-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.showcase-item:hover img { transform: scale(1.05); }

.showcase-caption {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s var(--ease-out);
}
.showcase-item:hover .showcase-caption { opacity: 1; transform: translateY(0); }

/* ============================================================
   BRAND VALUES
   ============================================================ */
.values {
  padding: 7rem 0;
  background: var(--color-white);
}

.values-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.values-header {
  max-width: 560px;
  margin-bottom: 4.5rem;
}
.values-header .section-label { margin-bottom: 1.2rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value-card {
  padding: 2.8rem 2.2rem;
  background: var(--color-white);
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--color-accent);
  transition: height 0.45s var(--ease-out);
}
.value-card:hover::before { height: 100%; }
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.08);
}

.value-number {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent-dark);
  margin-bottom: 1.6rem;
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--color-dark);
}
.value-card p { font-size: 0.93rem; }

/* ============================================================
   HIGHLIGHT SECTION (full-width image + text)
   ============================================================ */
.highlight {
  position: relative;
  height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.highlight-img {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/product8.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  filter: brightness(0.32);
}

.highlight-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.highlight-text .section-label { margin-bottom: 1.4rem; }
.highlight-text .eyebrow { color: var(--color-accent); }
.highlight-text h2 {
  color: var(--color-white);
  margin-bottom: 1.4rem;
}
.highlight-text p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 440px;
}

.highlight-stat {
  display: none;
}

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-preview {
  padding: 8rem 0;
  background: var(--color-off-white);
}

.about-preview-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-preview-image {
  position: relative;
  overflow: hidden;
}
.about-preview-image img {
  width: 100%; height: 520px;
  object-fit: cover;
  display: block;
}

.about-preview-text .section-label { margin-bottom: 1.4rem; }
.about-preview-text h2 { margin-bottom: 1.4rem; }
.about-preview-text p { margin-bottom: 2rem; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--color-off-white);
}

.contact-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-text .section-label { margin-bottom: 1.4rem; }
.contact-text h2 { margin-bottom: 1.2rem; }
.contact-text p { margin-bottom: 2.4rem; }

.contact-info {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--color-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.contact-info-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-info-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
}
.contact-info-value {
  font-size: 0.92rem;
  color: var(--color-charcoal);
  transition: color 0.25s;
}
.contact-info-value:hover { color: var(--color-accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
  background: var(--color-white);
  border: 1.5px solid var(--color-mid-grey);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74,173,170,0.12);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: 0.75rem;
  color: #c0392b;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  display: none;
  background: rgba(74,173,170,0.1);
  border: 1px solid var(--color-accent);
  padding: 1.2rem 1.4rem;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}
.form-success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 2.4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand-logo {
  height: 72px;
  width: auto;
  margin-bottom: 1.2rem;
  background: var(--color-white);
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.4rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}

.footer-social {
  display: none;
}

/* ============================================================
   ABOUT PAGE — HERO
   ============================================================ */
.about-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: 6rem;
  background: var(--color-dark);
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/product8.jpeg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.about-hero-content .section-label { margin-bottom: 1.4rem; }
.about-hero-content .section-label::before { background: var(--color-accent); }
.about-hero-content .eyebrow { color: var(--color-accent); }
.about-hero-content h1 {
  color: var(--color-white);
  max-width: 680px;
  margin-bottom: 1.6rem;
}
.about-hero-content > p {
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  font-size: 1.05rem;
}

/* About Content */
.about-content {
  padding: 7rem 0;
  background: var(--color-off-white);
}

.about-content-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 7rem;
}

.about-intro-text .section-label { margin-bottom: 1.4rem; }
.about-intro-text h2 { margin-bottom: 1.4rem; }
.about-intro-text p { margin-bottom: 1.4rem; }

.about-intro-image img {
  width: 100%; height: 500px;
  object-fit: cover;
}

/* Process */
.about-process {
  padding: 7rem 0;
  background: var(--color-white);
}
.about-process-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}
.about-process-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 560px;
  margin-inline: auto;
}
.about-process-header .section-label { justify-content: center; }
.about-process-header h2 { margin-top: 0.8rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.process-step {
  padding: 2.2rem 1.8rem;
  background: var(--color-off-white);
  border-top: 3px solid transparent;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}
.process-step:hover {
  border-top-color: var(--color-accent);
  transform: translateY(-6px);
}
.process-step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-mid-grey);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.process-step h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.process-step p { font-size: 0.88rem; }

/* Visual Gallery on About */
.about-gallery {
  padding: 7rem 0;
  background: var(--color-dark);
}
.about-gallery-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}
.about-gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.about-gallery-header .section-label { justify-content: center; }
.about-gallery-header .section-label::before { background: var(--color-accent); }
.about-gallery-header .eyebrow { color: var(--color-accent); }
.about-gallery-header h2 { color: var(--color-white); margin-top: 0.8rem; }

.about-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.about-gallery-grid img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  filter: brightness(0.85) saturate(0.9);
}
.about-gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(1) saturate(1.1);
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

/* Default: everything fully visible — safe if JS fails or is cached */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

/* Only hide elements when JS has confirmed it's loaded and running */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 960px and below */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Nav logo — prevent oversizing on tablet */
  .nav-logo { height: 52px; }

  /* Hero — prevent content overflow */
  .hero-content { padding-inline: 1.5rem; }
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-cta .btn { margin-left: 0 !important; }

  /* Showcase */
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 200px 200px;
  }
  .showcase-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
  .showcase-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .showcase-item:nth-child(3) { grid-column: 1 / 3; grid-row: 3 / 4; }

  /* Values */
  .values-grid { grid-template-columns: 1fr 1fr; }

  /* Highlight */
  .highlight-content { grid-template-columns: 1fr; }
  .highlight-stat { display: none; }
  .highlight-text { padding-inline: 1.5rem; }

  /* About preview */
  .about-preview-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-preview-image { display: none; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact-info-value { word-break: break-word; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  /* About page */
  .about-intro { grid-template-columns: 1fr; gap: 3rem; }
  .about-intro-image { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .about-gallery-grid { grid-template-columns: 1fr 1fr; }

  /* Image strip — stack on tablet */
  .image-strip-inner { grid-template-columns: 1fr; }
  .image-strip-item { height: 340px; }
}

/* Mobile — 640px and below */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  /* Nav logo */
  .nav-logo { height: 44px; }
  .nav-inner { padding-inline: 1.25rem; }

  /* Hero */
  .hero-content {
    padding-inline: 1.25rem;
    padding-top: calc(var(--nav-height) + 1rem);
  }
  .hero-logo { width: 90px; }
  .hero-tagline { font-size: 0.95rem; max-width: 100%; }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Showcase */
  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 240px 240px;
  }
  .showcase-item:nth-child(1),
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }
  .values-inner { padding-inline: 1.25rem; }

  /* Highlight */
  .highlight { height: auto; padding: 5rem 0; }
  .highlight-text .btn { width: 100%; justify-content: center; }

  /* About preview */
  .about-preview-inner { padding-inline: 1.25rem; }

  /* Contact */
  .contact-inner { padding-inline: 1.25rem; gap: 2.5rem; }
  .contact-info-value { font-size: 0.82rem; }
  .contact-form .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }
  .footer-inner { padding-inline: 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* About page */
  .about-hero-content { padding-inline: 1.25rem; }
  .about-content-inner { padding-inline: 1.25rem; }
  .about-process-inner { padding-inline: 1.25rem; }
  .process-steps { grid-template-columns: 1fr; }
  .about-gallery-inner { padding-inline: 1.25rem; }
  .about-gallery-grid { grid-template-columns: 1fr; }
  .about-gallery-grid img { height: 220px; }

  /* Image strip */
  .image-strip-inner { grid-template-columns: 1fr; }
  .image-strip-item { height: 260px; }

  /* Buttons - full width on mobile for key CTAs */
  .about-preview-text .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   IMAGE STRIP — two-column full-bleed photo section
   ============================================================ */
.image-strip {
  background: var(--color-dark);
}

.image-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.image-strip-item {
  position: relative;
  overflow: hidden;
  height: 480px;
}

.image-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
  filter: brightness(0.75) saturate(0.85);
}

.image-strip-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(1);
}

.image-strip-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(28,26,24,0.85) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}

.image-strip-item:hover .image-strip-caption {
  transform: translateY(0);
}

.image-strip-caption .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-accent);
}

.image-strip-caption p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .image-strip-inner {
    grid-template-columns: 1fr;
  }
  .image-strip-item {
    height: 320px;
  }
}

/* Hero animate-in — triggered by JS class */
.hero-pre-animate .hero-logo,
.hero-pre-animate .hero-eyebrow,
.hero-pre-animate .hero h1,
.hero-pre-animate .hero-tagline,
.hero-pre-animate .hero-cta {
  opacity: 0;
  transform: translateY(20px);
}

.hero-animate .hero-logo,
.hero-animate .hero-eyebrow,
.hero-animate .hero h1,
.hero-animate .hero-tagline,
.hero-animate .hero-cta {
  opacity: 1;
  transform: translateY(0);
}
