/* =========================================
   FRIVAAR PRODUCTIONS — Global Styles
   Gold: #D4A017 / #F0C040
   Black: #0A0A0A
   Off-white: #F5F0E8
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Manrope:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --gold: #D4A017;
  --gold-bright: #F0C040;
  --gold-dim: #8B6914;
  --black: #0A0A0A;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --black-4: #222222;
  --cream: #F5F0E8;
  --cream-dim: #C8C0AE;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-footer: 'Manrope', sans-serif;

  --nav-width: 72px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-ui);
  overflow-x: hidden;
  cursor: none;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.6;
}

body:hover .cursor { opacity: 1; }

/* ========== SIDE NAV ========== */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--nav-width);
  background: rgba(10, 10, 10, 0.95);
  border-right: 1px solid rgba(212, 160, 23, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-logo {
  width: 44px;
  height: 44px;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--cream-dim);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  height: 70%;
}

.nav-links a .nav-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-links a .nav-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.nav-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.nav-socials a {
  color: var(--cream-dim);
  font-size: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), transform 0.2s;
}

.social-logo {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-socials a:hover {
  color: var(--gold);
  transform: scale(1.2);
}

/* ========== MAIN CONTENT WRAPPER ========== */
.page-wrap {
  margin-left: var(--nav-width);
  min-height: 100vh;
}

/* ========== SECTION BASE ========== */
section {
  position: relative;
}

/* ========== GOLD LINE DIVIDER ========== */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ========== EYEBROW LABEL ========== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

/* ========== SECTION HEADING ========== */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.section-heading em {
  font-style: italic;
  color: var(--gold);
}

/* ========== GOLD BUTTON ========== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: 0;
}

.btn-gold:hover::before { transform: translateX(0); }
.btn-gold:hover { color: var(--black); }
.btn-gold span { position: relative; z-index: 1; }

/* ========== SCROLL REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ========== NOISE OVERLAY ========== */
.noise::after {
  content: '';
  position: absolute;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ========== PAGE TRANSITION ========== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(212, 160, 23, 0.15);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-contact a {
  color: var(--cream-dim);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.footer-offices {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.footer-office {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 150px;
}
.footer-office a,
.footer-office address {
  color: var(--cream-dim);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  line-height: 1.45;
  font-style: normal;
}
.footer-office a { text-decoration: none; transition: color 0.3s; }
.footer-office a:hover { color: var(--gold); text-decoration: underline; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cream-dim);
  opacity: 0.5;
  letter-spacing: 0.1em;
  align-self: center;
  white-space: nowrap;
}

.footer-socials { display: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --nav-width: 0px; }

  /* Mobile browsers should never be left behind an animation cover or hidden reveal state. */
  .page-transition {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Compact mobile header: a logo plus a rounded navigation control. */
  .side-nav {
    width: 100%;
    height: 68px;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    padding: 0 0.8rem;
    background: rgba(8, 8, 8, 0.96);
    border: 0;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
  }

  .nav-logo {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    justify-self: end;
    flex-direction: row;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-links a {
    min-width: 52px;
    min-height: 42px;
    padding: 0.35rem 0.45rem 0.3rem;
    gap: 2px;
    border-radius: 999px;
  }

  .nav-links a .nav-icon {
    font-size: 18px;
  }

  .nav-links a .nav-label {
    font-size: 0.45rem;
    letter-spacing: 0.12em;
  }

  .nav-links a::before {
    display: none;
  }

  .nav-links a.active {
    color: var(--gold);
    background: rgba(212, 160, 23, 0.14);
    box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.18);
  }

  /* Social logos live in the short footer on mobile, not in the header. */
  .nav-socials { display: none; }

  .footer-socials {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .footer-socials a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(212, 160, 23, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.25s, border-color 0.25s;
  }

  .footer-socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 23, 0.6);
  }

  .footer-socials img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .page-wrap {
    margin-left: 0;
    padding-top: 68px;
    padding-bottom: 0;
  }

.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(212, 160, 23, 0.15);
  padding: 3rem 4rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

  .footer-brand { font-size: 1.05rem; }
  .footer-tagline { font-size: 0.48rem; letter-spacing: 0.13em; }
  .footer-contact { grid-column: 1 / -1; text-align: left; gap: 0.2rem; }
  .footer-contact-label { font-size: 0.5rem; }
  .footer-contact a { font-size: 0.7rem; }
  .footer-offices { grid-column: 1 / -1; width: 100%; gap: 1.25rem; flex-wrap: wrap; }
  .footer-office { min-width: 0; flex: 1 1 140px; }
  .footer-office a, .footer-office address { font-size: 0.65rem; }
  .footer-copy { grid-column: 1 / -1; font-size: 0.5rem; }

  .footer-contact { text-align: left; }
  .footer-contact a { overflow-wrap: anywhere; }

  body {
    cursor: auto;
    overflow-x: hidden;
  }

  .cursor, .cursor-ring { display: none; }
}

@media (max-width: 390px) {
  .side-nav { padding-left: 0.55rem; padding-right: 0.55rem; }
  .nav-links { gap: 0.05rem; }
  .nav-links a { min-width: 48px; padding-left: 0.28rem; padding-right: 0.28rem; }
  .nav-links a .nav-label { font-size: 0.41rem; }
  .footer-socials { gap: 0.5rem; }
  .footer-socials a { width: 28px; height: 28px; }
}

/* ========== CLEAN CONTACT FOOTER ========== */
.site-footer {
  display: block;
  padding: 4.5rem clamp(2rem, 8vw, 8rem) 2rem;
  background: #080808;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  max-width: 1320px;
  margin: 0 auto;
}
.footer-panel { min-width: 0; }
.footer-heading,
.footer-office-list > .footer-heading {
  display: block;
  margin-bottom: 1rem;
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.footer-link,
.footer-location address,
.footer-office-list a {
  color: var(--cream-dim);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.65;
  text-decoration: none;
  font-style: normal;
}
.footer-link:hover, .footer-office-list a:hover { color: var(--gold-bright); }
.footer-location { text-align: right; }
.footer-socials { display: flex; gap: .7rem; }
.footer-socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #242424;
  transition: background .25s, transform .25s;
}
.footer-socials a:hover { background: var(--gold); transform: translateY(-2px); }
.footer-socials img { width: 18px; height: 18px; object-fit: contain; }
.footer-lower {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: end;
  max-width: 1320px;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,.12);
}
.footer-office-list { display: flex; flex-direction: column; gap: .25rem; }
.footer-office-list > .footer-heading { margin-bottom: .4rem; }
.footer-copy { align-self: end; color: var(--cream-dim); font-size: .68rem; letter-spacing: .04em; opacity: .65; text-align: right; white-space: normal; }
.footer-copy span { display: inline-block; margin-bottom: .3rem; color: var(--gold); font-size: .7rem; letter-spacing: .08em; opacity: 1; }
.site-footer,
.site-footer * { font-family: var(--font-footer); }
.site-footer { width: 100%; margin: 0 auto; padding: 2.75rem 25% 1.5rem; background: var(--black-2); }
.footer-grid { grid-template-columns: minmax(200px, 1fr) minmax(210px, 1fr) minmax(210px, 1fr); gap: 2rem; align-items: start; }
.footer-panel { min-height: 0; text-align: center; }
.footer-heading,
.footer-office-list > .footer-heading { margin-bottom: .4rem; color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.footer-link,
.footer-location address,
.footer-office-list a { font-size: .78rem; line-height: 1.55; letter-spacing: .01em; }
.footer-location, .footer-office-card { text-align: center; }
.footer-lower { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.25rem; padding-top: 0; border-top: 0; align-items: start; }
.footer-office-list { gap: .15rem; }
.footer-copy { font-size: .72rem; line-height: 1.8; text-align: right; }
.footer-copy span { font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.footer-office-card > a { color: var(--cream-dim); font-size: .82rem; font-weight: 600; }
.footer-office-card > a:hover { color: var(--gold-bright); }
.footer-office-card address { color: var(--cream-dim); font-size: .78rem; line-height: 1.55; }
.footer-credit { grid-column: 2; text-align: center; color: var(--cream-dim); font-size: .72rem; line-height: 1.8; }
.footer-credit span { display: block; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .05em; }
.footer-credit small { display: block; font-size: .68rem; opacity: .65; }
.footer-contact-center { text-align: center; }
.footer-contact-center .footer-heading { margin-bottom: .35rem; }
.footer-country-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; max-width: 760px; margin: 2.2rem auto 0; }
.footer-office-card { min-height: 0; }
.footer-office-card .footer-heading { margin-bottom: .4rem; }
.footer-office-card address { margin-bottom: .25rem; }
.footer-india { text-align: left; }
.footer-canada { text-align: right; }
.footer-credit-line { margin-top: 2.2rem; color: var(--cream-dim); font-size: .72rem; line-height: 1.6; text-align: center; }
.footer-credit-line span { margin: 0 .35rem; color: var(--gold); }
@media (max-width: 768px) {
  .site-footer { width: 100%; padding: 2.5rem 1.25rem 1.25rem; }
  .footer-grid, .footer-lower { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-location { grid-column: 1 / -1; text-align: center; }
  .footer-office-card { text-align: center; }
  .footer-lower { margin-top: 2.5rem; }
  .footer-copy { text-align: left; }
  .footer-credit { grid-column: 1 / -1; text-align: center; }
  .footer-country-row { gap: 2rem; margin-top: 1.75rem; }
}
@media (max-width: 420px) {
  .footer-grid, .footer-lower { grid-template-columns: 1fr; }
  .footer-location { grid-column: auto; }
  .footer-country-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-india, .footer-canada { text-align: center; }
}
