/* ============================================================
   Tinus & Tailors — Shared Stylesheet v4
   ============================================================ */

/* --- Tokens --- */
:root {
  --navy:   #1c2535;
  --cream:  #F2EDE5;
  --off-white: #EDEBE6;
  --brass:  #B8935F;
  --char:   #2A2E38;
  --char-light: #5a5f6e;
  --overlay: rgba(14, 18, 26, 0.52);
  --overlay-heavy: rgba(14, 18, 26, 0.68);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --ease-slow: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--cream); color: var(--char); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.serif { font-family: var(--font-serif); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: transparent;
  transition: background 0.4s var(--ease-slow);
}
.site-nav.scrolled {
  background: rgba(28, 37, 53, 0.94);
  backdrop-filter: blur(8px);
}
.site-nav .logo img { height: 48px; width: auto; }
.site-nav .nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.site-nav .nav-links a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,229,0.75);
  transition: color 0.25s;
}
.site-nav .nav-links a:hover { color: var(--brass); }
.site-nav .nav-cta {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(184,147,95,0.5);
  padding: 0.55rem 1.3rem;
  transition: border-color 0.25s, color 0.25s;
}
.site-nav .nav-cta:hover { border-color: var(--brass); color: #d4aa7a; }

/* ============================================================
   VIDEO HERO
   ============================================================ */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.video-hero video,
.video-hero .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.video-hero .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,18,26,0.25) 0%,
    rgba(14,18,26,0.0) 40%,
    rgba(14,18,26,0.6) 100%
  );
}
.video-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6rem 5rem;
  max-width: 680px;
}
.video-hero-content .eyebrow { margin-bottom: 1rem; }
.video-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.12;
  margin-bottom: 2rem;
}
.video-hero-content .btn-book {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--brass);
  color: var(--cream);
  padding: 1rem 2.6rem;
  transition: background 0.3s;
}
.video-hero-content .btn-book:hover { background: #a07a4a; }

/* ============================================================
   FABRIC MILLS — LIGHT GRID (real logos)
   ============================================================ */
.section-mills {
  background: var(--cream);
  padding: 5rem 6rem;
  border-top: 1px solid rgba(42,46,56,0.08);
}
.mills-header {
  text-align: center;
  margin-bottom: 3rem;
}
.mills-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 300;
  color: var(--navy);
  margin-top: 0.8rem;
}
.mills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(42,46,56,0.1);
  border: 1px solid rgba(42,46,56,0.1);
}
.mill-card {
  background: #FAFAF8;
  aspect-ratio: 2.4 / 1;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.6rem;
  transition: background 0.25s;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.mill-card:hover { background: #f0ece4; }
.mill-card img {
  width: auto;
  height: 60px;
  min-height: 60px;
  max-width: 80%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: opacity 0.25s, transform 0.25s;
}
.mill-card.small img { height: 37px; min-height: 37px; }
.mill-card.medium img { height: 54px; min-height: 54px; }
.mill-card.cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: 0.82;
}
.mill-card.no-link { cursor: default; }
.mill-card.no-link:hover { background: #FAFAF8; }
.mill-card.mill-empty { cursor: default; background: #F5F3EE; }
.mill-card.mill-empty:hover { background: #F5F3EE; }
.mill-card:hover img { opacity: 1; transform: scale(1.03); }
.mill-card.cover:hover img { transform: scale(1.06); }
.mill-card.no-link:hover img { transform: none; opacity: 1; }

/* ============================================================
   LOCATIONS — LIGHT
   ============================================================ */
.section-locations {
  background: var(--cream);
  padding: 6rem 8rem;
  border-top: 1px solid rgba(42,46,56,0.08);
}
.section-locations .section-header { margin-bottom: 3.5rem; }
.section-locations .section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 300;
  color: var(--navy);
  margin-top: 0.8rem;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(42,46,56,0.1);
  border: 1px solid rgba(42,46,56,0.1);
  margin-bottom: 2.5rem;
}
.loc-card {
  background: var(--cream);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.3s;
  text-decoration: none;
}
.loc-card:hover { background: var(--off-white); }
.loc-card .loc-city {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--navy);
}
.loc-card .loc-date {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--char-light);
  letter-spacing: 0.05em;
  font-style: italic;
}
.loc-card .loc-link {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.loc-card .loc-link::after { content: '→'; transition: transform 0.25s; }
.loc-card:hover .loc-link::after { transform: translateX(4px); }
.locations-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--char-light);
  text-align: center;
}

/* ============================================================
   PROCESS — DARK
   ============================================================ */
.section-process {
  background: var(--navy);
  padding: 7rem 8rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}
.process-intro .eyebrow { margin-bottom: 1.2rem; color: var(--brass); }
.process-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(242,237,229,0.08);
  align-items: baseline;
}
.process-step:first-child { border-top: 1px solid rgba(242,237,229,0.08); }
.step-n {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--brass);
}
.step-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.step-body p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242,237,229,0.55);
}

/* ============================================================
   LEAD GEN FORM
   ============================================================ */
.section-leadgen {
  background: var(--cream);
  padding: 8rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(42,46,56,0.08);
}
.leadgen-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 560px;
}
.leadgen-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.leadgen-header p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--char-light);
  line-height: 1.7;
}
.leadgen-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-field {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--char);
  background: transparent;
  border: 1px solid rgba(42,46,56,0.25);
  padding: 1rem 1.2rem;
  outline: none;
  transition: border-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.form-field::placeholder { color: rgba(42,46,56,0.45); }
