/* =============================================
   HANNAH SMITH PHOTOGRAPHY — style.css
   ============================================= */

@import url('https://fonts.cdnfonts.com/css/sofia-pro');

:root {
  --white: #ffffff;
  --off-white: #fafaf9;
  --light: #eeece9;
  --mid: #999690;
  --dark: #1e1c1a;
  --black: #111010;
  --nav-height: 64px;
  --transition: 0.3s ease;
  --font: 'Sofia Pro', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.nav-logo {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dark);
}
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dark);
  opacity: 0.55;
  transition: opacity var(--transition);
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }

/* ── HERO — full natural size, no crop, no text ── */
.hero {
  margin-top: var(--nav-height);
  width: 100%;
  line-height: 0;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── WELCOME — centered ── */
.welcome {
  text-align: center;
  padding: 80px 40px 72px;
}
.welcome h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--dark);
}

/* ── CAROUSEL ── */
#work {
  padding-bottom: 0;
}
.carousel-outer {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  flex-shrink: 0;
  padding: 0 4px;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}
.carousel-btn:hover { background: var(--white); }
.carousel-btn svg { width: 14px; height: 14px; stroke: var(--dark); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ── CAPTION ── */
.caption-block {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 52px 40px 72px;
  border-top: 1px solid var(--light);
}
.caption-title {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.caption-body {
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--mid);
  letter-spacing: 0.02em;
  max-width: 620px;
}

/* ── GALLERY — dark section ── */
.gallery-section {
  background: var(--black);
  padding: 72px 40px 80px;
}

/*
  CSS columns masonry — images keep exact natural proportions.
  To REORDER photos: change the order of .g-item blocks in the HTML.
  To ADD more: copy a .g-item block and update the image src.
*/
.gallery-cluster {
  columns: 3;
  column-gap: 8px;
}
.gallery-cluster .g-item {
  break-inside: avoid;
  margin-bottom: 8px;
}
.gallery-cluster .g-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.88);
  transition: filter 0.4s ease;
}
.gallery-cluster .g-item:hover img {
  filter: brightness(1);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}
.footer-icons { display: flex; gap: 20px; }
.footer-icons a {
  color: rgba(255,255,255,0.25);
  transition: color var(--transition);
}
.footer-icons a:hover { color: rgba(255,255,255,0.7); }
.footer-icons svg { width: 17px; height: 17px; }

/* ── CONTACT PAGE ── */
.contact-wrap {
  margin-top: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-height));
}
.contact-dark {
  background: var(--dark);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-dark .eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
  display: block;
}
.contact-dark h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 52px;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 52px;
}
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.3);
  flex-shrink: 0;
  margin-top: 3px;
}
.c-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  display: block;
  margin-bottom: 4px;
}
.c-value { font-size: 0.88rem; color: var(--white); }
a.c-value:hover { color: rgba(255,255,255,0.6); }

.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: border-color var(--transition), color var(--transition);
}
.social-row a:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.7); }
.social-row svg { width: 16px; height: 16px; }

/* Contact right panel — portrait photo */
.contact-photo {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 520px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 28px; }
  .caption-block { flex-direction: column; gap: 20px; padding: 40px 24px 56px; }
  .gallery-section { padding: 56px 24px 64px; }
  .gallery-cluster { columns: 2; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-dark { padding: 56px 24px; }
  .contact-photo { padding: 40px 24px; }
  footer { padding: 20px 24px; flex-direction: column; gap: 14px; text-align: center; }
}
@media (max-width: 560px) {
  .gallery-cluster { columns: 1; }
  .welcome { padding: 56px 24px 48px; }
}
