/* ============================================
   Marina DeVol Photography — Brand Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --sage: #5E6B52;
  --sage-muted: #7C8272;
  --fog: #EDEDE8;
  --cream: #F4F3EE;
  --charcoal: #33372E;
  --stone: #C9CABD;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Poppins', sans-serif;

  --max-width: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

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

/* ---------- Frame / sprocket motif (signature element) ---------- */
/* Used as structural section dividers — nods to a contact-sheet frame */

.frame-marker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--sage-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.frame-marker .sprockets {
  display: flex;
  gap: 5px;
}

.frame-marker .sprockets span {
  width: 5px;
  height: 5px;
  background: var(--stone);
  border-radius: 1px;
}

.frame-marker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

.logo span { color: var(--sage); }

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-grid .logo img { height: 46px; }

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] { color: var(--sage); }

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  font-size: 0.82rem !important;
}

.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--charcoal);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }

/* ---------- Placeholder image slots ---------- */

.img-slot {
  background: linear-gradient(135deg, var(--stone) 0%, var(--fog) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.img-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed var(--sage-muted);
  margin: 10px;
  opacity: 0.5;
}

.img-slot span { position: relative; max-width: 220px; }

.img-slot.has-img {
  background: none;
}
.img-slot.has-img::before { display: none; }
.img-slot.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.hero .img-slot { position: absolute; inset: 0; z-index: 0; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,55,46,0) 30%, rgba(51,55,46,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: var(--space-lg) var(--space-md);
  width: 100%;
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero-content .eyebrow { color: var(--fog); }

.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--white);
  max-width: 14ch;
}

.hero-content p {
  max-width: 42ch;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--fog);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: var(--space-xl) 0; }
section.tight { padding: var(--space-lg) 0; }
.bg-fog { background: var(--fog); }
.bg-sage { background: var(--sage); color: var(--white); }
.bg-sage h2, .bg-sage h3 { color: var(--white); }
.bg-charcoal { background: var(--charcoal); color: var(--fog); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-top: var(--space-xs);
}

.section-head p { color: var(--sage-muted); margin-top: var(--space-sm); }
.bg-sage .section-head p, .bg-charcoal .section-head p { color: var(--fog); opacity: 0.85; }

/* ---------- Grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }

/* ---------- Portfolio masonry-ish ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.gallery .img-slot { aspect-ratio: 4/5; }
.gallery .img-slot.tall { aspect-ratio: 4/6; }
.gallery .img-slot.wide { aspect-ratio: 8/5; grid-column: span 2; }

.filter-tabs {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--stone);
  padding-bottom: var(--space-sm);
}

.filter-tabs button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--sage-muted);
  cursor: pointer;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: var(--charcoal);
  border-bottom-color: var(--sage);
}

/* ---------- Pricing cards ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--sage);
  box-shadow: 0 18px 40px -22px rgba(94,107,82,0.45);
  transform: translateY(-8px);
}

.price-card .tag {
  position: absolute;
  top: -12px;
  left: var(--space-md);
  background: var(--sage);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.price-card h3 { font-size: 1.5rem; }

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sage);
  margin: var(--space-xs) 0;
}

.price-card .duration {
  font-size: 0.82rem;
  color: var(--sage-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--fog);
}

.price-card ul {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.price-card ul li {
  padding-left: 1.2rem;
  position: relative;
}

.price-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sage);
}

.price-card .btn { margin-top: var(--space-md); text-align: center; }

/* Mini add-ons */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-md);
}

.mini-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--stone);
  gap: var(--space-sm);
}

.mini-item .mi-name { font-weight: 500; }
.mini-item .mi-window { font-size: 0.78rem; color: var(--sage-muted); display: block; margin-top: 2px; }
.mini-item .mi-price { font-family: var(--font-display); color: var(--sage); white-space: nowrap; }

.bundle-note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--sage-muted);
}

/* Enhancements + gallery upgrade table */

.simple-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table td {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--stone);
}

.simple-table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  color: var(--sage);
  white-space: nowrap;
}

/* ---------- Testimonial / quote ---------- */

.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-block .mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--sage);
  line-height: 1;
}

.quote-block p.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--charcoal);
  margin: var(--space-sm) 0;
}

/* ---------- About page specifics ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-hero .img-slot { aspect-ratio: 4/5; }

.stat-row {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage);
}

.stat-row .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-muted);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info dt {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: var(--space-md);
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 1.1rem; margin-top: 0.3rem; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }

.contact-form label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-muted);
  margin-bottom: 0.35rem;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--stone);
  background: var(--white);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.contact-form .field { margin-bottom: var(--space-xs); }

.social-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-row a {
  border: 1px solid var(--stone);
  padding: 0.6rem 1.1rem;
  border-radius: 2px;
  font-size: 0.85rem;
}
.social-row a:hover { border-color: var(--sage); color: var(--sage); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--stone);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.footer-grid .logo { color: var(--white); margin-bottom: var(--space-xs); }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--sage-muted);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .pricing-grid, .mini-grid, .contact-grid, .about-hero, .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .img-slot.wide { grid-column: span 2; }
  .price-card.featured { transform: none; }
  .about-hero { gap: var(--space-md); }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    border-bottom: 1px solid var(--stone);
    display: none;
    gap: var(--space-sm);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { max-width: 100%; }
}
