:root {
  --bg: #0C0A09;
  --surface: #1C1917;
  --secondary: #44403C;
  --muted-text: #A8A29E;
  --border: #44403C;
  --gold: #CA8A04;
  --gold-hover: #A16207;
  --text: #FAFAF9;
  --danger: #DC2626;
  --font-head: 'Bodoni Moda', serif;
  --font-body: 'Jost', sans-serif;
  --radius: 8px;
  --maxw: 1120px;
  --gold-grad: linear-gradient(135deg, #F5D061 0%, #CA8A04 45%, #A16207 100%);
  --gold-glow: 0 0 0 1px rgba(202, 138, 4, 0.25), 0 12px 40px -12px rgba(202, 138, 4, 0.45);
  --glass: rgba(28, 25, 23, 0.72);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.hero h1 {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 30px rgba(202, 138, 4, 0.25);
}

h2 {
  font-size: 2.25rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold {
  background: var(--gold-grad);
  color: var(--bg);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px -8px rgba(202, 138, 4, 0.6);
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-gold:hover:not(:disabled) {
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(202, 138, 4, 0.75);
}

.btn-gold:hover:not(:disabled)::after {
  left: 130%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(202, 138, 4, 0.18);
  padding: 1rem 2rem;
}

.navbar-logo {
  filter: drop-shadow(0 0 8px rgba(202, 138, 4, 0.5));
}

.navbar-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex-shrink: 0;
}

.navbar-text {
  font-family: var(--font-head);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
}

nav a {
  display: inline-block;
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.section-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% -10%, rgba(202, 138, 4, 0.18), transparent 70%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(202, 138, 4, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 138, 4, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.services h2,
.about h2,
.map h2,
.contact h2 {
  position: relative;
  padding-bottom: 0.9rem;
}

.services h2::after,
.about h2::after,
.map h2::after,
.contact h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-grad);
}

.services h2::after,
.map h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--muted-text);
  margin: 1.5rem 0 2rem 0;
  line-height: 1.6;
}

.services {
  padding: 4rem 2rem;
  background-color: var(--bg);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(160deg, rgba(202, 138, 4, 0.35), rgba(68, 64, 60, 0.2)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(202, 138, 4, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gold-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--gold);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.12) translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(202, 138, 4, 0.6));
}

.service-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

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

.about {
  padding: 4rem 2rem;
  background-color: var(--surface);
}

.about h2 {
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted-text);
}

.about p + p {
  margin-top: 1.5rem;
}

.map {
  padding: 4rem 2rem;
  background-color: var(--bg);
}

.map h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-frame {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  display: block;
  border: 1px solid rgba(202, 138, 4, 0.25);
  box-shadow: var(--gold-glow);
}

.contact {
  padding: 4rem 2rem;
  background-color: var(--surface);
}

.contact h2 {
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--muted-text);
  margin-bottom: 2rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.contact-item a,
.contact-item span {
  color: var(--text);
}

form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.required {
  color: var(--danger);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.1);
  outline: 2px solid var(--gold);
  outline-offset: 0;
}

input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

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

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.5rem;
}

.status-success {
  color: #10b981;
  font-weight: 500;
}

.status-error {
  color: var(--danger);
  font-weight: 500;
}

.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  color: var(--muted-text);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-section a {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-text);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .navbar-container {
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  nav {
    gap: 1rem;
    flex-basis: 100%;
    margin-bottom: 1rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 3rem 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
  }

  .map-frame {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 1rem;
  }

  .navbar-container {
    gap: 1rem;
  }

  .btn-gold {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .services,
  .about,
  .map,
  .contact {
    padding: 2rem 1rem;
  }

  .section-content {
    padding: 0 1rem;
  }
}

/* Gold gradient divider between stacked sections */
.services,
.about,
.map,
.contact {
  position: relative;
}

.services::before,
.about::before,
.map::before,
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, var(--maxw));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 138, 4, 0.45), transparent);
}

/* Scroll-reveal — only when motion allowed AND scroll timelines supported.
   Content stays fully visible everywhere else (no orphaned opacity:0). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-content,
    .service-card,
    .about p,
    .map-frame,
    .contact-info,
    form,
    .services h2,
    .about h2,
    .map h2,
    .contact h2 {
      animation: reveal-up both linear;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }

  .hero .btn-gold {
    animation: cta-glow 3.2s ease-in-out infinite;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-glow {
  0%, 100% {
    box-shadow: 0 6px 24px -8px rgba(202, 138, 4, 0.55);
  }
  50% {
    box-shadow: 0 10px 34px -6px rgba(202, 138, 4, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
