/* ==========================================================================
   AARS — style.css
   Mobile-first. Plain CSS, no framework. Dark theme.
   ========================================================================== */

:root {
  --green-light: #4CAF50;
  --green-mid: #2E8B3D;
  --green-deep: #14532A;

  --grey-dark: #2E2E2E;
  --grey-mid: #565656;
  --grey-light: #F5F5F5;
  --white: #FFFFFF;

  --bg-page: #262626;
  --bg-alt: #1E1E1E;
  --bg-elevated: #363636;
  --bg-input: #2A2A2A;
  --text-muted: #B5B5B5;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.2);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-max: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--grey-light);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

a {
  color: var(--green-light);
  text-decoration: none;
}

a:hover { color: var(--white); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

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

/* Focus states — accessible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-mid);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--green-light);
  border-color: var(--green-mid);
}

.btn-secondary:hover {
  background: var(--green-mid);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--grey-light);
}

.brand:hover { color: var(--grey-light); }

.brand-logo {
  width: 46px;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
}

.brand-name small {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.icon-phone {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile nav toggle */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-light);
  position: relative;
  transition: transform 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu li {
  border-top: 1px solid var(--border-subtle);
}

.nav-menu a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--grey-light);
  font-weight: 600;
}

.nav-menu a:hover {
  color: var(--green-light);
  background: var(--border-subtle);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, #256b35, var(--green-deep));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.1rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 55ch;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--green-deep);
}

.hero .btn-primary:hover {
  background: var(--grey-light);
  color: var(--green-deep);
}

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */

.services {
  background: var(--bg-page);
  padding: 3.5rem 0;
}

.services h2,
.about h2,
.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 4px solid var(--green-mid);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  color: var(--grey-light);
}

.service-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */

.about {
  background: var(--bg-alt);
  padding: 3.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  text-align: center;
}

.about-text p {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--text-muted);
}

.about-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--green-light);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.about-photo svg {
  width: 48px;
  height: 48px;
  color: var(--green-light);
}

.about-photo span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */

.contact {
  background: var(--bg-page);
  padding: 3.5rem 0;
}

.contact-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.chat-panel {
  display: flex;
}

.chat-placeholder {
  width: 100%;
  border: 2px dashed var(--green-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.chat-placeholder h3 {
  color: var(--grey-light);
  margin-bottom: 0;
}

.chat-placeholder p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--grey-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--grey-light);
}

.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
  border-color: #e05252;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--green-light);
  min-height: 1.2em;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-alt);
  color: var(--grey-light);
  padding: 2rem 0;
  text-align: center;
}

.site-footer a {
  color: var(--green-light);
}

.footer-inner p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.footer-phone {
  margin-bottom: 0.75rem !important;
}

.footer-phone a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-phone .icon-phone {
  width: 24px;
  height: 24px;
}

.footer-copyright {
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

/* -------------------------------------------------------------------------
   Breakpoints
   ------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }

  .hero { padding: 5.5rem 0; }
  .hero h1 { font-size: 2.75rem; }

  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: stretch;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .about-text {
    text-align: left;
  }

  .about-text p {
    margin: 0;
  }
}

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

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    gap: 0.5rem;
  }

  .nav-menu li {
    border-top: none;
  }

  .nav-menu a {
    padding: 0.5rem 0.9rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
