/* ============================================================
   TAMMY HUDSON PHOTOGRAPHY — Main Stylesheet
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  --cream:      #F5F0E8;
  --charcoal:   #1C1C1C;
  --mauve:      #8B5E5E;
  --mauve-dark: #6f4a4a;
  --taupe:      #9E8B7A;
  --warm-white: #FAF8F4;
  --text-dark:  #2C2C2C;
  --text-light: #F5F0E8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Montserrat', Arial, sans-serif;
  --max-width:  1200px;
  --section-pad: 80px 40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: #fff;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; font-style: italic; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 400; }

p { font-size: 0.95rem; font-weight: 300; letter-spacing: 0.02em; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--mauve);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn:hover { background: var(--mauve-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--mauve);
  color: var(--mauve);
}
.btn-outline:hover { background: var(--mauve); color: #fff; }

/* --- Section Wrapper --- */
.section { padding: var(--section-pad); }
.section--cream  { background: var(--cream); }
.section--white  { background: #fff; }
.section--warm   { background: var(--warm-white); }
.section--dark   { background: var(--charcoal); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Section Heading (centered) --- */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}
.section-heading h2 { margin-bottom: 14px; }
.section-heading p {
  max-width: 640px;
  margin: 0 auto;
  color: #666;
  font-style: italic;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col--reversed { direction: rtl; }
.two-col--reversed > * { direction: ltr; }

.two-col__text h2,
.two-col__text h3 {
  margin-bottom: 18px;
}
.two-col__text p { margin-bottom: 24px; color: #555; }

.two-col__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* --- Three Column Cards --- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card { text-align: center; }
.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 16px;
}
.card h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0.05em; font-family: var(--font-sans); }

/* --- Four Column Gallery --- */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.four-col img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* --- Icon Row (3-up experience) --- */
.icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  padding: 20px 0;
}
.icon-row__item svg,
.icon-row__item img { margin: 0 auto 14px; }
.icon-row__item h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- CTA Bar --- */
.cta-bar {
  text-align: center;
  padding: 50px 40px;
  background: var(--cream);
}
.cta-bar p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text-dark);
}

/* --- Testimonial --- */
.testimonial {
  text-align: center;
  padding: 60px 40px;
  background: var(--warm-white);
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-dark);
  max-width: 760px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.testimonial cite {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--taupe);
  font-style: normal;
  text-transform: uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* WordPress admin bar pushes our fixed nav down when logged in */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 248, 244, 0.97);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  transition: padding 0.3s ease;
}
.site-nav.scrolled {
  padding: 11px 40px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-left a,
.nav-right a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-left a:hover,
.nav-right a:hover { color: var(--mauve); }

.nav-logo {
  text-align: center;
  line-height: 1.15;
}
.nav-logo .logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.nav-logo .logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

/* ============================================================
   HERO — Full Width
   ============================================================ */
.hero-full {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px; /* offset for fixed nav height */
}
.hero-full__bg {
  position: absolute;
  inset: 0;
  background-color: var(--charcoal);
}
.hero-full__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
}
.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,15,10,0.72) 45%, rgba(20,15,10,0.1) 100%);
}
.hero-full__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
}
.hero-full__content h1 { color: var(--text-light); margin-bottom: 16px; max-width: 520px; }
.hero-full__content .subtitle {
  color: rgba(245, 240, 232, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ============================================================
   HERO — Split (Artwork page)
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh;
  margin-top: 0;
  padding-top: 80px; /* offset for fixed nav */
}
.hero-split__text {
  background: var(--charcoal);
  display: flex;
  align-items: center;
  padding: 80px 60px;
}
.hero-split__text-inner .label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 20px;
}
.hero-split__text-inner h1 { color: var(--text-light); margin-bottom: 24px; }
.hero-split__text-inner p {
  color: rgba(245,240,232,0.75);
  margin-bottom: 36px;
  font-size: 0.9rem;
}
.hero-split__image { overflow: hidden; }
.hero-split__image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--text-light);
  padding: 60px 40px 30px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo .logo-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-logo .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 4px;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-light); }
.footer-social { display: flex; gap: 20px; justify-content: flex-end; align-items: flex-start; }
.footer-social a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--mauve); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.7rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.06em;
}

