/* =========================================================
   GLOBAL RESET & SAFARI NORMALIZATION
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   LINK STYLES (FIXED – HUMAN + SEO SAFE)
   ========================================================= */

/* Default text links */
a {
  color: #0a5cff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hover & focus for accessibility */
a:hover,
a:focus {
  color: #084bcc;
  text-decoration-thickness: 2px;
}

/* Do not affect buttons styled as links */
a.button {
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* =========================================================
   NAVIGATION (MOBILE-FIRST, SAFARI SAFE)
   ========================================================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav a {
  color: #111;
  text-decoration: none;
}

.nav a:hover {
  color: #0a5cff;
}

.nav-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.nav-menu.active {
  display: flex;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }
}

/* =========================================================
   HERO SECTION (RESPONSIVE + iOS SAFARI FIX)
   ========================================================= */

.hero {
  background: url("/assets/images/hero.jpg") center / cover no-repeat;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  min-height: 100svh;
}

@supports not (height: 100svh) {
  .hero {
    min-height: 100vh;
  }
}

.hero .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

/* =========================================================
   BUTTONS & TOUCH TARGETS (APPLE HIG)
   ========================================================= */

.button,
button,
input[type="submit"] {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #0a5cff;
  color: #fff;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  opacity: 0.9;
}

/* =========================================================
   GRID SYSTEM (SERVICES / LOCATIONS)
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   FORMS (SAFARI & MOBILE SAFE)
   ========================================================= */

input,
textarea,
select {
  font-size: 16px; /* Prevents iOS zoom */
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0a5cff;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background-color: #f5f5f5;
  color: #333;
}

footer a {
  color: #0a5cff;
}

footer a:hover {
  color: #084bcc;
}
