/* ============================================
   Joni Klink Photos — Main Stylesheet
   ============================================
   Color palette:
     --bg        #faf6f1   page background
     --text      #2a1f15   primary text
     --text-sec  #7a5c42   secondary / muted text
     --accent    #c07a45   terracotta accent
     --surface   #f0e6da   card / section background
     --border    #ddd0c0   borders and dividers
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --bg:       #faf6f1;
  --text:     #2a1f15;
  --text-sec: #7a5c42;
  --accent:   #c07a45;
  --surface:  #f0e6da;
  --border:   #ddd0c0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
}

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

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

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: #2a1f15;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sec);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Hamburger "X" open state */
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */

.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Brooke_Senior-44.jpg');
  background-size: cover;
  background-position: center 30%;
  /* Dark overlay baked in with pseudo-element below */
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 6, 0.48);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  line-height: 1.05;
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Animated scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.35);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 0.9; transform: scaleY(1);   }
}

/* ============================================
   Split preview sections (Seniors / Families)
   ============================================ */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.split-image {
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.split-text {
  display: flex;
  align-items: center;
  padding: 80px 72px;
  background: var(--bg);
}

.split-text-inner {
  max-width: 420px;
}

/* Families section: image on right, text on left */
.split-section.reverse .split-image { order: 2; }
.split-section.reverse .split-text  { order: 1; }

.overline {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.split-text h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.25;
}

.split-text p {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 18px;
}

.price-note {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

/* Text link button with animated arrow */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: gap 0.25s ease, opacity 0.2s;
}

.btn:hover {
  gap: 16px;
  opacity: 0.75;
}

/* ============================================
   About section
   ============================================ */

.about-section {
  padding: 120px 40px;
  text-align: center;
}

.about-inner {
  max-width: 620px;
  margin: 0 auto;
}

.about-inner h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-style: italic;
  margin-bottom: 44px;
  color: var(--text);
}

.about-inner p {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.95;
  margin-bottom: 28px;
  text-align: left;
}

.about-inner p:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  text-align: center;
  margin-top: 8px;
}

/* ============================================
   Contact section
   ============================================ */

.contact-section {
  padding: 100px 40px;
  background: var(--surface);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-style: italic;
  margin-bottom: 14px;
  color: var(--text);
}

.subhead {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 52px;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Custom dropdown arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '↓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sec);
  pointer-events: none;
  font-size: 0.8rem;
}

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: #a86535;
  transform: translateY(-1px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-sec);
  letter-spacing: 0.04em;
}

.footer a {
  color: var(--text-sec);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

/* ============================================
   Gallery pages — page header
   ============================================ */

.page-header {
  padding: 88px 40px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}

.page-header h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-style: italic;
  margin-bottom: 14px;
  color: var(--text);
}

.page-header p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sec);
}

/* ============================================
   Masonry gallery grid
   ============================================ */

.gallery-grid {
  columns: 3;
  column-gap: 6px;
  padding: 0 40px 60px;
}

.gallery-grid img {
  width: 100%;
  display: block;
  margin-bottom: 6px;
  break-inside: avoid;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: zoom-in;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

/* ============================================
   Pricing card (below galleries)
   ============================================ */

.pricing-card {
  margin: 0 40px 80px;
  padding: 60px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.pricing-card p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ============================================
   Responsive — tablet (≤ 900px)
   ============================================ */

@media (max-width: 900px) {

  .nav {
    padding: 0 24px;
  }

  /* Stack split sections vertically */
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Force image first on both sections when stacked */
  .split-section .split-image,
  .split-section.reverse .split-image {
    order: 1;
    height: 58vw;
  }

  .split-section .split-text,
  .split-section.reverse .split-text {
    order: 2;
    padding: 56px 40px;
  }

  .split-text-inner { max-width: 100%; }

  .gallery-grid { columns: 2; }

  .about-section  { padding: 80px 32px; }
  .contact-section { padding: 80px 32px; }
  .page-header    { padding: 60px 24px 40px; }
  .gallery-grid   { padding: 0 24px 48px; }
  .pricing-card   { margin: 0 24px 60px; }
  .footer         { padding: 24px; }
}

/* ============================================
   Responsive — mobile (≤ 600px)
   ============================================ */

@media (max-width: 600px) {

  /* Show hamburger, hide desktop nav links */
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px 32px;
  }

  .nav-menu.open { display: block; }

  .nav-links {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }

  .nav-links a { font-size: 0.85rem; }

  /* Single-column gallery on mobile */
  .gallery-grid {
    columns: 1;
    padding: 0 16px 40px;
  }

  .split-section .split-image,
  .split-section.reverse .split-image {
    height: 72vw;
  }

  .split-section .split-text,
  .split-section.reverse .split-text {
    padding: 48px 24px;
  }

  .hero-headline { font-size: 2.8rem; }

  .about-section  { padding: 72px 20px; }
  .contact-section { padding: 72px 20px; }

  .pricing-card { margin: 0 16px 48px; padding: 44px 24px; }

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

/* ============================================
   Nav logo image
   ============================================ */

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ============================================
   Hero Carousel
   ============================================ */

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

/* Shared dark overlay sits above all slides */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 6, 0.48);
  pointer-events: none;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.25);
}

/* Hero description paragraph */
.hero-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  max-width: 480px;
  margin: 22px auto 0;
  text-align: center;
}

/* ============================================
   About circular portrait
   ============================================ */

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% top;
  transform: scale(1.3);
  transform-origin: center top;
  border: 3px solid #ddd0c0;
  display: block;
  margin: 0 auto 36px;
}

/* ============================================
   Seniors split section subtitle
   (replaces the h2 heading in that section)
   ============================================ */

.split-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ============================================
   Footer logo image
   ============================================ */

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: #2a1f15;
  letter-spacing: 0.02em;
}
