/* ============================================================
   1. Custom properties
   ============================================================ */
:root {
  --color-primary: #162863;
  --color-secondary: #b29357;
  --color-text: #0a0c0b;
  --color-bg-alt: #eaf0f0;
  --color-footer-bg: #0a0c0b;
  --container-max: 78rem;
  --container-pad: 1.5rem;
  --spacer-height: 0px;
}

/* ============================================================
   2. Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-primary); text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--color-text);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ============================================================
   3. Typography / @font-face
   ============================================================ */
@font-face {
  font-family: "MagicMoon Bold";
  font-display: swap;
  src: url("/fonts/MagicMoon-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mulish/mulish-400.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/mulish/mulish-700.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/mulish/mulish-800.woff2") format("woff2");
}

h1 {
  font-family: "MagicMoon Bold", sans-serif;
  font-size: 64px;
  line-height: 1.1;
  color: #fff;
}
h2 {
  font-family: "Mulish", sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.2;
  color: var(--color-text);
}
h3 {
  font-family: "Mulish", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--color-text);
}
.caption { font-style: italic; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 25px;
  padding: 2px 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease-in-out;
  cursor: default;
  user-select: none;
}
.eyebrow:hover { transform: scale(1.1); }
.eyebrow--light { color: #fff; border-color: #fff; }

@media (max-width: 975px) {
  h1 { font-size: 46px; }
  h2 { font-size: 46px; }
  h3 { font-size: 22px; }
}
@media (max-width: 575px) {
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  body { font-size: 15px; }
}

/* ============================================================
   4. Layout / utilities
   ============================================================ */
.container {
  max-width: var(--container-max);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  margin: 0 auto;
}
section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (max-width: 575px) {
  section { padding-top: 4rem; padding-bottom: 4rem; }
}
.text-center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   5. Components
   ============================================================ */

/* --- Header / nav --- */
.site-header {
  background: #fff;
  position: relative;
  z-index: 10;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}
.header-spacer { height: var(--spacer-height); }

.logo img { width: 200px; }
@media (max-width: 575px) {
  .logo img { width: 180px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  font-weight: 700;
  font-size: 20px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.nav-link:hover {
  text-decoration: none;
  color: var(--color-primary);
  background: rgba(22, 40, 99, 0.1);
}
.nav-link.is-active:hover { background: var(--color-primary); color: #fff; }
.nav-link.is-active {
  background: var(--color-primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  padding: 0;
  position: relative;
}
.menu-toggle .menu-icon,
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transition: transform 0.2s ease-in-out;
}
.menu-toggle .menu-icon { top: 50%; transform: translateY(-50%); }
.menu-toggle .menu-icon::before { top: -9px; }
.menu-toggle .menu-icon::after { top: 9px; }

@media (max-width: 975px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--container-pad) 1.5rem;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; }
}

/* --- Buttons --- */
.button {
  display: inline-block;
  background: #fff;
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 15px;
  line-height: 1.5;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.button:hover {
  background: #e6e6e6;
  color: var(--color-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.button--primary { background: var(--color-primary); color: #fff; border: none; }
.button--primary:hover { background: #0f1c47; color: #fff; }
.button--primary:disabled { opacity: 0.6; cursor: default; }

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 0; /* creates a stacking context so .hero-overlay's z-index:-1
                 stays scoped here instead of escaping behind .hero's own
                 background-image */
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
@media (max-width: 975px) {
  .hero {
    min-height: 50vh;
    background-image: url("../images/hero-mobile.jpg");
    /* background-attachment: fixed isn't supported on most mobile browsers
       (notably iOS Safari) and can cause jank where it partially works, so
       fall back to a plain scrolling background on small screens. */
    background-attachment: scroll;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(99, 99, 99, 0.59) 0%, rgb(115, 115, 115) 100%);
}
.hero-content { padding: 3rem var(--container-pad); }
.hero-subhead { color: #fff; margin-top: 1rem; }

/* --- Floating widgets --- */
.floating-widgets {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 50;
}
.floating-widget {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 56px;
  height: 56px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: width 0.25s ease-in-out, box-shadow 0.2s ease-in-out;
}
.floating-widget:hover {
  width: 190px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.floating-widget svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.floating-widget-label {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  margin-right: 12px;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}
.floating-widget:hover .floating-widget-label { opacity: 1; }
.floating-widget--whatsapp { background: rgb(37, 211, 102); }
.floating-widget--location { background: var(--color-primary); }
@media (max-width: 575px) {
  .floating-widgets { right: 1rem; bottom: 1rem; gap: 0.6rem; }
  .floating-widget { width: 48px; height: 48px; padding: 0 12px; }
  .floating-widget:hover { width: 160px; }
  .floating-widget svg { width: 24px; height: 24px; }
  .floating-widget-label { font-size: 13px; }
}

/* --- Services section --- */
.content-image {
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  margin: 2rem 0 1rem;
}

.content-image-frame {
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  overflow: hidden;
  margin: 2rem 0 1rem;
}
.content-image-zoom {
  display: block;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}
.content-image-frame:hover .content-image-zoom { transform: scale(1.06); }

/* --- About / stats / values --- */
.section--alt { background: var(--color-bg-alt); }

.about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
  margin: 3rem 0;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2rem;
  flex: 2 1 28rem;
  min-width: 0;
}
.about-image {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
  object-fit: cover;
  width: 100%;
  min-height: 200px;
}
.stat {
  flex: 1 1 calc(33.33% - 2rem);
  background: #fff;
  border: 1px solid var(--color-secondary);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.stat-number,
.stat-number-suffix {
  font-weight: bold;
  font-size: 44px;
  color: var(--color-primary);
}
.stat-caption {
  text-transform: uppercase;
  font-size: 15px;
  margin-top: 0.5rem;
}
@media (max-width: 975px) {
  .stat-caption { font-size: 14px; }
}
@media (max-width: 575px) {
  .stat { flex: 1 1 100%; }
  .stat-number, .stat-number-suffix { font-size: 38px; }
}

.value-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}
.value-card {
  flex: 1 1 calc(33.33% - 2rem);
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
@media (max-width: 575px) {
  .value-card { flex: 1 1 100%; }
}
.value-icon {
  width: 3rem;
  height: 3rem;
  padding: 1.2rem;
  border-radius: 100%;
  background: var(--color-secondary);
  margin: 0 auto 1rem;
  box-sizing: content-box;
}
.value-icon svg { width: 100%; height: 100%; fill: #fff; }
.value-card h3 { margin-bottom: 0.75rem; }

/* --- Contact form --- */
.contact-form {
  max-width: 40rem;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.contact-form h2 { margin-bottom: 2rem; text-align: center; }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { margin-top: 1rem; font-weight: 700; }
.form-status.is-success { color: #1a7a3c; }
.form-status.is-error { color: #b3251e; }

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: #fff;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; opacity: 0.8; }
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-col { flex: 1 1 calc(33.33% - 3rem); }
@media (max-width: 575px) {
  .footer-col { flex: 1 1 100%; }
}
.footer-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.2rem;
  fill: var(--color-secondary);
}
.footer-flag { width: 48px; flex: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.75rem; }
