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

:root {
  --navy:    #1B2A4A;
  --gold:    #D4A843;
  --bg:      #FAFAF7;
  --white:   #FFFFFF;
  --text:    #333333;
  --muted:   #6B7280;
  --green:   #22C55E;
  --yellow:  #EAB308;
  --red:     #EF4444;
  --shadow:  0 2px 8px rgba(0,0,0,0.08);
  --radius:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo:hover .nav-logo-img { filter: brightness(1.15); }

.nav-logo-img {
  height: 40px;
  width: auto;
  transition: filter 0.2s ease;
  background: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

.nav-lang a {
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Hamburger */
.nav-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle-label span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 767px) {
  .nav-toggle-label { display: flex; }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
  color: var(--white);
  padding: 80px 20px;
}

/* Optional hero background image — uncomment when you have hero.jpg */
/*
.hero {
  background: linear-gradient(rgba(27,42,74,0.7), rgba(27,42,74,0.7)),
              url('{{ url_for("static", filename="images/hero.jpg") }}');
  background-size: cover;
  background-position: center;
}
*/

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-logo {
  width: min(340px, 80%);
  height: auto;
  margin: 0 auto 20px;
  display: block;
  background: var(--white);
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.hero-slogan {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  letter-spacing: 0.3px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #e0b84e; text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 10px 24px;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .hero { min-height: 400px; padding: 60px 20px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-logo { width: min(260px, 75%); margin-bottom: 16px; }
  .hero-tagline { font-size: 1rem; }
  .hero-slogan { font-size: 0.9rem; }
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

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

/* ── About ────────────────────────────────────────────── */
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ── Services Grid ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

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

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Featured Work ────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.featured-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.featured-card p {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.featured-link {
  text-align: center;
}

@media (max-width: 767px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 24px;
}

/* ── Gallery ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-card p {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── Map ──────────────────────────────────────────────── */
#map {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.map-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 20px;
}

/* ── Contact ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.contact-info-card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.contact-info-card strong {
  color: var(--text);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}

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

/* Validation feedback (client-side, localized) */
.form-error {
  background: #FEF2F2;
  border: 1px solid var(--red);
  color: #991B1B;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-group input.input-invalid,
.form-group select.input-invalid,
.form-group textarea.input-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

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

/* ── File Upload Area ──────────────────────────────────── */
.file-upload-area { }

.file-upload-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.file-upload-dropzone:hover,
.file-upload-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(212,168,67,0.05);
}

.dropzone-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.image-preview-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.image-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-thumb .remove-preview {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview-thumb .remove-preview:hover {
  background: rgba(239,68,68,0.9);
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}



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

/* Honeypot — visually hidden, only bots fill it in */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Confirmation ─────────────────────────────────────── */
.confirmation {
  text-align: center;
  padding: 80px 20px;
}

.confirmation h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.confirmation p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 24px;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-logo {
  width: min(230px, 75%);
  height: auto;
  margin-bottom: 12px;
  display: block;
  background: var(--white);
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.footer-rbq {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
}

.footer-bottom a { color: var(--gold); font-weight: 600; }

@media (max-width: 600px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Social Links ─────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.social-links a:hover .social-icon {
  fill: var(--gold);
  transform: scale(1.15);
}

/* ── Services List (contact page) ─────────────────────── */
.services-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.services-list li {
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 18px;
}

.services-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
