/* ============================================================
   maurosphotos — light, airy, gallery-first
   ============================================================ */

:root {
  --bg: #faf8f5;
  --bg-soft: #f3efe9;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --ink-faint: #a8a29e;
  --line: #e7e2db;
  --accent: #8b7355;
  --accent-soft: #c4a882;
  --focus: #3d6b8c;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --radius: 4px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: var(--pad);
  top: 0.5rem;
}

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

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

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-intro {
  max-width: 36rem;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 245, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); opacity: 0.75; }

.nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.nav a:hover,
.nav a[aria-current="true"] { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}
.menu-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem var(--pad) 1.75rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(250, 248, 245, 0.97) 0%,
    rgba(250, 248, 245, 0.55) 38%,
    rgba(250, 248, 245, 0.15) 70%,
    rgba(250, 248, 245, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  max-width: 40rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 5.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-muted);
  margin: 0 0 2rem;
  max-width: 28rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--bg);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery-item.wide {
  aspect-ratio: 5 / 4;
}
@media (min-width: 900px) {
  .gallery-item.span-2 {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  pointer-events: none;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 25, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-meta {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Services ---------- */
.services-section {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  background: var(--surface);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent-soft);
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 0.65rem;
}

.service-card p {
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.service-meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.about-photo {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body p {
  color: var(--ink-muted);
  margin: 0 0 1.15rem;
}
.about-body p:last-of-type { margin-bottom: 1.75rem; }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 0.5rem;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.stat span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact-details li {
  margin-bottom: 1.15rem;
}
.contact-details .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}
.contact-details a {
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 520px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success.show { display: block; }
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.form-success p {
  color: var(--ink-muted);
  margin: 0;
}

.form-fields.hide { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  text-decoration: none;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0.35rem 0 0;
}
.footer-credit {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0;
}
.footer-credit a {
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
