/* ==========================================================================
   Page-specific styles (Home, Portfolio, About, Contact)
   ========================================================================== */

/* -------------------- Hero (shared pattern, used on Home + inner pages) -------------------- */
.hero {
  position: relative;
  padding: 178px 0 100px;
  overflow: hidden;
}

.hero-home {
  padding: 178px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--coral);
}

.hero-text {
  margin-top: 26px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-actions {
  margin-top: 40px;
}

.hero-media {
  position: relative;
}

.hero-media-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.hero-media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-accent {
  position: absolute;
  bottom: -46px;
  left: -60px;
  width: 46%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 8px solid var(--cream);
  box-shadow: 0 30px 60px rgba(27, 58, 92, 0.18);
}

.hero-media-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-strip {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-strip-item .num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
}

.hero-strip-item .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* -------------------- Page hero (inner pages: Portfolio, About, Contact) -------------------- */
.page-hero {
  padding: 168px 0 80px;
  text-align: center;
}

.page-hero .eyebrow {
  display: block;
}

.page-hero .section-title {
  margin-top: 16px;
}

.page-hero .section-lede {
  margin: 20px auto 0;
  text-align: center;
}

/* -------------------- Section spacing -------------------- */
.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-head {
  max-width: 680px;
}

.section-head.center {
  margin: 0 auto;
  text-align: center;
}

/* -------------------- Style narrative (Home) -------------------- */
.style-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.style-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-top: 20px;
}

.style-copy p:first-of-type {
  margin-top: 26px;
}

.style-tags {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.style-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--navy);
  background: var(--white);
}

.style-media {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 4px;
  overflow: hidden;
}

.style-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------- Snapshot gallery grid (Home) -------------------- */
.snap-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.snap-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.snap-item:first-child {
  grid-row: span 2;
  aspect-ratio: 3 / 7;
}

.snap-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.snap-item:hover img {
  transform: scale(1.06);
}

.snap-more {
  margin-top: 46px;
  text-align: center;
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.cta-band .eyebrow {
  color: var(--gold);
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-top: 16px;
}

.cta-band p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 36px;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cta-band .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* -------------------- Portfolio gallery -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}

.gallery-item.tall {
  aspect-ratio: 4 / 6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 22px 18px;
  background: linear-gradient(to top, rgba(18, 40, 64, 0.82), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption .cap-title {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.gallery-caption .cap-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 40, 64, 0.94);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  padding: 40px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* -------------------- About page -------------------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.about-intro .section-title {
  margin-top: 12px;
}

.about-intro-copy p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.legal-marker {
  margin-top: 34px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--white);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.legal-marker strong {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.about-media {
  position: relative;
}

.about-media-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.about-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Why choose us */
.why-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-card {
  padding: 40px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.why-card .why-index {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.why-card h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.why-card p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Process strip */
.process-list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process-item {
  padding-top: 26px;
  border-top: 2px solid var(--navy);
}

.process-item .step {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
}

.process-item h4 {
  margin-top: 14px;
  font-size: 1.1rem;
}

.process-item p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* -------------------- Contact page -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-info-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 20px;
  height: 20px;
  fill: var(--navy);
}

.contact-info-item h4 {
  font-size: 1.02rem;
  color: var(--navy);
}

.contact-info-item p,
.contact-info-item a {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-info-item a:hover {
  color: var(--coral);
}

.contact-map {
  margin-top: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 46px 42px;
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
}

.contact-form-wrap .section-lede {
  margin-top: 10px;
  font-size: 0.94rem;
}

.form-field {
  margin-top: 22px;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  margin-top: 30px;
  width: 100%;
  justify-content: center;
}

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

.contact-social {
  margin-top: 40px;
  display: flex;
  gap: 14px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .style-block,
  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-media-accent {
    left: -20px;
    bottom: -30px;
  }

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

  .snap-item:first-child {
    grid-row: span 1;
    aspect-ratio: 3 / 4;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-strip {
    margin-top: 70px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 150px 0 70px;
  }

  .hero-home {
    padding: 150px 0 0;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

  .section {
    padding: 74px 0;
  }

  .snap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}
