/* =====================================================
   Kumlehn-Frank Family Website – Shared Stylesheet
   ===================================================== */

/* --- Custom Properties --- */
:root {
  --pink:        #E91E8C;
  --pink-light:  #F48FB1;
  --pink-soft:   #FCE4EC;
  --red:         #C62828;
  --red-light:   #EF5350;
  --red-soft:    #FFEBEE;
  --blue:        #1565C0;
  --blue-light:  #42A5F5;
  --blue-soft:   #E3F2FD;
  --black:       #1A1A1A;
  --dark:        #2D2D2D;
  --gray:        #666666;
  --gray-light:  #AAAAAA;
  --bg:          #FFFBFD;
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.75;
  font-size: 16px;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Shared --- */
section { padding: 100px 0; }

.section-badge {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.section-badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
}

.section-text {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-white {
  background: var(--white);
  color: var(--pink);
}
.btn-white:hover {
  background: var(--pink-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-submit {
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: var(--white);
  width: 100%;
  font-size: 1.1rem;
  padding: 16px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,30,140,0.35);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.nav-brand:hover { color: var(--pink); }

.brand-heart { color: var(--pink); font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--red));
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active       { color: var(--pink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO  (Home)
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--pink) 0%, var(--red) 55%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
  min-height: 88vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 480px; height: 480px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -140px; left: -60px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 88vh;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero photo frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame-hero {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.photo-frame-hero:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.75);
}

.photo-frame-hero .frame-icon { font-size: 3.5rem; }
.photo-frame-hero .frame-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.photo-frame-hero .frame-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about { background: var(--white); }

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.family-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.family-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.family-card:nth-child(1)::before { background: var(--pink); }
.family-card:nth-child(2)::before { background: var(--red); }
.family-card:nth-child(3)::before { background: var(--blue); }

.family-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-soft);
}

.card-icon { font-size: 2.4rem; margin-bottom: 16px; }

.family-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--black);
}
.family-card p { color: var(--gray); font-size: 0.95rem; }

/* =========================================================
   PHOTOS SECTION
   ========================================================= */
.photos { background: var(--bg); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}

/* --- Real photo items --- */
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pink-soft);
  margin: 0;
}
.photo-item.tall { grid-row: span 2; }
.photo-item.wide { grid-column: span 2; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.photo-item:hover img { transform: scale(1.06); }

.photo-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  padding: 40px 16px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}
.photo-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero photo (real image) --- */
.hero-photo {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  display: block;
}

/* =========================================================
   BLOG / UPDATES SECTION
   ========================================================= */
.blog { background: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.blog-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.blog-card:nth-child(1)::after { background: linear-gradient(90deg, var(--pink), var(--red)); }
.blog-card:nth-child(2)::after { background: var(--red); }
.blog-card:nth-child(3)::after { background: var(--blue); }

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.blog-card:hover::after { transform: scaleX(1); }

.blog-card.featured {
  background: linear-gradient(135deg, #FFF0F6, #FFF5F0);
  border-color: var(--pink-soft);
}

.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 50px;
}
.blog-card:nth-child(1) .blog-tag { background: var(--pink-soft); color: var(--pink); }
.blog-card:nth-child(2) .blog-tag { background: var(--red-soft);  color: var(--red); }
.blog-card:nth-child(3) .blog-tag { background: var(--blue-soft); color: var(--blue); }

.blog-date {
  font-size: 0.82rem;
  color: var(--gray-light);
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--black);
}
.blog-card p { font-size: 0.93rem; color: var(--gray); margin-bottom: 20px; }

.blog-read-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pink);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-read-more:hover { gap: 8px; color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  margin-top: 8px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.footer-links a {
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--pink); }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

/* Contact Hero */
.contact-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1A237E 50%, var(--black) 100%);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -40px;
  width: 360px; height: 360px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.contact-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 16px;
}
.contact-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin: 0 auto;
}

/* Contact Section */
.contact-section { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

/* Info column */
.contact-info h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.contact-info > p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }

.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-item:nth-child(1) .contact-item-icon { background: var(--pink-soft); }
.contact-item:nth-child(2) .contact-item-icon { background: var(--blue-soft); }
.contact-item:nth-child(3) .contact-item-icon { background: var(--red-soft); }

.contact-item-text h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  margin-bottom: 4px;
}
.contact-item-text p {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
}

/* Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.93rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid #E8E0E5;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  color: var(--black);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(233,30,140,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-light); }

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

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success .success-icon { font-size: 4rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--black); }
.form-success p { color: var(--gray); }

.form-success.visible { display: block; }
.contact-form-card form.hidden { display: none; }

/* =========================================================
   RESPONSIVE – TABLET  (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .family-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid   { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-column: span 2; }
  .contact-layout { gap: 36px; }
}

/* =========================================================
   RESPONSIVE – MOBILE  (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  /* Prevent horizontal overflow from decorative elements */
  body { overflow-x: hidden; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
  }
  .nav-links a::after { display: none; }
  .nav-links a.active,
  .nav-links a:hover { background: var(--pink-soft); }
  .navbar { position: relative; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 24px 48px;
    text-align: center;
  }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
  .photo-frame-hero { max-width: 280px; aspect-ratio: 1; }
  .hero-photo {
    max-width: 100%;
    margin: 0 auto;
  }

  /* About */
  .family-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Photos */
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .photo-item.tall { grid-row: span 1; }
  .photo-item.wide { grid-column: span 2; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: span 1; }

  /* Contact */
  .contact-hero { padding: 60px 24px 48px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Prevent iOS Safari from zooming on input focus */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  /* Footer */
  .footer-content { flex-direction: column; gap: 20px; }
  .footer-links { gap: 24px; }
}

/* =========================================================
   RESPONSIVE – SMALL MOBILE  (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .photo-item.wide,
  .photo-item.tall { grid-column: span 1; grid-row: span 1; }

  .hero-title { font-size: 2rem; }
  .hero-eyebrow { font-size: 0.72rem; }
  .btn { padding: 13px 28px; font-size: 0.95rem; }
  .section-title { font-size: 1.75rem; }
  .contact-form-card { padding: 24px 16px; }
  .blog-card,
  .family-card { padding: 28px 20px; }
}
