/* ================================================
   STYLE.CSS — Variables, Reset, Global Utilities
   ================================================ */

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:      #FAF7F2;
  --cream2:     #F2EDE4;
  --ink:        #1E1A14;
  --ink2:       #3D3529;
  --warm:       #8B6F5E;
  --gold:       #C9A882;
  --rose:       #C4856A;
  --light:      #EDE8DF;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Nunito Sans', sans-serif;
  --transition: 0.35s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--warm); border-radius: 10px; }

/* ── Section base ── */
section {
  padding: 6rem 5%;
  scroll-margin-top: 70px;
}

/* ── Shared typography ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--rose);
}

.divider {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

/* ── Max width container ── */
.max-w {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 20px rgba(196, 133, 106, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(196, 133, 106, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink2);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Float keyframe (images) ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

/* ── Shimmer sweep (card hover) ── */
@keyframes shimmer {
  from { left: -120%; }
  to   { left: 120%;  }
}

/* ── Pulse glow (timeline dots) ── */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(196, 133, 106, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(196, 133, 106, 0.12); }
}

/* ── Responsive base ── */
@media (max-width: 700px) {
  section {
    padding: 4rem 5%;
  }
}

#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 8vw, 12rem);
  padding: 0 5%;
}

.hero-content {
  flex: 1;
    max-width: 600px;
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}



/* Single consolidated img rule — MUST stay before the mobile override */
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Base frame styles — uses min() so it scales on any viewport */
.hero-image-frame {
  width: min(380px, 54vw);
  height: min(380px, 54vw);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 4px solid var(--accent, #C4856A);
  background: var(--cream2);
  opacity: 0;
  animation: heroImgIn 0.9s 0.5s forwards, float 6s 1.4s ease-in-out infinite;
}

@keyframes heroImgIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Mobile — comes AFTER base rules so all overrides win */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-top: 0;
    padding-bottom: 4rem;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-image {
    order: -1;
    margin-top: 5.5rem;
  }
  .hero-image-frame img {
    object-fit: contain;
    object-position: center center;
  }
  .hero-scroll {
    bottom: 2rem;
  }
}

/* Intermediate screens 600–900px — frame scales up too large without this */
@media (min-width: 600px) and (max-width: 900px) {
  .hero-image-frame {
    width: 260px;
    height: 260px;
  }
  .hero-image {
    margin-top: 6rem;
  }
}

/* 700–870px — nav bar overlaps image top, push it further down */
@media (min-width: 700px) and (max-width: 870px) {
  .hero-image {
    margin-top: 9rem;
  }
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #c04040;
  margin-top: 4px;
  min-height: 1rem;
}
input.invalid, select.invalid, textarea.invalid {
  border-color: #c04040;
}

