/* ============================================================
   Isabella Grace Photography — Shared Stylesheet
   Light & airy: cream, blush, sage, warm taupe
   ============================================================ */

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

:root {
  --cream: #FAF6F0;
  --cream-deep: #F2EAE0;
  --blush: #EFD9D2;
  --blush-deep: #E6C3B8;
  --sage: #EFE2CB;
  --sage-deep: #6B6156;
  --taupe: #6B5E52;
  --taupe-dark: #6B6156;
  --bg-dark: #4A3F35;
  --white: #FFFFFF;
  --gold: #DDC39D;
  --pink: #E7A9BC;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--taupe-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--taupe-dark);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: 3.4rem; line-height: 1.1; }
h2 { font-size: 2.4rem; line-height: 1.2; }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9em;
}

img, .ph { display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--taupe-dark);
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--bg-dark); color: var(--white); border-color: var(--bg-dark); }

.btn-solid {
  background: var(--bg-dark);
  color: var(--white);
}
.btn-solid:hover { background: var(--white); border-color: var(--bg-dark); color: var(--bg-dark); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(107, 94, 82, 0.12);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
.logo span { color: var(--pink); font-style: italic; }
.logo .logo-tag {
  font-size: 1em;
  font-style: normal;
  letter-spacing: 0.03em;
  color: var(--taupe-dark);
  margin-left: 6px;
  vertical-align: middle;
}
footer.site-footer .logo .logo-tag { color: #000000; }

nav.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px 32px 26px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(107,94,82,0.12);
  }
  nav.main-nav ul.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--taupe-dark);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 110px;
  text-align: center;
}
.hero .eyebrow { display: block; }
.hero h1 { max-width: 780px; margin: 0 auto 0.4em; }
.hero .sub {
  max-width: 520px;
  margin: 0 auto 2em;
  color: var(--taupe);
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Placeholder photo blocks ---------- */
.ph {
  position: relative;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream-deep) 45%, var(--sage) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.55) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(255,255,255,0.35) 0%, transparent 50%);
}
.ph-label {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  background: rgba(255,255,255,0.55);
  border-top-right-radius: 3px;
}

/* Real photo support: an <img class="ph-img"> as first child of .ph fills the box */
.ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ph.has-photo::before { display: none; }
.ph.has-photo .ph-label {
  background: rgba(38,32,27,0.45);
  color: var(--cream);
}
.ph-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.5;
  width: 15%;
  min-width: 28px;
  max-width: 46px;
}
.ph.ratio-square { aspect-ratio: 1 / 1; }
.ph.ratio-portrait { aspect-ratio: 3 / 4; }
.ph.ratio-landscape { aspect-ratio: 4 / 3; }
.ph.ratio-wide { aspect-ratio: 16 / 9; }
.ph.tone-blush { background: linear-gradient(135deg, var(--blush-deep) 0%, var(--blush) 50%, var(--cream) 100%); }
.ph.tone-sage { background: linear-gradient(135deg, var(--sage) 0%, var(--cream-deep) 50%, var(--sage-deep) 100%); }
.ph.tone-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--cream) 55%, var(--blush) 100%); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--cream-deep); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

/* ---------- Category / Portfolio Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.category-card { text-align: center; }
.category-card .ph { margin-bottom: 18px; }
.category-card h3 { margin-bottom: 6px; }
.category-card p.count { color: var(--taupe); font-size: 0.85rem; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid.cols-2 { grid-template-columns: 1fr; }
  /* keep photo grids 2-up on phones so every picture keeps the same size and shape */
  .grid, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 60px 0 70px; }
}

