/* ============================================================
   Murillo Interiors — v1 Stylesheet
   Mobile-first. Warm Ivory base. Espresso footer.
   ============================================================ */

:root {
  --warm-ivory: #EDE8DC;
  --deep-forest: #2D4A2F;
  --espresso: #1E1A14;
  --amber-glow: #C4922A;
  --parchment: #FAF8F3;
  --slate: #3A3530;
  --botanical: #4A6741;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1280px;
  --gap: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--parchment);
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(30, 26, 20, 0.08);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment);
  transition: color 0.3s ease;
}

.site-nav.scrolled .nav-wordmark {
  color: var(--espresso);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment);
  transition: color 0.25s ease, opacity 0.25s ease;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.site-nav.scrolled .nav-links a {
  color: var(--slate);
}

.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a:focus-visible {
  color: var(--deep-forest);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 26, 20, 0.25) 0%,
    rgba(30, 26, 20, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--gap);
  max-width: 800px;
}

.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.7);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--parchment);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 248, 243, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(250, 248, 243, 0.4);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 0.8; }
}

/* ── Section Shared ──────────────────────────────────────── */
section {
  padding: 5rem var(--gap);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-glow);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* ── About ───────────────────────────────────────────────── */
.about {
  background: var(--warm-ivory);
}

.about-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}

.about-text {
  max-width: 640px;
}

.about-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.45;
  color: var(--espresso);
  padding-left: 1.5rem;
  border-left: 2px solid var(--amber-glow);
  margin-bottom: 2rem;
}

.about-body {
  font-size: 1.0625rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.about-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin-top: 2rem;
}

.about-markets li {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-forest);
}

.about-markets li::before {
  content: '— ';
  color: var(--amber-glow);
}

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio {
  background: var(--parchment);
}

.portfolio-header {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-bottom: 3rem;
}

.portfolio-subtitle {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 480px;
}

.gallery-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  background: var(--warm-ivory);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.03);
  filter: brightness(0.95);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--deep-forest);
  outline-offset: 2px;
}

/* ── Services (within About) ─────────────────────────────── */
.services {
  background: var(--warm-ivory);
  padding-top: 0;
}

.services-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  border-top: 1px solid rgba(30, 26, 20, 0.12);
  padding-top: 3rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.service-card {
  padding: 1.75rem;
  background: var(--parchment);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--espresso);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  background: var(--warm-ivory);
}

.contact-inner {
  max-width: 680px;
  margin-inline: auto;
}

.contact-intro {
  font-size: 1.0625rem;
  color: var(--slate);
  margin-bottom: 3rem;
  max-width: 540px;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--espresso);
  background: var(--parchment);
  border: 1px solid rgba(30, 26, 20, 0.2);
  padding: 0.875rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233A3530' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--deep-forest);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--deep-forest);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--espresso);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--amber-glow);
  outline-offset: 3px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--espresso);
  padding: 3.5rem var(--gap);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(250, 248, 243, 0.5);
  margin-top: 0.25rem;
}

.footer-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  list-style: none;
}

.footer-markets li {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.45);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 248, 243, 0.08);
}

.footer-email {
  margin-top: 0.75rem;
}

.footer-email a {
  font-size: 0.875rem;
  color: rgba(250, 248, 243, 0.55);
  transition: color 0.2s ease;
}

.footer-email a:hover,
.footer-email a:focus-visible {
  color: var(--parchment);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250, 248, 243, 0.3);
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 26, 20, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  object-fit: contain;
  display: block;
}

.lightbox-btn {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(250, 248, 243, 0.2);
  color: var(--parchment);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-size: 1rem;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: rgba(250, 248, 243, 0.1);
  border-color: rgba(250, 248, 243, 0.5);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  position: fixed;
  font-size: 1.25rem;
}

.lightbox-prev {
  left: -3.5rem;
}

.lightbox-next {
  right: -3.5rem;
}

/* ── Responsive: Tablet (768px+) ────────────────────────── */
@media (min-width: 768px) {
  section {
    padding: 6rem var(--gap);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.featured {
    grid-column: span 2;
    aspect-ratio: 16/7;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .about-markets {
    gap: 0.5rem 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Responsive: Desktop (1024px+) ──────────────────────── */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.featured {
    grid-column: span 2;
    aspect-ratio: 16/8;
  }

  .about-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img,
  .hero-scroll::after,
  .btn-primary {
    transition: none;
    animation: none;
  }
}
