
* { box-sizing: border-box; }

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

a { color: #fff; text-decoration: none; }
a:visited, a:hover, a:active { color: #fff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* NAV */
header {
  border-bottom: 1px solid #222;
}

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


.nav-links a {
  margin-left: 2rem;
  font-weight: 500;
}

/* HERO */
.hero {
  background: url('../images/hero.svg') center/cover no-repeat;
}

.hero-inner {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero p {
  max-width: 720px;
  color: #ccc;
}

/* SECTIONS */
section { margin-bottom: 4rem; }
.section-title { font-size: 1.6rem; margin-bottom: 2rem; }

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

.service-card {
  border: 1px solid #333;
  padding: 2rem;
}

/* FORM */
form { max-width: 700px; }
.form-field { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: .3rem; }
input, textarea {
  width: 100%;
  padding: .75rem;
  background: #111;
  border: 1px solid #333;
  color: #fff;
}

button {
  margin-top: 1.5rem;
  padding: .75rem 2rem;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
}

/* FOOTER */
footer {
  border-top: 1px solid #222;
  color: #aaa;
}

/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo img {
  height: 64px; /* larger but not overpowering */
}

.logo .slogan {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #ccc;
}

/* LOGO SIZE ADJUSTMENT v10 */
.logo img {
  height: 102px; /* ~1cm increase from previous (~64px -> ~102px) */
  width: auto;
}

.navbar {
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* =========================
   MOBILE RESPONSIVENESS FIX
   ========================= */

/* Responsive typography */
html {
  font-size: clamp(15px, 2.5vw, 18px);
}

/* Header stacking on mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .logo img {
    height: 84px; /* scale down logo on mobile */
  }
}

/* Prevent hero overflow on small screens */
.hero-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Ensure SVG logo always visible */
.logo img {
  filter: none;
  background: transparent;
}

/* =========================
   SVG LOGO VISIBILITY FIX
   ========================= */

/* Ensure logo never inverts or washes out on mobile */
.logo a {
  display: inline-block;
  background: #000;
}

/* Explicit SVG rendering */
.logo img {
  color-scheme: light;
  -webkit-filter: none !important;
  filter: none !important;
}

/* =========================
   LOGO COLOR CONTROL
   ========================= */
.logo img {
    color: #ffffff;
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
}

/* Active navigation state */
.nav-links a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 0.25rem;
}

/* Mobile spacing polish */
@media (max-width: 768px) {
  .logo {
    gap: 0.5rem;
  }
  .nav-links {
    margin-top: 0.75rem;
  }
}