/* ---------- Two column feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-img { order: 1; }
@media (max-width: 800px) {
  .feature, .feature.reverse .feature-text, .feature.reverse .feature-img { order: initial; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Filter tabs (portfolio) ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.filter-tabs button {
  background: transparent;
  border: 1px solid rgba(107,94,82,0.3);
  border-radius: 999px;
  padding: 9px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--taupe);
  transition: all 0.2s ease;
}
.filter-tabs button:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.filter-tabs button.active { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--white); }

.portfolio-item { display: none; }
.portfolio-item.show { display: block; }

.grid .group-label {
  grid-column: 1 / -1;
  margin: 10px 0 -4px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.grid .group-label:first-child { margin-top: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.pricing-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border: 1px solid rgba(107,94,82,0.12);
  padding: 44px 34px;
  text-align: center;
  border-radius: 4px;
  position: relative;
}
.price-card.featured { border-color: var(--gold); box-shadow: 0 12px 30px rgba(201,168,118,0.18); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px;
}
.price-card .amount {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 14px 0 6px;
  color: var(--sage-deep);
}
.price-card .amount small { font-size: 1rem; color: var(--taupe); font-family: 'Jost', sans-serif; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 30px; text-align: left; }
.price-card ul li {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(107,94,82,0.15);
  font-size: 0.94rem;
  color: var(--taupe);
}
.price-card ul li:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .pricing-grid, .pricing-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.blog-card .ph { margin-bottom: 18px; }
.blog-meta { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 6px; }
.blog-card h3 { margin-bottom: 8px; }
.blog-card p { color: var(--taupe); font-size: 0.95rem; }
.read-more { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--taupe-dark); padding-bottom: 2px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial p.quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--taupe-dark);
  line-height: 1.5;
}
.testimonial .who {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 18px;
}

/* ---------- Testimonial carousel (auto-fade + manual, homepage) ---------- */
#testimonial-carousel {
  position: relative;
  min-height: 200px;
  padding: 0 56px;
}
.testimonial-slide {
  display: none;
  animation: testimonialFade 0.9s ease;
}
.testimonial-slide.is-active {
  display: block;
}
@keyframes testimonialFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--blush-deep);
  background: transparent;
  color: var(--taupe-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.testimonial-arrow:hover {
  background: var(--bg-dark);
  color: var(--white);
  border-color: var(--bg-dark);
}
.testimonial-arrow.prev { left: 0; }
.testimonial-arrow.next { right: 0; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--blush-deep);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.testimonial-dots button.is-active {
  opacity: 1;
  transform: scale(1.2);
}
@media (max-width: 640px) {
  #testimonial-carousel { padding: 0 44px; }
  .testimonial-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
form.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 8px;
}
form.contact-form .field { margin-bottom: 22px; }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(107,94,82,0.25);
  background: var(--white);
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--taupe-dark);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}

.info-block { margin-bottom: 30px; }
.info-block .label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 6px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--cream-deep);
  color: var(--taupe-dark);
  padding: 60px 0 30px;
}
footer.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}
footer.site-footer .logo { color: #000000; }
footer.site-footer .logo span { color: var(--pink); }
footer.site-footer nav ul {
  list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; flex-wrap: wrap;
}
footer.site-footer nav a { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
footer.site-footer nav a:hover { opacity: 1; color: var(--pink); }
footer.site-footer .social { display: flex; gap: 18px; }
footer.site-footer .bottom {
  border-top: 1px solid rgba(107,97,86,0.2);
  padding-top: 24px;
  font-size: 0.78rem;
  opacity: 0.75;
  text-align: center;
}

.about-hero { text-align: center; padding-bottom: 20px; }
.about-hero .ph { max-width: 340px; margin: 0 auto 30px; }
.about-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 30px;
}
.about-collage .ph { margin: 0; }
@media (max-width: 480px) {
  .about-collage { max-width: 300px; gap: 8px; }
}

.stats-row { display: flex; justify-content: center; gap: 60px; text-align: center; margin-top: 50px; flex-wrap: wrap; }
.stats-row .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--sage-deep); }
.stats-row .lbl { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); }

/* Footer Instagram link */
footer.site-footer .social a.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--bg-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  transition: background 0.2s ease, color 0.2s ease;
}
footer.site-footer .social a.ig-link:hover {
  background: var(--bg-dark);
  color: var(--white);
}
