/* ============================================================
   LAYOUT — Paragon Hotel Company
   ============================================================ */

/* ── Global Body ── */
body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  cursor: none; /* Custom cursor active */
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: 1;
}

/* ── Typography Globals ── */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h1, h3 { text-transform: uppercase; }
h2      { text-transform: none; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.eyebrow-centered {
  text-align: center;
}

.section-h2 {
  font-size: var(--size-section-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.section-h2-dark {
  color: var(--color-bg-primary);
}

.h2-line {
  display: block;
}

.section-body {
  font-size: var(--size-body);
  font-weight: var(--fw-light);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.section-body em {
  font-style: italic;
  color: var(--color-text-primary);
  font-weight: var(--fw-regular);
}

.section-body-dark {
  color: var(--color-bg-mid);
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-mid), box-shadow var(--transition-mid);
}

#nav.scrolled {
  background: var(--color-bg-primary);
  box-shadow: var(--nav-shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}

.nav-logo {
  padding-left: 1rem;
}

.nav-logo img {
  width: 100px;
  height: auto;
  display: block;
  mix-blend-mode: screen;  /* dissolves white bg on transparent/dark nav */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  white-space: nowrap;
}

#nav.scrolled .nav-link {
  text-shadow: none;
  color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform var(--transition-mid), opacity var(--transition-mid);
}

/* ── Mobile Nav ── */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: var(--container-pad);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-mobile-close:hover {
  color: var(--color-accent);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.nav-mobile-link {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: color var(--transition-fast);
}

.nav-mobile-link:hover {
  color: var(--color-accent);
}

.nav-mobile-cta {
  color: var(--color-accent);
}

/* ── HERO ── */
.section-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 44, 45, 0.85) 0%,
    rgba(45, 44, 45, 0.6) 50%,
    rgba(45, 44, 45, 0.9) 100%
  );
  z-index: 1;
  opacity: 0.65; /* base darkness at top — GSAP scrub deepens to 1 on scroll */
  transform: translateZ(0);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: clamp(60px, 8vw, 100px);
}

.hero-icon {
  display: block;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  width: 80px;
  height: 80px;
}

.hero-h1 {
  font-size: var(--size-hero-h1);
  font-weight: var(--fw-black);
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 1.5rem;
}

.hero-h1-line1,
.hero-h1-line2 {
  display: block;
  line-height: 1.0;
}

.hero-h1-line2 {
  margin-top: 0.1em;
}

.hero-body {
  font-size: 1.1rem;
  font-weight: var(--fw-light);
  line-height: 1.75;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  max-width: 52ch;
  margin-bottom: 3rem;
}

.hero-carousel {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
}

.hero-breadcrumb .sep {
  color: var(--color-accent-warm);
}

/* ── ABOUT ── */
.section-about {
  background: var(--color-bg-primary);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.about-bg-editorial {
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.about-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(60px, 6vw, 80px);
}

.stat-col {
  padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-col:last-child {
  border-right: none;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: var(--fw-black);
  font-size: var(--size-stat-num);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── PORTFOLIO ── */
.section-portfolio {
  background: var(--color-bg-deep);
  padding-bottom: var(--section-pad);
}

.portfolio-hero-img-wrap {
  overflow: hidden;
  max-height: 65vh;
}

.portfolio-hero-img {
  width: 100vw;
  max-height: 65vh;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.section-portfolio .container {
  padding-top: var(--section-pad);
}

.property-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.property-carousel {
  flex: 1;
  overflow: visible;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-counter {
  text-align: right;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--size-label);
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

/* ── SERVICES ── */
.section-services {
  background: var(--color-bg-mid);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.services-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.services-left {
  position: sticky;
  top: 120px;
}

.services-photo {
  width: 100%;
  height: clamp(400px, 55vh, 600px);
  object-fit: cover;
  display: block;
}

.services-right {
  padding-top: 0.5rem;
}

.services-intro {
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

/* ── OUTREACH ── */
.section-outreach {
  background: var(--color-bg-light);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.outreach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 3rem;
}

.sustainability {
  border-top: 1px solid rgba(45, 44, 45, 0.15);
  margin-top: 60px;
  padding-top: 40px;
}

.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

/* ── CAREERS ── */
.section-careers {
  background: var(--color-bg-primary);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.careers-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
}

.careers-content {
  position: relative;
  z-index: 1;
}

.careers-ctas {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.careers-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
.section-contact {
  background: var(--color-bg-deep);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.contact-split-headline {
  display: block;
  margin: 2rem 0 3rem;
  overflow: hidden;
}

.contact-word-work {
  font-family: var(--font-heading);
  font-weight: var(--fw-black);
  font-size: var(--size-contact-h1);
  color: var(--color-text-primary);
  text-align: left;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.contact-word-with {
  font-family: var(--font-heading);
  font-weight: var(--fw-black);
  font-size: var(--size-contact-h1);
  color: var(--color-text-primary);
  text-align: right;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.contact-icon-pivot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-icon-pivot img {
  width: 100px;
  height: 100px;
}

.contact-info {
  text-align: center;
  font-size: 1rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 3rem;
}

.contact-info a {
  transition: color var(--transition-fast);
}

.contact-info a:hover {
  color: var(--color-accent);
}

/* ── FOOTER ── */
.footer {
  background: var(--color-bg-footer);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-logo img {
  width: 120px;
  mix-blend-mode: screen;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--color-accent);
}

.footer-sep {
  color: var(--color-accent-warm);
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social-link {
  color: var(--color-text-muted);
  transition: color var(--transition-mid), transform var(--transition-mid);
}

.footer-social-link:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-address {
  font-size: 0.8rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  width: 100%;
  justify-content: center;
}

.footer-legal-link {
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-inner {
    grid-template-columns: 1fr;
  }

  .services-left {
    position: static;
  }

  .services-photo {
    height: 300px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-col:last-child {
    border-bottom: none;
  }

  .contact-split-headline {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-word-work,
  .contact-word-with {
    text-align: center;
  }

  .contact-icon-pivot {
    order: -1;
  }

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

@media (max-width: 640px) {
  .property-carousel-wrap {
    gap: 1rem;
  }

  .property-carousel {
    min-height: 270px;
  }

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

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

  .careers-links {
    flex-direction: column;
    gap: 1rem;
  }

  .about-ctas {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .outreach-grid {
    grid-template-columns: 1fr;
  }
}
