/* ============================================================
   FINE LINEN CREATION — Comp 03: Smoke and Geography
   Design System: Near-black modernist, Nobu Hotels aesthetic
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Surface colors */
  --ink: #0E0E0E;
  --charcoal: #1A1A1A;
  --white: #FFFFFF;
  --warm: #F2EFE9;

  /* Text colors */
  --on-dark: #F2EFE9;
  --on-light: #0E0E0E;
  --muted-dark: #8C8682;
  --muted-light: #6E6E6A;

  /* Accent */
  --red: #B02A30;
  --red-hover: #8E2025;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --section-dark: 200px;
  --section-light: 140px;
  --lateral-lg: 48px;
  --lateral-md: 32px;
  --lateral-sm: 20px;
  --max-width: 1440px;

  /* Nav */
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background-color: var(--ink);
  color: var(--on-dark);
  line-height: 1.5;
}

/* Red accent emphasis — brand signature */
em {
  color: var(--red);
  font-style: normal;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 var(--lateral-lg);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  white-space: nowrap;
}

.nav__wordmark-square {
  display: inline-block;
  width: 2px;
  height: 2px;
  background-color: var(--red);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}

.nav__link:hover {
  border-color: var(--red);
}

.nav__link--active {
  border-color: var(--red);
}

.nav__cta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  background-color: var(--red);
  padding: 10px 18px;
  border-radius: 0;
  transition: background-color 200ms ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background-color: var(--red-hover);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.eyebrow--light {
  color: var(--muted-light);
}

.display-xl {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 80px;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.label--light {
  color: var(--muted-light);
}

.body-md {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.body-md--light {
  color: var(--muted-light);
}

.mono-spec {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}

.mono-spec--light {
  color: var(--muted-light);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  background-color: var(--red);
  padding: 10px 18px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.btn-primary:hover {
  background-color: var(--red-hover);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  background-color: transparent;
  padding: 16px 32px;
  border-radius: 0;
  border: 1px solid var(--muted-dark);
  cursor: pointer;
  transition: border-color 200ms ease;
}

.btn-secondary:hover {
  border-color: var(--on-dark);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--lateral-lg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background-color: var(--ink);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero__content {
  position: absolute;
  bottom: var(--lateral-lg);
  left: var(--lateral-lg);
  max-width: 640px;
}

.hero__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 80px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

/* ============================================================
   WHERE WE WORK SECTION
   ============================================================ */

.where-we-work {
  background-color: var(--ink);
  padding: var(--section-dark) 0 80px;
}

.where-we-work__header {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.where-we-work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* --- Region Card --- */
.region-card {
  background-color: var(--charcoal);
  border-top: 2px solid var(--red);
  display: flex;
  flex-direction: column;
}

.region-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.region-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.region-card__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  color: var(--on-dark);
}

.region-card__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-dark);
}

/* ============================================================
   CAPABILITIES STRIP
   ============================================================ */

.capabilities {
  background-color: var(--ink);
  padding: 80px 0 var(--section-dark);
  border-top: 1px solid #2E2E2E;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.capability__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 16px;
}

.capability__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  margin-bottom: 16px;
}

.capability__body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-dark);
}

/* ============================================================
   COLLECTION SECTION (LIGHT)
   ============================================================ */

.collection {
  background-color: var(--warm);
  padding: var(--section-light) 0;
}

.collection__header {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection__header .display-lg {
  color: var(--on-light);
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Product Card (on light bg) --- */
.product-card {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--on-light);
}

/* ============================================================
   PORTFOLIO TEASER
   ============================================================ */

.portfolio {
  background-color: var(--ink);
  padding: var(--section-dark) 0;
}

.portfolio__header {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--charcoal);
}

.portfolio-card__body {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-card__event {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--on-dark);
}

.portfolio-card__caption {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted-dark);
}

/* ============================================================
   A PARTY PLACE CALLOUT
   ============================================================ */

.party-place {
  background-color: var(--ink);
  padding: var(--section-dark) 0;
  border-top: 1px solid #1F1F1F;
}

.party-place__inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.party-place__rule {
  width: 48px;
  height: 2px;
  background-color: var(--red);
  margin-bottom: 4px;
}

