/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:     #1c1d2e;
  --primary-d:   #0e0f1c;
  --secondary:   #ca3c25;
  --secondary-d: #a8321e;
  --dark:        #0e0f1c;
  --light:       #ede8dc;
  --warm-white:  #faf8f4;
  --text-faded:  rgba(255, 255, 255, .65);
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  background: var(--warm-white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-d);
}

/* ── Navigation ────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: background 320ms var(--ease-out),
              backdrop-filter 320ms var(--ease-out),
              padding 320ms var(--ease-out),
              box-shadow 320ms var(--ease-out);
}

#site-nav.scrolled {
  background: rgba(14, 15, 28, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .9rem 2rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}

.nav-logo:hover {
  color: #fff;
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, .65);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--secondary);
  color: #fff !important;
  padding: .5rem 1.25rem;
  border-radius: 3px;
  font-weight: 600 !important;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--secondary-d);
  color: #fff !important;
}

@media (max-width: 640px) {
  #site-nav {
    padding: 1rem 1.25rem;
  }

  #site-nav.scrolled {
    padding: .75rem 1.25rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links {
    gap: 1rem;
  }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .875rem 2rem;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  transition: background .16s var(--ease-out),
              color .16s var(--ease-out),
              border-color .16s var(--ease-out),
              box-shadow .16s var(--ease-out),
              transform .16s var(--ease-out);
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(202, 60, 37, .32);
}

.btn-primary:hover {
  background: var(--secondary-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(202, 60, 37, .42);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, .8);
  border: 1.5px solid rgba(255, 255, 255, .28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.btn:active {
  transform: scale(.97) !important;
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--primary-d);
  color: #fff;
  overflow: hidden;
}

.hero-image-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
}

.hero-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: contrast(1.05) saturate(.7);
}

.hero-image-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary-d) 0%, rgba(14, 15, 28, .55) 45%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 5rem 10%;
  max-width: 62%;
}

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--text-faded);
  line-height: 1.7;
  margin-bottom: 2.75rem;
  max-width: 360px;
}

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

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow    { animation: heroFadeUp 600ms var(--ease-out) 80ms  both; }
.hero-content h1 { animation: heroFadeUp 600ms var(--ease-out) 200ms both; }
.hero-sub        { animation: heroFadeUp 600ms var(--ease-out) 340ms both; }
.hero-actions    { animation: heroFadeUp 600ms var(--ease-out) 460ms both; }

@media (max-width: 700px) {
  #hero {
    align-items: flex-end;
  }

  .hero-image-panel {
    position: absolute;
    inset: 0;
    width: 100%;
  }

  .hero-image-panel img {
    opacity: .6;
  }

  .hero-image-panel::before {
    background: linear-gradient(
      to bottom,
      rgba(14, 15, 28, .1)  0%,
      rgba(14, 15, 28, .45) 40%,
      rgba(14, 15, 28, .93) 100%
    );
  }

  .hero-content {
    padding: 0 1.5rem 4.5rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-actions {
    gap: .75rem;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
}

/* ── Section shared ────────────────────────────────────────── */
section {
  padding: 6rem 1.5rem;
}

section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary);
  letter-spacing: -.02em;
  position: relative;
  padding-bottom: .65rem;
}

section h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--secondary);
  margin: .55rem auto 0;
  border-radius: 2px;
}

/* ── Gallery ───────────────────────────────────────────────── */
#gallery {
  background: var(--light);
}

.accordion {
  display: flex;
  gap: 5px;
  height: 480px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

.accordion-item {
  flex: 1;
  overflow: hidden;
  transition: flex 300ms var(--ease-out), box-shadow 200ms ease-out;
  cursor: pointer;
  position: relative;
}

.accordion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(65%);
  transition: transform 300ms var(--ease-out), filter 300ms var(--ease-out);
}

.accordion-item.active {
  flex: 12;
}

.accordion-item.active img {
  transform: scale(1.04);
  filter: saturate(100%);
}

@media (hover: hover) and (pointer: fine) {
  .accordion-item:hover {
    box-shadow: inset 0 0 0 3px var(--secondary);
  }
}

@media (max-width: 700px) {
  #gallery {
    padding-left: 0;
    padding-right: 0;
  }

  #gallery h2 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .accordion {
    flex-direction: row;
    height: 300px;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 0 1.5rem;
    border-radius: 0;
    box-shadow: none;
  }

  .accordion::-webkit-scrollbar {
    display: none;
  }

  .accordion-item,
  .accordion-item.active {
    flex: none;
    width: 82vw;
    height: 100%;
    scroll-snap-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
  }

  .accordion-item.active img {
    transform: none;
  }
}

/* ── Description ───────────────────────────────────────────── */
#description {
  background: var(--warm-white);
}

.description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.description-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  letter-spacing: .01em;
}

.description-col p {
  line-height: 1.85;
  margin-bottom: 1rem;
  color: #5a5a6a;
  font-size: .975rem;
  font-weight: 300;
}

.description-col p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .description-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Contact ───────────────────────────────────────────────── */
#contact {
  background: var(--primary);
  color: #fff;
}

#contact h2 {
  color: #fff;
}

#contact h2::after {
  background: var(--secondary);
}

#contact .contact-phone {
  text-align: center;
  margin: -0.5rem 0 0.5rem;
  font-size: 1.15rem;
}

#contact .contact-phone a {
  color: #fff;
  text-decoration: none;
}

#contact .contact-phone a:hover {
  text-decoration: underline;
}

#contact .contact-alt {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: .9rem;
  opacity: .8;
}

#contact form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#contact label {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .35rem;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: .875rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 300;
  transition: border-color .2s, background .2s;
  min-height: 48px;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(255, 255, 255, .22);
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, .11);
}

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#contact .btn {
  background: var(--secondary);
  color: #fff;
  font-size: .975rem;
  padding: .9rem 2.25rem;
}

#contact .btn:hover {
  background: var(--secondary-d);
  color: #fff;
}

.form-status {
  font-size: .875rem;
  font-weight: 500;
}

.form-status.success { color: oklch(80% 0.1 150); }
.form-status.error   { color: oklch(80% 0.1 30); }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-content h1,
  .hero-sub,
  .hero-actions {
    animation: none;
  }

  .accordion-item {
    transition: flex 0ms, box-shadow 0ms;
  }

  .accordion-item img {
    transition: none;
  }
}

/* ── Legal Modals ──────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem 2rem 2rem;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-box h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  text-align: left;
  letter-spacing: -.01em;
}

.modal-box h2::after {
  display: none;
}

.modal-box h3 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--secondary);
  margin: 1.25rem 0 .4rem;
  font-weight: 700;
}

.modal-box p {
  font-size: .875rem;
  line-height: 1.75;
  color: #555;
  font-weight: 300;
}

.modal-close {
  position: absolute;
  top: .85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--primary);
  opacity: .35;
  transition: opacity .2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  opacity: 1;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .35);
  text-align: center;
  padding: 2.25rem 1rem;
  font-size: .8rem;
  letter-spacing: .02em;
}

footer a {
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: color .2s;
}

footer a:hover {
  color: rgba(255, 255, 255, .75);
}