.form-field:focus { border-color: var(--brass); }
.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--char-light);
  pointer-events: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn-leadgen {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 1.1rem 2rem;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.btn-leadgen:hover { background: var(--char); }
.leadgen-fine {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(42,46,56,0.4);
  text-align: center;
}
.leadgen-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}
.leadgen-social a {
  color: var(--char-light);
  transition: color 0.2s;
}
.leadgen-social a:hover { color: var(--brass); }
.leadgen-social svg { width: 22px; height: 22px; fill: currentColor; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 4rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.site-footer .footer-logo img { height: 64px; width: auto; opacity: 0.85; }
.footer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(242,237,229,0.45);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.7;
}
.footer-details a { transition: color 0.2s; }
.footer-details a:hover { color: var(--brass); }
.footer-fine {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,237,229,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* ============================================================
   HOMEPAGE — Gender Selector
   ============================================================ */
.home-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.home-logo {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0 0;
  pointer-events: none;
  gap: 0.5rem;
}
.home-logo img {
  height: 82px;
  width: auto;
  pointer-events: auto;
}
.home-logo .home-wordmark {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  pointer-events: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.gender-split {
  display: flex;
  flex: 1;
}
.gender-half {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.gender-half .half-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-slow), filter 0.5s var(--ease-slow);
  filter: brightness(0.78);
}
.gender-half:hover .half-bg {
  transform: scale(1.04);
  filter: brightness(0.92);
}
.gender-half .half-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,18,26,0.42);
  transition: opacity 0.5s var(--ease-slow);
}
.gender-half:hover .half-overlay { opacity: 0.2; }
.gender-half .divider-line {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: rgba(184,147,95,0.25);
}
.gender-label {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.gender-label .eyebrow { color: rgba(184,147,95,0.85); }
.gender-label h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.gender-label .brass-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.4s var(--ease-slow);
  margin-top: 0.4rem;
}
.gender-half:hover .brass-line { width: 48px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: var(--navy);
  padding: 10rem 8rem 6rem;
  text-align: center;
}
.about-hero .eyebrow { margin-bottom: 1.2rem; }
.about-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.about-hero p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(242,237,229,0.6);
  max-width: 580px;
  margin: 0 auto;
}
.about-team {
  background: var(--cream);
  padding: 7rem 8rem;
}
.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(42,46,56,0.1);
}
.team-member:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.team-member.reverse { direction: rtl; }
.team-member.reverse > * { direction: ltr; }
.member-photo {
  aspect-ratio: 3/4;
  background: var(--off-white);
  overflow: hidden;
  position: relative;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(42,46,56,0.3);
  letter-spacing: 0.05em;
}
.member-text { padding: 2rem 0; }
.member-text .eyebrow { margin-bottom: 1rem; }
.member-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.member-text .member-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--char-light);
  margin-bottom: 2rem;
}
.member-text p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--char);
  margin-bottom: 1.2rem;
}
.member-text p:last-child { margin-bottom: 0; }

/* ============================================================
   ABOUT NAV (light)
   ============================================================ */
.site-nav.light-nav .nav-links a { color: rgba(242,237,229,0.75); }
.site-nav.about-nav {
  background: var(--navy);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mills-grid { grid-template-columns: repeat(3, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .gender-split { flex-direction: column; }
  .gender-half { flex: 1; min-height: 50vh; }
  .gender-half .divider-line { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 1px; }

  .site-nav { padding: 1.2rem 1.5rem; }
  .site-nav .nav-links { display: none; }
  .site-nav .nav-cta { display: none; }

  .video-hero-content { padding: 0 1.5rem 3.5rem; }
  .video-hero-content h1 { font-size: 2.2rem; }

  .section-mills { padding: 3rem 1rem; }
  .mills-header { margin-bottom: 2rem; }
  .mills-grid { grid-template-columns: repeat(2, 1fr); }
  .mill-card img { height: 36px; }
  .mill-card.small img { height: 20px; }

  .section-locations { padding: 3.5rem 1.5rem; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .loc-card { padding: 1.6rem 1.2rem; }
  .loc-card .loc-city { font-size: 1.2rem; }

  .section-process { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }

  .section-leadgen { padding: 4rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .leadgen-form { max-width: 100%; }

  .about-hero { padding: 8rem 1.5rem 3.5rem; }
  .about-hero h1 { font-size: 2rem; }
  .about-team { padding: 3.5rem 1.5rem; }
  .team-member { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; padding-bottom: 4rem; }
  .team-member.reverse { direction: ltr; }
  .member-photo { aspect-ratio: 1/1; }

  .site-footer { padding: 3rem 1.5rem; }
}
@media (max-width: 600px) {
  .home-logo img { height: 64px; }
  .home-logo .home-wordmark { font-size: 0.75rem; letter-spacing: 0.18em; }
  .gender-label .eyebrow { font-size: 0.55rem; letter-spacing: 0.15em; }
  .gender-label h2 { font-size: 2.2rem; }
  .mills-grid { grid-template-columns: repeat(2, 1fr); }
  .mill-card { aspect-ratio: 2/1; }
  .mill-card img { height: 32px; }
  .mill-card.small img { height: 18px; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .loc-card .loc-city { font-size: 1.1rem; }
  .process-intro h2 { font-size: 1.6rem; }
  .leadgen-header h2 { font-size: 1.4rem; }
  .section-leadgen { padding: 3.5rem 1.2rem; }
  .book-bar { font-size: 0.6rem; padding: 0.9rem 2rem; bottom: 1.2rem; }
}