.party-place__brand {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.party-place__body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-dark);
}

/* ============================================================
   QUOTE PROMPT
   ============================================================ */

.quote-prompt {
  background-color: #161616;
  padding: var(--section-dark) 0;
  border-top: 1px solid #333333;
}

.quote-prompt__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.quote-prompt__headline {
  color: var(--on-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--ink);
  padding: 140px 0 0;
  border-top: 1px solid #1F1F1F;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 80px;
}

.footer__col-head {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 20px;
}

.footer__col--party .footer__col-head {
  padding-top: 16px;
  border-top: 2px solid var(--red);
  display: inline-block;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted-dark);
  transition: color 200ms ease;
}

.footer__link:hover {
  color: var(--on-dark);
}

.footer__bottom {
  border-top: 1px solid #1F1F1F;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer__wordmark-square {
  display: inline-block;
  width: 2px;
  height: 2px;
  background-color: var(--red);
  flex-shrink: 0;
}

.footer__copyright {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted-dark);
}

/* ============================================================
   RENTALS PAGE
   ============================================================ */

/* --- Geo Filter Bar --- */
.geo-filter {
  background-color: var(--charcoal);
  height: 52px;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
}

.geo-filter__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.geo-filter__item {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.geo-filter__item:hover {
  color: var(--on-dark);
}

.geo-filter__item--active {
  color: var(--on-dark);
  border-color: var(--on-dark);
}

/* --- Page Header --- */
.page-header {
  background-color: var(--ink);
  padding: 80px 0;
}

.page-header__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header__headline {
  color: var(--on-dark);
}

/* --- Rentals Main Layout --- */
.rentals-main {
  background-color: var(--ink);
  padding: 0 0 var(--section-dark);
}

.rentals-main__inner {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* --- Sidebar --- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background-color: var(--charcoal);
  padding: 40px 32px;
  position: sticky;
  top: var(--nav-height);
  align-self: flex-start;
  min-height: calc(100vh - var(--nav-height));
}

.sidebar__group {
  margin-bottom: 40px;
}

.sidebar__group:last-child {
  margin-bottom: 0;
}

.sidebar__group-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
}

.sidebar__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar__option {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted-dark);
  cursor: pointer;
  transition: color 200ms ease;
}

.sidebar__option:hover {
  color: var(--on-dark);
}

.sidebar__option--active {
  color: var(--on-dark);
}

/* --- Product Grid (Rentals page) --- */
.product-grid {
  flex: 1;
  padding: 40px 0 0 40px;
}

.product-grid__section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1F1F1F;
}

.product-grid__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

/* Product card on dark bg (white card) */
.product-card--dark {
  background-color: var(--white);
}

.product-card--dark .product-card__body {
  padding: 16px 16px 20px;
}

.product-card--dark .product-card__name {
  font-size: 15px;
  color: var(--on-light);
}

.product-card--dark .mono-spec {
  color: var(--muted-light);
}

/* --- iframe Card (Live Inventory) --- */
.iframe-card {
  background-color: var(--white);
  border-top: 2px solid var(--red);
  margin-top: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iframe-card__eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.iframe-card__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-light);
}

.iframe-card__placeholder {
  background-color: #F7F5F2;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #D0CBC4;
}

.iframe-card__placeholder-text {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

/* ============================================================
   MAIN CONTENT OFFSET (for fixed nav)
   ============================================================ */

.main-content {
  padding-top: var(--nav-height);
}

/* ============================================================
   RENTALS PAGE BODY OFFSET
   ============================================================ */

.rentals-body {
  /* geo-filter handles the top offset */
}

/* ============================================================
   RESPONSIVE (basic)
   ============================================================ */

@media (max-width: 1200px) {
  .product-grid__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .where-we-work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .collection__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav__links {
    gap: 20px;
  }

  .hero__headline {
    font-size: 56px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-dark: 100px;
    --section-light: 80px;
    --lateral-lg: 24px;
  }

  .nav__wordmark {
    font-size: 20px;
  }

  .where-we-work__grid {
    grid-template-columns: 1fr;
  }

  .collection__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rentals-main__inner {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .product-grid {
    padding: 40px 0 0;
  }

  .product-grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