/* ============================================================
   PAGE-SPECIFIC: HOME
   ============================================================ */
.home-portraits-artwork { padding: var(--section-pad); background: var(--warm-white); }
.home-gallery { padding: 60px 0; background: var(--cream); }
.home-gallery .section-heading { padding: 0 40px; }

/* ============================================================
   PAGE-SPECIFIC: CHILDREN
   ============================================================ */
.children-storybook-gallery { padding: var(--section-pad); background: var(--cream); }
.children-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.children-gallery-grid__main img { width: 100%; height: 580px; object-fit: cover; }
.children-gallery-grid__side { display: flex; flex-direction: column; gap: 16px; }
.children-gallery-grid__side img { width: 100%; height: 280px; object-fit: cover; }
.children-gallery-grid__text { padding-top: 20px; }
.children-gallery-grid__text h3 { margin-bottom: 12px; }
.children-gallery-grid__text p { color: #555; margin-bottom: 24px; }

/* ============================================================
   PAGE-SPECIFIC: SANTA
   ============================================================ */
.santa-magic-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}
.santa-magic-grid__right img { width: 100%; height: 260px; object-fit: cover; margin-bottom: 12px; }
.santa-magic-grid__right h3 { margin-bottom: 10px; }
.santa-magic-grid__right p { color: #555; margin-bottom: 20px; }

.santa-begin {
  text-align: center;
  padding: 70px 40px;
  background: var(--charcoal);
  color: var(--text-light);
}
.santa-begin h2 { color: var(--text-light); margin-bottom: 16px; }
.santa-begin p { color: rgba(245,240,232,0.7); max-width: 520px; margin: 0 auto 30px; }

/* ============================================================
   PAGE-SPECIFIC: ARTWORK
   ============================================================ */
.artwork-wall-art { padding: var(--section-pad); background: var(--warm-white); }
.artwork-wall-art .two-col__text .icon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.artwork-wall-art .icon-label svg { color: var(--taupe); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { padding: 160px 40px 80px; background: var(--cream); text-align: center; }
.contact-hero h1 { font-style: normal; margin-bottom: 14px; }
.contact-hero p { color: #666; font-style: italic; }
.contact-section { padding: var(--section-pad); background: var(--warm-white); }
.contact-form-wrap { max-width: 640px; margin: 0 auto; }

/* WPForms overrides */
.wpforms-form .wpforms-field-label { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form input[type=tel],
.wpforms-form textarea,
.wpforms-form select {
  border: 1px solid #d0c9bf;
  border-radius: 0;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: #fff;
  width: 100%;
  transition: border-color 0.2s;
}
.wpforms-form input:focus,
.wpforms-form textarea:focus { border-color: var(--mauve); outline: none; }
.wpforms-submit-container button { background: var(--mauve) !important; border-radius: 0 !important; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem !important; padding: 14px 36px !important; }
.wpforms-submit-container button:hover { background: var(--mauve-dark) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .two-col { gap: 40px; }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .four-col img { height: 300px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 24px; }

  /* Nav */
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { padding: 16px 24px; }
  .site-nav.scrolled { padding: 13px 24px; }

  /* Mobile nav drawer */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-menu.open { opacity: 1; pointer-events: all; }
  .mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
  }
  .mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
  }

  /* Layouts */
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col--reversed { direction: ltr; }
  .two-col__image img { height: 320px; }
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .icon-row { grid-template-columns: 1fr; gap: 40px; }

  /* Hero */
  .hero-full { min-height: 75vh; }
  .hero-split { grid-template-columns: 1fr; padding-top: 0; }
  .hero-split__text { padding: 100px 24px 50px; }
  .hero-split__image { height: 320px; }

  /* Children gallery */
  .children-gallery-grid { grid-template-columns: 1fr; }
  .children-gallery-grid__main img { height: 360px; }
  .children-gallery-grid__side { flex-direction: row; }
  .children-gallery-grid__side img { height: 200px; }

  /* Santa */
  .santa-magic-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
  .four-col { grid-template-columns: 1fr; }
  .four-col img { height: 280px; }
  .children-gallery-grid__side { flex-direction: column; }
}
