/* ============================================
   Charlotte Aasbie — Portfolio
   Soft Sage & Linen · Modern Editorial
   ============================================ */

/* Fonts are loaded via <link> tags in each HTML file */

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

:root {
  --bg:        #F4F1EB;
  --bg-alt:    #EDEAE2;
  --sage:      #9DAB86;
  --sage-dark: #B8725D;
  --sage-mist: #D4DACA;
  --text:      #2D2D2A;
  --text-mid:  #6E6B63;
  --text-soft: #9B978F;
  --white:     #FDFAF5;
  --border:    rgba(45, 45, 42, 0.10);
  --nav-bg:    #C4B9A8;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --nav-h:     72px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--nav-bg);
  border-bottom: none;
  transition: background 0.3s var(--ease);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--sage-dark); }

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

.nav__links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-dark);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--text);
  color: var(--text) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease) !important;
  border-radius: 2px;
}
.nav__cta:hover {
  background: var(--text) !important;
  color: var(--white) !important;
}
.nav__cta::after { display: none !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Mobile nav overlay */
.nav__mobile {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.nav__mobile.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
.nav__mobile a {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--sage-dark); }

/* ── Page Shell ─────────────────────────────── */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── Typography Utils ───────────────────────── */
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 12px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

.display {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.05;
}

.heading-xl { font-size: clamp(2rem, 4vw, 3.5rem); }
.heading-lg { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.heading-md { font-size: clamp(1.3rem, 2vw, 1.9rem); }

.body-lg {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
}

.body-sm {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn--dark {
  background: var(--text);
  color: var(--white);
}
.btn--dark:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn--outline:hover {
  background: var(--text);
  color: var(--white);
}

.btn--sage {
  background: var(--sage);
  color: var(--white);
}
.btn--sage:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  padding-left: 0;
  padding-right: 0;
  letter-spacing: 0.1em;
}
.btn--ghost::after {
  content: '→';
  font-family: var(--sans);
  transition: transform 0.2s var(--ease);
}
.btn--ghost:hover::after { transform: translateX(5px); }

/* ── Section Layout ─────────────────────────── */
.section {
  padding: 100px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header--center {
  text-align: center;
}

/* ── Image Placeholders ─────────────────────── */
.img-placeholder {
  background: var(--sage-mist);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}
.img-placeholder--landscape { aspect-ratio: 4 / 3; }
.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }

.img-placeholder img,
.img-placeholder .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Grid Layouts ───────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Dividers ───────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--nav-bg);
  color: var(--white);
  padding: 64px 48px 40px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
}

.footer__brand .footer__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.footer__brand p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.footer__col a {
  display: block;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}
.footer__socials {
  display: flex;
  gap: 20px;
}
.footer__socials a {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__socials a:hover { color: var(--white); }

/* ── Scroll reveal ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .container { padding: 0 32px; }
  .container--narrow { padding: 0 32px; }
  .footer { padding: 56px 32px 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
  .container { padding: 0 24px; }
  .container--narrow { padding: 0 24px; }
  .section { padding: 72px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer { padding: 48px 24px 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}
