/* ============================================================
   Frank Family Holdings Ltd. — Shared Stylesheet
   Luxury Dark Theme with Gold Accents
   ============================================================ */

:root {
  --bg:           hsl(240, 5%, 6%);
  --fg:           hsl(0, 0%, 95%);
  --gold:         hsl(43, 74%, 66%);
  --gold-faint:   rgba(212, 175, 55, 0.2);
  --gold-medium:  rgba(212, 175, 55, 0.3);
  --gold-half:    rgba(212, 175, 55, 0.5);
  --muted:        hsl(240, 5%, 65%);
  --secondary-bg: hsl(240, 4%, 16%);
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Text Utilities --- */
.text-gold-gradient {
  background: linear-gradient(135deg, #F3E7E9 0%, #D4AF37 50%, #8A6D3B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-faint);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}

.site-nav__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.site-nav__brand:hover { opacity: 0.8; }

.site-nav__desktop { display: flex; align-items: center; }

.btn-login {
  display: inline-block;
  border: 1px solid var(--gold-half);
  color: var(--gold);
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.btn-login:hover { background-color: var(--gold); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { pointer-events: none; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-top: 1px solid var(--gold-faint);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile .btn-login { text-align: center; padding: 0.75rem 1.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.jpg');
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  transition: transform 10s ease;
}
.hero:hover .hero__bg { transform: scale(1); }

.hero__overlay { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.80); }
.hero__gradient { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 40%); }

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding-inline: 1.5rem;
  margin-top: 6rem;
}

.hero__eyebrow {
  display: block;
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease both;
}

.hero__heading {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  animation: fadeUp 1s 0.2s ease both;
}

.hero__body {
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  line-height: 1.75;
  animation: fadeUp 1s 0.3s ease both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: color 0.2s;
  animation: fadeUp 1s 0.5s ease both;
}
.hero__cta:hover { color: rgba(212, 175, 55, 0.8); }

.hero__cta-arrow { display: inline-block; transition: transform 0.2s; }
.hero__cta:hover .hero__cta-arrow { transform: translateX(0.5rem); }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio { padding-block: 8rem; }

.portfolio__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.portfolio__eyebrow {
  display: block;
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: 1rem;
}

.portfolio__heading { font-size: clamp(2rem, 4vw, 3rem); }

.portfolio__subheading {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 30rem;
}

.division {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 8rem;
}
.division:last-child { margin-bottom: 0; }

.division__image-wrap {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.division__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}
.division:hover .division__image-wrap img { transform: scale(1.05); }

.division__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.division__badge {
  display: inline-block;
  align-self: flex-start;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
  border: 1px solid var(--gold-medium);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
}

.division__heading { font-size: clamp(1.75rem, 3vw, 2.5rem); }

.division__body {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.1rem;
}

.division__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: color 0.2s;
  width: fit-content;
}
.division__cta:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(39, 39, 48, 0.3);
  border-top: 1px solid var(--gold-faint);
  padding-top: 6rem;
  padding-bottom: 3rem;
  margin-top: auto;
}

.site-footer__top { margin-bottom: 4rem; }

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.5rem;
}

.site-footer__desc {
  color: var(--muted);
  font-weight: 300;
  max-width: 22rem;
  line-height: 1.75;
}

.site-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gold-faint);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__copy { font-size: 0.8rem; color: rgba(158, 158, 168, 0.6); font-weight: 300; }
.site-footer__links { display: flex; gap: 1.5rem; }
.site-footer__links a { font-size: 0.8rem; color: rgba(158, 158, 168, 0.6); font-weight: 300; transition: color 0.2s; }
.site-footer__links a:hover { color: var(--gold); }

/* ============================================================
   CENTER PAGES (Contact, 404)
   ============================================================ */
.center-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.center-card { width: 100%; max-width: 28rem; text-align: center; }

.center-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-medium);
  background: rgba(39, 39, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.center-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.center-heading { font-size: 2.5rem; margin-bottom: 1rem; }
.center-body { color: var(--muted); font-weight: 300; font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.5rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: background-color 0.2s;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: rgba(212, 175, 55, 0.9); }

.btn-primary svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.btn-primary:hover svg { transform: translateX(-0.25rem); }

/* ============================================================
   PROSE PAGES (Privacy Policy, Terms of Service)
   ============================================================ */
.prose-page {
  flex: 1;
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.prose-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 3rem; }
.prose-content { display: flex; flex-direction: column; gap: 2rem; }
.prose-section h2 { font-size: 1.5rem; color: var(--fg); margin-bottom: 1rem; }
.prose-section p { color: var(--muted); font-weight: 300; line-height: 1.8; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .site-nav__brand { font-size: 1.5rem; }
  .portfolio__header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .division { flex-direction: row; align-items: center; }
  .division--reverse { flex-direction: row-reverse; }
  .division__image-wrap,
  .division__content { width: 50%; }
}

@media (max-width: 767px) {
  .site-nav__desktop { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
