/* Reset and base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: #111111;
  background: #0f0f10 url("/assets/img/bg1.webp") center/cover no-repeat fixed;
  font: 16px/1.6 Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #c14b2c; /* terracotta */
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}
.hide-mobile {
  display: none;
}
@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111;
  color: #fff;
  display: inline-block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #faf7f2; /* neutral stone */
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 5rem;
  padding: 0.9rem 0;
}
@media (max-width: 991.98px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-cta {
    display: none;
  }
}
.brand-link {
  font-weight: 800;
  font-size: 1.3rem;
  color: #1f2937; /* slate */
  letter-spacing: 0.2px;
}
.header-inner .brand {
  order: 1;
}
.header-inner .nav-toggle {
  order: 3;
  justify-self: end;
}
.header-inner .site-nav {
  order: 2;
}
.header-inner .header-cta {
  order: 4;
}
.nav-toggle {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  z-index: 80;
}
.nav-toggle:hover {
  filter: brightness(1.02);
}
.nav-toggle:active {
  transform: translateY(1px);
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle.is-open .icon-burger {
  display: none;
}
.nav-toggle.is-open .icon-close {
  display: inline;
}
.site-nav {
  position: fixed;
  inset: 0 0 0 30%;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  background: #ffffff;
  padding: 5rem 2rem 2rem;
  z-index: 70;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  font-weight: 600;
}
.site-nav a {
  color: #0f172a;
  text-transform: capitalize;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #c14b2c; /* terracotta underline */
  transition: width 0.2s ease;
}
.site-nav a:hover::after {
  width: 100%;
}
.site-nav.open {
  transform: translateX(0);
}

/* overlay for mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 60;
}
.header-cta {
  display: none;
}
@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    transform: none;
    padding: 0;
    background: transparent;
    z-index: auto;
  }
  .site-nav ul {
    display: flex;
    gap: 1.25rem;
  }
  .header-cta {
    display: block;
  }
}

/* Buttons */
.btn {
  --btn-bg: #c14b2c; /* terracotta */
  --btn-fg: #ffffff;
  --btn-br: 10px;
  --btn-bw: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--btn-br);
  font-weight: 700;
  letter-spacing: 0.15px;
  cursor: pointer;
  border: var(--btn-bw) solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn.primary {
  background: #c14b2c;
  color: var(--btn-fg);
  border-color: #c14b2c;
}
.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(24, 99, 220, 0.25);
}

.btn.outline {
  --btn-fg: #c14b2c; /* terracotta accent for visibility */
  background: #aa3f26; /* darker terracotta */
  color: #ffffff;
  border-color: #c14b2c;
  border-width: 2px;
}
.btn.outline:hover {
  background: #c14b2c; /* invert */

  border-color: #c14b2c;
}
.btn.outline:active {
  border-color: #aa3f26;
  color: #ffffff;
}

.btn.light {
  --btn-fg: #1f2937;
  background: #ffffff;
  color: var(--btn-fg);
  border-color: rgba(31, 41, 55, 0.18);
}
.btn.light:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.btn.light:active {
  transform: translateY(0);
}

/* Accessible focus for all buttons */
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(193, 75, 44, 0.25);
}

.btn.grow {
  /* keep grow behavior */
}
.btn.grow:hover {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 41, 55, 0.55),
    rgba(31, 41, 55, 0.35)
  ); /* slate overlay */
}
.hero-inner {
  padding: 0 0.5rem;
  position: relative;
  text-align: center;
  width: 100%;
  display: grid;
  place-items: center;
}
.hero-badge {
  margin-bottom: 0.75rem;
}
.badge {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #e7ece6; /* sage */
  color: #1f2937;
}
.hero-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  line-height: 1.08;
  margin: 0.25rem auto 0.75rem;
  max-width: 900px;
}
.hero-subtitle {
  color: #fff;
  font-weight: 500;
  margin: 0 auto 1.25rem;
  max-width: 900px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Features - warm olive background and enhanced typography */
.features {
  background: #1f2937; /* slate */
  color: #ffffff;
}
.grid-3 {
  display: grid;
  gap: 2rem;
  justify-items: center;
  text-align: center;
}
@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature h5 {
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #c4a484; /* stone accent */
  margin: 0 0 0.25rem;
  font-family: "Yanone Kaffeesatz", system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  text-transform: uppercase;
}
.feature h4 {
  margin: 0;
  color: #ffffff;
  font-family: "Yanone Kaffeesatz", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.35;
}
.feature {
  max-width: 520px;
}

/* About card (section has no background) */
.about-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #1f2937; /* slate */
  color: #ffffff;
  border-radius: 10px;
  max-width: 800px;
}
.about-card h2 {
  margin: 0.25rem 0 1rem;
}

/* CTA */
.cta {
  background: #1f2937; /* slate */
}
.cta-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  color: #fff;
}
@media (min-width: 992px) {
  .cta-inner {
    grid-template-columns: 1fr auto;
  }
}

/* Contact */
.contact {
  background: #ffffff;
}
.contact-inner {
  display: grid;
  gap: 2rem;
  justify-items: center;
  text-align: left;
}
.form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  width: 100%;
}
.form label {
  font-weight: 600;
}
.form input,
.form textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfd3da;
  border-radius: 8px;
  font: inherit;
  width: 100%;
  background: #fff;
}
.form textarea {
  resize: none;
}
.form input:focus,
.form textarea:focus {
  outline: 0;
  border-color: #c14b2c;
  box-shadow: 0 0 0 3px rgba(193, 75, 44, 0.15);
}

/* Validation */
.form .error-msg {
  color: #d93025;
  font-size: 0.85rem;
  line-height: 1.2;
}
.form .invalid input,
.form .invalid textarea {
  border-color: #d93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}
.map-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #ccc;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Full-width map at page bottom */
.fullwidth-map {
  padding: 0;
}
.fullwidth-map .map-embed {
  border-radius: 0;
  padding-bottom: 36%;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}
.popup[hidden] {
  display: none;
}
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.popup-dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.popup-dialog h3 {
  margin: 0 0 0.35rem;
}
.popup-dialog p {
  margin: 0 0 0.9rem;
}

/* Footer */
.site-footer {
  background: #0b0b0b;
  color: #fff;
}
.footer-widgets {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 992px) {
  .footer-widgets {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-menu a {
  color: #fff;
}
.footer-col h3 {
  margin-top: 0;
}
.footer-col p {
  margin: 0;
}

/* Scroll up */
.scrollup {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.2);
  background: #faf7f2;
  color: #1f2937;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}
.fade-in.delay-100 {
  animation-delay: 0.1s;
}
.fade-in.delay-200 {
  animation-delay: 0.2s;
}
.fade-in.delay-300 {
  animation-delay: 0.3s;
}
.fade-in.delay-400 {
  animation-delay: 0.4s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.bg-white {
  background-color: #ffffff;
}
@media (max-width: 992px) {
  .hero {
    min-height: calc(100vh - 70px);
  }
}
