/* ============================================================
   Lasma Lagzdina Photography — styles.css
   Palette: natural greens + warm, soft neutrals
   ============================================================ */

:root {
  --forest: #0e3c25;
  --forest-2: #17422b;
  --sage: #526e57;
  --sage-2: #6b8570;
  --sage-light: #acbbaf;
  --sage-soft: #dfe7e0;
  --cream: #f7f3ec;
  --cream-2: #f2ece1;
  --sand: #eae0d0;
  --amber: #c89b6d;
  --amber-dark: #a97c4f;
  --ink: #23302a;
  --ink-soft: #4c5852;
  --white: #ffffff;
  --line: rgba(82, 110, 87, 0.18);
  --shadow: 0 18px 45px -18px rgba(14, 60, 37, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(14, 60, 37, 0.3);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

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

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

em { font-style: italic; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin: 0 0 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-lede { color: var(--ink-soft); font-size: 1.06rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.7rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--sage); color: #fff; }
.btn-secondary:hover { background: var(--forest); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }

.text-link { font-weight: 600; color: var(--sage); border-bottom: 1.5px solid var(--sage-light); transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--forest); border-color: var(--forest); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.05;
  display: flex; flex-direction: column; color: var(--forest);
}
.brand-name em { font-size: 0.72rem; font-style: normal; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: color .2s; }
.main-nav a:hover { color: var(--sage); }
.main-nav .nav-cta { background: var(--forest); color: #fff; padding: 0.6rem 1.3rem; border-radius: 999px; }
.main-nav .nav-cta:hover { background: var(--forest-2); color: #fff; }
.nav-mobile-only { display: none; }
.nav-social { display: flex; align-items: center; gap: 0.6rem; }
.nav-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--forest);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-social a:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,60,37,0.35) 0%, rgba(14,60,37,0.15) 38%, rgba(14,60,37,0.82) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(880px, 100% - 3rem);
  margin-inline: auto;
  padding: 6rem 0 clamp(3.5rem, 8vh, 6rem);
  text-align: center;
}
.hero-eyebrow { font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--sage-soft); margin: 0 0 1.1rem; }
.hero-title { color: #fff; font-size: clamp(2.25rem, 6vw, 4.4rem); margin-bottom: 0.6rem; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.94); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 620px; margin-inline: auto; margin-bottom: 1.8rem; text-shadow: 0 1px 18px rgba(0,0,0,0.3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.8rem 0 0; justify-content: center; }
.hero-badges li { font-size: 0.82rem; letter-spacing: 0.05em; padding: 0.4rem 0.95rem; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: center; }
.intro-text h2 { margin-bottom: 1.2rem; }
.intro-text p { color: var(--ink-soft); font-size: 1.08rem; }
.intro-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat { padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--sage); line-height: 1; }
.stat-label { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Services ---------- */
.services { background: var(--cream-2); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon { font-size: 1.5rem; color: var(--amber); }
.service-media { margin: -0.4rem 0 0.9rem; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #f3efe6; }
.service-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card h3 { font-size: 1.3rem; margin: 0.7rem 0 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.service-card-cta { background: var(--forest); color: #fff; border-color: var(--forest); display: flex; flex-direction: column; }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: rgba(255,255,255,0.85); flex: 1; }
.service-card-cta .btn-primary { background: #fff; color: var(--forest); margin-top: 0.6rem; }
.service-card-cta .btn-primary:hover { background: var(--sand); }

/* ---------- Portfolio ---------- */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-btn {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 0.5rem 1.2rem; border-radius: 999px; transition: all .2s;
}
.filter-btn:hover { border-color: var(--sage); color: var(--sage); }
.filter-btn.active { background: var(--forest); color: #fff; border-color: var(--forest); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm);
  cursor: pointer; background: var(--sand); font: inherit; color: inherit; text-align: inherit;
}
.photo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .35s;
  background: linear-gradient(180deg, transparent 40%, rgba(14,60,37,0.55) 100%);
}
.photo-card:hover::after { opacity: 1; }
.photo-card-caption { position: absolute; left: 1rem; bottom: 0.9rem; right: 1rem; z-index: 2; color: #fff; opacity: 0; transform: translateY(6px); transition: all .35s; font-family: var(--font-display); font-size: 1.1rem; }
.photo-card:hover .photo-card-caption { opacity: 1; transform: none; }

.portfolio-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 2rem; }

/* ---------- Feature ---------- */
.feature { background: var(--forest); color: #fff; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: 100%; }
.feature-text h2 { color: #fff; }
.feature-text p { color: rgba(255,255,255,0.85); }
.feature-text .eyebrow { color: var(--amber); }
.feature blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem; line-height: 1.4;
  color: var(--sage-soft); border-left: 3px solid var(--amber); margin: 1.6rem 0; padding-left: 1.4rem;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-media-note {
  position: absolute; right: -0.5rem; bottom: 2rem; background: #fff; color: var(--sage);
  font-size: 0.85rem; font-weight: 500; padding: 0.6rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.about-text p { color: var(--ink-soft); font-size: 1.06rem; }
.about-signature { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--sage); margin-top: 1.6rem; }
.about-signature span { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream-2); }
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--forest); padding: 1.25rem 1.5rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--sage); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
.contact-lede { color: var(--ink-soft); font-size: 1.05rem; }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 0.1rem; }
.contact-list a { color: var(--sage); font-weight: 500; }
.contact-list a:hover { color: var(--forest); }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--forest); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.form-status { font-size: 0.95rem; margin: 0; min-height: 1.3em; }
.form-status.success { color: var(--forest); }
.form-status.error { color: #a33; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,0.82); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 0.9rem; }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer-name em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage-light); }
.footer-brand p { font-size: 0.93rem; }
.footer-col h3, .footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer-col a { display: block; margin-bottom: 0.55rem; color: rgba(255,255,255,0.82); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.93rem; margin: 0 0 0.4rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.82); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 18, 0.94); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; max-width: 90vw; max-height: 86vh; }
.lightbox-figure img { max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: 8px; object-fit: contain; }
.lightbox-figure figcaption { color: rgba(255,255,255,0.8); margin-top: 0.9rem; font-size: 0.95rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Seasonal campaign banner ---------- */
.campaign-banner { background: var(--sand); border-bottom: 1px solid var(--line); }
.campaign-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.campaign-banner-text { max-width: 70ch; }
.campaign-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-dark); margin: 0 0 0.2rem; }
.campaign-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--forest); margin: 0 0 0.15rem; }
.campaign-sub { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.campaign-banner-btn { flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1.25rem 1.5rem 1.5rem; gap: 0.9rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
    max-height: calc(100vh - 78px); max-height: calc(100svh - 78px); overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav > a { padding: 0.4rem 0; font-size: 1.05rem; }
  .main-nav .nav-mobile-only { display: block; }
  .main-nav .nav-cta { text-align: center; margin-top: 0.4rem; }
  .nav-social { justify-content: center; gap: 0.8rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
  .nav-social a { width: 44px; height: 44px; }
  .intro-grid, .feature-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-media-note { right: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

@media (max-width: 520px) {
  .brand { gap: 0.6rem; }
  .brand img { height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .brand-name em { font-size: 0.6rem; letter-spacing: 0.18em; }
  .hero-content { padding-bottom: 2.5rem; padding-top: 7rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-badges { margin-top: 1.4rem; }
  .portfolio-filters { gap: 0.45rem; }
  .filter-btn { padding: 0.45rem 1rem; font-size: 0.85rem; }
  .lightbox { padding: 1rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-close { width: 40px; height: 40px; font-size: 1.4rem; top: 1rem; right: 1rem; }
}

@media (max-width: 380px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Service card heading links (added 2026-09-14) */
.service-card-link { color: inherit; text-decoration: none; }
.service-card-link:hover { color: var(--amber-dark); }
.service-card-link::after { content: " \2192"; font-size: 0.85em; opacity: 0; transition: opacity 0.2s ease; }
.service-card-link:hover::after { opacity: 1; }
