/* ============================================================
   LAURA BETTO – Static Site Stylesheet
   Aesthetic: Editorial luxury, refined minimalism
   ============================================================ */

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

/* ── Variables ── */
:root {
  --bg:        #080808;
  --surface:   #111111;
  --text:      #f0ede8;
  --muted:     #888880;
  --accent:    #c9a96e;
  --white:     #ffffff;
  --nav-h:     70px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Navbar ── */
.navbar {
  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: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0) 100%);
  transition: background 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.navbar__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}
.navbar__logo:hover { color: var(--accent); }

.navbar__nav {
  display: flex;
  gap: 40px;
  list-style: none;
}
.navbar__nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.navbar__nav a:hover,
.navbar__nav a.active { color: var(--text); }
.navbar__nav a:hover::after,
.navbar__nav a.active::after { width: 100%; }

/* ── Burger (mobile) ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.laurabetto.com/wp-content/uploads/2018/04/MG_4734-e1525091115735.jpeg');
  background-size: cover;
  background-position: center top;
  opacity: 0.55;
  transform: scale(1.05);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.3) 0%,
    rgba(8,8,8,0.1) 40%,
    rgba(8,8,8,0.6) 100%
  );
}
.hero__content {
  position: relative;
  text-align: center;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.3s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.5s;
}
.hero__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.4s;
}
.hero__name em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  font-size: 0.75em;
  letter-spacing: 0.1em;
}
.hero__divider {
  width: 40px; height: 1px;
  background: var(--accent);
  margin: 28px auto;
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.6s;
}
.hero__cta {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(201,169,110,0.5);
  padding: 14px 36px;
  transition: all 0.35s var(--ease);
  animation: fadeUp 1.2s var(--ease) both;
  animation-delay: 0.7s;
}
.hero__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s var(--ease) both;
  animation-delay: 1.2s;
}
.hero__scroll span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── Section Titles ── */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
 
}
.section-title::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ── Portfolio Preview (Home) ── */
.preview {
  padding: 100px 48px;
}
.preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 52px;
}
.preview__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.preview__item:hover img { transform: scale(1.06); }
.preview__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.4s;
}
.preview__item:hover .preview__item-overlay {
  background: rgba(8,8,8,0.4);
}
.preview__item-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}
.preview__item:hover .preview__item-num {
  opacity: 0.9;
  transform: translateY(0);
}
.preview__link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s;
}
.preview__link::after {
  content: '→';
  font-size: 20px;
  transition: transform 0.3s;
}
.preview__link:hover { gap: 20px; }
.preview__link:hover::after { transform: translateX(4px); }

/* ── Portfolio Page ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 60px;
  padding-left: 48px;
  padding-right: 48px;
}
.page-hero__breadcrumb {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-hero__breadcrumb a { transition: color 0.3s; }
.page-hero__breadcrumb a:hover { color: var(--accent); }
.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.portfolio-section { padding: 0 48px 100px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
}
.portfolio-item:nth-child(3n+1) { aspect-ratio: 3/4; }
.portfolio-item:nth-child(3n+2) { aspect-ratio: 4/5; }
.portfolio-item:nth-child(3n+3) { aspect-ratio: 2/3; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: background 0.4s;
}
.portfolio-item:hover .portfolio-item-overlay {
  background: rgba(8,8,8,0.35);
}
.portfolio-item-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-item-num {
  opacity: 0.85;
  transform: translateY(0);
}

/* ── Contact Page ── */
.contact-section {
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-image {
  position: relative;
  overflow: hidden;
}
.contact-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
}
.contact-info { padding-top: 20px; }
.contact-info__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.contact-info__email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 48px;
  display: block;
  transition: color 0.3s;
}
.contact-info__email:hover { color: var(--accent); }
.contact-info__text {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 48px;
}
.contact-info__btn {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 40px;
  transition: all 0.35s var(--ease);
}
.contact-info__btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.footer__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer__logo:hover { color: var(--accent); }

/* ── Fade-in on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .navbar__nav { display: none; }
  .burger { display: flex; }

  .preview { padding: 80px 24px; }
  .preview__grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero { padding-left: 24px; padding-right: 24px; }

  .portfolio-section { padding: 0 24px 80px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-section {
    grid-template-columns: 1fr;
    padding: 0 24px 80px;
    gap: 40px;
  }
  .contact-image img { height: 400px; }

  footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 560px) {
  .preview__grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { aspect-ratio: 3/4 !important; }
  .hero__name { font-size: 52px; }
}
