/* ===== VARIABLES ===== */
:root {
  --navy: #1A2B45;
  --navy-dark: #111d2e;
  --orange: #F2622E;
  --orange-dark: #d94e1a;
  --white: #ffffff;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s var(--ease);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
button { border: none; cursor: pointer; background: none; font: inherit; }

/* ===== HEADER ===== */
#header {
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}
#header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.nav-inner {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: border-color var(--t);
}
#header.scrolled .nav-inner { border-bottom-color: transparent; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  transition: background var(--t), transform 0.2s var(--ease), box-shadow var(--t);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242,98,46,0.45);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-lg { padding: 1rem 2.25rem; font-size: 0.75rem; }
.w-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color var(--t), background var(--t);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
}

/* ===== HERO ===== */
.hero-section { background: var(--navy-dark); }

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #111d2e 0%, #1A2B45 50%, #1e3562 100%);
}
/* subtle dot pattern — softer than a grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.5) 80%, transparent 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 80% 40%, rgba(242,98,46,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 0% 85%, rgba(17,29,46,0.85) 0%, transparent 55%);
}

.hero-h1 {
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(242,98,46,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(242,98,46,0); }
}

.hero-cut {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ===== SECTION LABELS ===== */
.section-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: rgba(255,255,255,0.4); }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* ===== GALLERY ===== */
.gallery-sub {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item--wide, .gallery-item--tall { grid-column: span 1; grid-row: span 1; }
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Placeholder shown until a real <img> is dropped in */
.gallery-ph {
  position: absolute;
  inset: 0;
  background: var(--gb, #ddd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover .gallery-ph { transform: scale(1.04); }

.gallery-ph-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26,43,69,0.35);
}
.gallery-ph-label--light { color: rgba(255,255,255,0.3); }

/* Real images — place <img> directly inside .gallery-item */
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,29,46,0.78) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  cursor: pointer;
  transition: background var(--t);
}
.lightbox-close:hover { background: var(--orange); border-color: var(--orange); }

.lightbox-content { text-align: center; }

.lightbox-display {
  width: min(820px, 90vw);
  height: min(560px, 70vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-display img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-caption-text {
  color: rgba(255,255,255,0.38);
  font-size: 0.78rem;
  margin-top: 0.875rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== TESTIMONIALS ===== */
.testimonials-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,43,69,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  padding: 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(26,43,69,0.1);
}
.testimonial-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26,43,69,0.3);
}
.testimonial-card--featured:hover { transform: translateY(-14px); }

.stars {
  color: var(--orange);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}
.testimonial-quote--light { color: rgba(255,255,255,0.68); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-avatar--invert {
  background: rgba(255,255,255,0.12);
}

.author-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.author-meta { font-size: 0.72rem; color: #aaa; margin-top: 2px; }

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--navy-dark);
  position: relative;
}
.contact-top-cut {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

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

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  width: 100%;
  outline: none;
  transition: border-color var(--t), background var(--t);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-input::placeholder { color: rgba(255,255,255,0.22); }
.form-input:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.085);
}
.form-input.error { border-color: #ef4444; }
.form-select { cursor: pointer; }
.form-select option { background: var(--navy-dark); color: var(--white); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Success */
.form-success {
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.success-icon-wrap {
  width: 66px;
  height: 66px;
  background: rgba(242,98,46,0.13);
  border: 1px solid rgba(242,98,46,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Contact info strip below form */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--t);
}
.contact-strip-item:hover { color: rgba(255,255,255,0.8); }

/* ===== FOOTER ===== */
.footer {
  background: #0a1220;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.animate-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
