/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2c2c2c;
  line-height: 1.6;
  background: #fff;
  -webkit-text-size-adjust: 100%; /* Prevent font-size inflation on mobile */
}
img { max-width: 100%; display: block; }

/* ── Palette (logo-inspired, toned down) ── */
:root {
  --orange:       #F5A623;
  --orange-dark:  #D98D0E;
  --green-dark:   #2D7A4A;
  --green-mid:    #4A9E6B;
  --green-light:  #8DC63F;
  --green-bg:     #f7f8f6;
  --white:        #ffffff;
  --charcoal:     #2c2c2c;
  --gray:         #6b7280;
  --gray-light:   #f3f4f6;
  --gray-mid:     #9ca3af;
  --gray-border:  #e5e7eb;
  --slate:        #374151;
  --slate-dark:   #1f2937;
}

/* ── Typography ── */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--slate-dark); }
h3 { font-size: 1.2rem; }
p  { color: var(--gray); font-size: 1.05rem; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-subtitle {
  max-width: 600px; margin: 12px auto 48px; text-align: center;
  font-size: 1.1rem; color: var(--gray);
}
.text-center { text-align: center; }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 6px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: all .25s ease; cursor: pointer; border: none;
  -webkit-tap-highlight-color: transparent; /* Clean tap on mobile */
}
.btn:active { transform: scale(.97); } /* Tap feedback on mobile */
.btn-primary {
  background: var(--orange); color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(245,166,35,.35); }
.btn-primary:active { background: var(--orange-dark); transform: scale(.97); }
.btn-outline {
  background: transparent; color: var(--white); border: 2px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-outline:active { background: rgba(255,255,255,.2); }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
nav .logo { height: 44px; }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  text-decoration: none; color: var(--charcoal); font-weight: 500;
  font-size: .95rem; transition: color .2s;
  padding: 8px 4px; /* Improved touch target baseline */
  -webkit-tap-highlight-color: transparent;
}
nav a:hover { color: var(--orange); }
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; /* Ensure 44px touch target */
  -webkit-tap-highlight-color: transparent;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--charcoal);
  margin: 6px 0; transition: .3s;
}

/* Hamburger → X animation when open */
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ── Hero ── */
.hero {
  min-height: 100vh; min-height: 100dvh; /* Fix for mobile browser chrome */
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 72px;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,41,55,.92) 0%, rgba(15,23,42,.88) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--green-mid); }
.hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-visual img {
  max-width: 340px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

/* ── About ── */
.about { background: var(--gray-light); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }
.stats {
  display: flex; gap: 40px; margin-top: 32px;
}
.stat h3 { font-size: 2rem; color: var(--orange); }
.stat p { font-size: .85rem; color: var(--gray); }
.about-image {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  position: relative;
}
.about-image img {
  width: 100%; height: 420px; object-fit: cover;
}
.about-image::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 16px;
  border: 3px solid rgba(245,166,35,.3);
}

/* ── Services ── */
.services-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 28px;
}
.service-card {
  flex-grow: 0;
  flex-shrink: 0;
  width: calc((100% - 56px) / 3); /* 3 columns, 2 gaps of 28px */
  background: var(--white); border: 1px solid #e8e8e8; border-radius: 14px;
  overflow: hidden; transition: all .3s ease;
}
.service-card:hover {
  transform: translateY(-6px); border-color: var(--orange);
  box-shadow: 0 12px 28px rgba(245,166,35,.12);
}
/* Color accent line per card */
.service-card:nth-child(1) { border-top: 4px solid var(--orange); }
.service-card:nth-child(2) { border-top: 4px solid var(--green-dark); }
.service-card:nth-child(3) { border-top: 4px solid var(--green-light); }
.service-card:nth-child(4) { border-top: 4px solid var(--green-mid); }
.service-card:nth-child(5) { border-top: 4px solid var(--orange-dark); }

.service-card-img {
  width: 100%; height: 180px; object-fit: cover;
}
.service-card-body {
  padding: 28px 24px; text-align: center;
}
.service-card h3 { margin-bottom: 10px; color: var(--charcoal); }
.service-card p { font-size: .93rem; }

/* ── Contact / CTA ── */
.contact {
  position: relative; overflow: hidden; color: #fff;
}
.contact-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/contact-bg.jpg') center/cover no-repeat;
}
.contact-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,41,55,.93) 0%, rgba(15,23,42,.9) 100%);
}
.contact .container { position: relative; z-index: 1; }
.contact h2 { color: #fff; }
.contact .section-subtitle { color: rgba(255,255,255,.75); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-item h3 { font-size: 1rem; color: #fff; margin-bottom: 2px; }
.contact-item p  { font-size: .93rem; color: rgba(255,255,255,.7); }
form { display: flex; flex-direction: column; gap: 16px; }
input, textarea {
  width: 100%; padding: 14px 18px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; background: rgba(255,255,255,.08);
  color: #fff; font-size: 16px; font-family: inherit; /* 16px prevents iOS auto-zoom */
  transition: border-color .2s;
  -webkit-appearance: none; /* Remove iOS input styling */
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.45); }
input:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { resize: vertical; min-height: 120px; }
form .btn-primary { width: 100%; text-align: center; font-size: 1rem; }

/* ── Footer ── */
footer {
  background: #0f172a; color: rgba(255,255,255,.5);
  padding: 28px 0; text-align: center; font-size: .88rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 220px; }
  .hero p { font-size: 1.05rem; } /* Slightly smaller on mobile */
  .hero-buttons { justify-content: center; }

  /* ── Mobile Nav Dropdown ── */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 8px 0;
    gap: 0;
  }
  nav ul li {
    border-bottom: 1px solid rgba(0,0,0,.04);
  }
  nav ul li:last-child {
    border-bottom: none;
  }
  nav a {
    display: block;
    padding: 16px 24px; /* 44px+ touch target height */
    font-size: 1rem;
  }
  nav a:active { background: rgba(0,0,0,.04); }

  .mobile-toggle { display: block; }

  .stats { gap: 24px; }
  .section { padding: 56px 0; }
  .service-card { width: 100%; }
  .about-image img { height: 280px; }

  /* Disable hover transforms on touch devices (prevent sticky hover) */
  .service-card:hover {
    transform: none;
  }
  .service-card:active {
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(245,166,35,.12);
  }

  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  /* Contact form full-width button */
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Small phones (375px and below) ── */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .stats { flex-direction: column; gap: 16px; }
  .contact-item { gap: 12px; }
  .service-card-body { padding: 20px 16px; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
}
