/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: orange;
  --text: #333;
  --bg: #fff;
  --muted: #f7f7f7;
  --shadow: 0 4px 10px rgba(0,0,0,0.05);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
.container { max-width: 1100px; margin: auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Anchor offset for sticky header === */
:root { --header-h: 72px; }              /* desktop header height */
html { scroll-padding-top: var(--header-h); }

/* Tweak the offset on phones if your header is shorter/taller */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
}

/* Header */
.header { background: #fff; color: #000; padding: 0.75rem 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #eee; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* space out brand, toggle, nav */
  gap: 0.75rem;
  min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-img { width: 40px; height: 40px; }

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle i { width: 22px; height: 22px; }

/* Make Lucide icons inside the hamburger button orange */
.nav-toggle svg {
  stroke: orange; /* change to your brand colour */
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav a {
  color: #000;
  text-decoration: none;
  padding: 0.5rem 0.25rem; /* better tap target spacing on desktop too */
  border-radius: 6px;
}
.nav a:hover,
.nav a.active { color: var(--brand); }

/* Hero */
.hero { background: var(--muted); text-align: center; padding: 2.5rem 1rem; }
.hero h2 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; margin-bottom: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.06s ease;
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: #000; color: #fff; }

.btn.secondary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.btn.secondary:hover { background: #000; border-color: #000; }

.btn-wrapper { display: flex; justify-content: center; margin-top: 2rem; margin-bottom: 3rem; }
.contact .btn.secondary { display: block; margin: 2rem auto 0; }

/* Sections */
.section-title { text-align: center; font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); font-weight: 700; margin-bottom: 1.5rem; }
.services { padding: 2rem 1rem 3rem; }
.about p, .contact p { max-width: 600px; margin: auto; text-align: center; }

/* Optional: also add offset directly on sections with IDs */
section[id] { scroll-margin-top: var(--header-h); }

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease;
}
.card:hover { background: #fcbe85; color: #fff; }
.card h4 { margin: 0.75rem 0 0.5rem; font-size: 1.125rem; }
.card .icon { width: 40px; height: 40px; margin: auto; }

/* Footer */
.footer { background: #fff; color: #000; text-align: center; padding: 2rem 1rem; font-size: 0.9rem; }

/* Blog post bullets */
.blog-post ul { margin-left: 2rem; list-style-position: outside; }
.blog-post li { margin-left: 0.5rem; }

/* ========================= */
/*        RESPONSIVE         */
/* ========================= */

/* Phones & small tablets */
@media (max-width: 768px) {
  .logo-img { width: 36px; height: 36px; }

  /* Collapse nav into a slide-down panel */
  .nav {
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    left: 0;
    display: none;            /* hidden by default on mobile */
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem;
    gap: 0;                   /* links are full width rows */
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.875rem 1rem;
    margin: 0;
    border-radius: 8px;
  }

  /* Show hamburger, hide desktop nav by default */
  .nav-toggle { display: inline-flex; }
  /* Ensure header layout stays compact */
  .header-inner { position: relative; }

  /* Typography & spacing tweaks */
  .hero { padding: 2rem 1rem; }
  .hero p { font-size: 1rem; }

  /* Cards: single column first, then grow */
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Larger tap targets site-wide */
  a, button { -webkit-tap-highlight-color: transparent; }
}

/* Medium screens and up: show nav inline, hide hamburger 
@media (min-width: 769px) {
  .nav { position: static; display: flex !important; background: transparent; border: 0; padding: 0; }
  .nav-toggle { display: none; }
} */

/* Medium screens and up: show nav inline, hide hamburger */
@media (min-width: 769px) {
  .nav { position: static; display: flex !important; background: transparent; border: 0; padding: 0; }
  .nav-toggle { display: none; }
}

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

@media (max-width: 768px) {
  .nav a {
    color: #f06000; /* always orange on mobile */
  }
  .nav a:hover,
  .nav a.active {
    color: #f06000; /* don’t change on hover/active */
  }
}

/* === Contact form === */
.alx-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.alx-hidden { position:absolute;left:-9999px; }
.alx-form-grid { display:grid; gap:1rem; }
.alx-form-grid.two { grid-template-columns: 1fr; }
@media (min-width:769px){ .alx-form-grid.two { grid-template-columns: 1fr 1fr; } }

.alx-field label {
  display:block;
  font-weight:600;
  margin-bottom:0.4rem;
  color:#000;
}
.alx-field input,
.alx-field textarea {
  width:100%;
  padding:0.8rem 0.9rem;
  border:1px solid #ddd;
  border-radius:10px;
  font:inherit;
  line-height:1.5;
  transition:border-color 0.18s ease, box-shadow 0.18s ease;
}
.alx-field input:focus,
.alx-field textarea:focus {
  outline:none;
  border-color:#f06000;
  box-shadow:0 0 0 3px rgba(240,96,0,0.15);
}
.alx-note { margin-top:.75rem;font-size:.9rem;color:#666; }
.alx-status { margin-top:1rem;padding:.75rem;border-radius:10px; }
.alx-status--ok { background:#e7f7ee; }
.alx-status--error { background:#fdecea; }