/* ============================================================
   TEMPLATE CONFIG — swap these vars for any model
   ============================================================ */
:root {
  --brand-name: "Tessa Capri";

  /* Colors */
  --bg:          #0d0d0d;
  --surface:     #161616;
  --surface-2:   #1e1e1e;
  --border:      #2a2a2a;
  --text:        #f0ede8;
  --text-muted:  #888;
  --accent:      #c8a96e;
  --accent-light:#e0c896;
  --white:       #ffffff;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --t: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

.divider--center { margin: 1.5rem auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  transition: background var(--t), backdrop-filter var(--t);
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color var(--t);
}
.nav__logo:hover { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }

.nav__cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  transition: background var(--t) !important;
}
.nav__cta:hover { background: var(--accent-light) !important; }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: var(--t);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
  filter: brightness(0.72);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.85) 0%,
    rgba(13,13,13,0.3) 45%,
    rgba(13,13,13,0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(3.5rem, 8vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: 1rem;
}

.hero__title {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(240,237,232,0.75);
  max-width: 420px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(240,237,232,0.35);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============================================================
   ABOUT TEASER (homepage)
   ============================================================ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-teaser__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
}

.about-teaser__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.about-teaser__img-wrap:hover img { transform: scale(1.03); }

.about-teaser__text h2 { margin-bottom: 1.2rem; }

.about-teaser__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-teaser__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.fact-item {
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}
.fact-item__label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fact-item__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.gallery-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* Tall feature item */
.gallery-item--tall { aspect-ratio: 3/5; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header--center { text-align: center; }
.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin-top: 0.75rem;
}
.section-header--center p { margin: 0.75rem auto 0; }

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.social-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.social-strip__grid {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.social-card {
  text-align: center;
  min-width: 120px;
}
.social-card__count {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}
.social-card__platform {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__img img { transform: scale(1.05); }

.blog-card__body {
  padding: 1.5rem;
}
.blog-card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--t);
}
.blog-card__link:hover { color: var(--accent-light); }

/* ============================================================
   LINKS PAGE
   ============================================================ */
.links-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}

.links-container {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.links-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
  margin: 0 auto 1.25rem;
}

.links-name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.links-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  transition: all var(--t);
  cursor: pointer;
}
.link-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.link-btn__icon {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.link-btn__label { flex: 1; text-align: center; }

.link-btn--featured {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.link-btn--featured:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  position: relative;
  height: clamp(400px, 55vw, 650px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.55);
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.2) 60%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

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

.facts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.facts-card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.facts-card__header h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.facts-list {
  padding: 1rem 0;
}
.facts-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid rgba(42,42,42,0.5);
  font-size: 0.85rem;
}
.facts-row:last-child { border-bottom: none; }
.facts-row__key {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts-row__val {
  color: var(--text);
  font-weight: 400;
  text-align: right;
}

.bio-text h2 { margin-bottom: 1.5rem; }
.bio-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.post-hero {
  position: relative;
  height: clamp(350px, 45vw, 550px);
  overflow: hidden;
  padding-top: var(--nav-h);
  display: flex;
  align-items: flex-end;
}
.post-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.5);
}
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 60%);
}
.post-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.post-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.post-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.post-body h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.post-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.post-meta__author { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.footer__brand-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer__col-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Social icons in footer */
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--t);
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--t);
}
.lightbox__close:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-grid--4col { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .bio-section { grid-template-columns: 1fr; }
  .facts-card { position: static; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav__links.open a {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
  .nav__toggle { display: flex; }

  .about-teaser { grid-template-columns: 1fr; }
  .gallery-grid--4col,
  .gallery-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .gallery-grid--4col,
  .gallery-grid--3col { grid-template-columns: 1fr 1fr; }
  .about-teaser__facts { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
