/* =========================================================
   Hozaked - Shared stylesheet
   All colors are centralized in :root below.
   To adjust the palette, edit only the hex values in that section.
   ========================================================= */

:root {
  /* --- Palette (derived from the logo green #049F45) --- */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F9F5;
  --color-green: #1B7A43;       /* primary green: buttons, links, accents */
  --color-green-dark: #0E4D2A;  /* dark green: headings, header */
  --color-green-light: #3FA968; /* light green: hover, borders */
  --color-text: #14231A;        /* body text */
  --color-text-secondary: #4A5A50; /* secondary text, grey-green */
  --color-border: #DCE8E0;
  --color-white: #FFFFFF;

  /* --- Typography --- */
  --font-heading: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;

  /* --- Scale & rhythm --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(14, 77, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 77, 42, 0.10);
  --container-max: 1180px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text); }

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-green-light); text-decoration: underline; }

ul { padding-left: 1.2em; }

/* --- Accessibility: keyboard focus always visible --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-green-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-green-dark);
  color: #fff;
  padding: 0.75em 1.2em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--alt { background: var(--color-bg-alt); }

.section-header { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-header .eyebrow { margin-bottom: 1em; }
.section-header p { color: var(--color-text-secondary); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  background: rgba(27, 122, 67, 0.08);
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-green-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--secondary {
  background: transparent;
  color: var(--color-green-dark);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-green-light); color: var(--color-green-dark); background: var(--color-bg-alt); }

.btn--block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-dark);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--color-green); }
/* The logo is a square badge: size it square and show the wordmark beside it. */
.brand img { height: 40px; width: 40px; }
.brand__name {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-green-dark);
  position: relative;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-1px) rotate(-45deg); }

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.site-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.site-nav a {
  color: var(--color-text);
  font-weight: 500;
}
.site-nav.is-open a:not(.btn) { padding: 0.6em 0; border-bottom: 1px solid var(--color-border); }
.site-nav .btn { margin-top: 0.5rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .site-nav.is-open { display: flex; }
  /* Reset the mobile list styling - except on the CTA button, which keeps its padding */
  .site-nav a:not(.btn) { border: none; padding: 0; }
  .site-nav .btn { margin-top: 0; padding: 0.7em 1.3em; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(circle at 85% 8%, rgba(63, 169, 104, 0.14), transparent 55%),
    radial-gradient(circle at 5% 95%, rgba(27, 122, 67, 0.10), transparent 45%),
    var(--color-bg);
  overflow: hidden;
}

/* Home hero only: decorative banner image behind the text.
   The image is served as JPEG (assets/banner.jpg, ~111 KB); the original
   PNG master is kept at assets/banner.png. A white gradient covers the left
   side so the headline always sits on plain white and stays legible.
   To swap the artwork, replace assets/banner.jpg and keep the same aspect
   ratio (~2.4:1) so the composition stays balanced. */
.hero--banner {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(100deg,
      #fff 0%,
      #fff 46%,
      rgba(255, 255, 255, 0.92) 58%,
      rgba(255, 255, 255, 0.45) 72%,
      rgba(255, 255, 255, 0) 88%),
    url("assets/banner.jpg");
  background-size: cover;
  background-position: center, center right;
  background-repeat: no-repeat;
}

/* Below the desktop breakpoint the text spans the full width, so the overlay
   is strengthened: the artwork stays as a subtle texture, never behind copy. */
@media (max-width: 859px) {
  .hero--banner {
    background-image:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.90) 60%,
        rgba(255, 255, 255, 0.74) 100%),
      url("assets/banner.jpg");
  }
}

/* The hero block spans the full container so it lines up with the header logo,
   while its contents stay within a comfortable measure. This keeps the copy on
   the left half, clear of the banner artwork on the right. */
.hero__inner { max-width: var(--container-max); }
.hero__inner > * { max-width: 700px; }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

/* =========================================================
   STATS BAND
   ========================================================= */
.stats {
  background: var(--color-green-dark);
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat__value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-green-light);
  margin-bottom: 0.35em;
}
.stat__label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
}

/* =========================================================
   CARDS (services)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-green-light);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--color-text-secondary); font-size: 0.96rem; margin-bottom: 0; }

/* =========================================================
   APPROACH (timeline)
   ========================================================= */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .approach-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.steps li:last-child { border-bottom: none; }
.step__num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}
.step__body h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.step__body p { color: var(--color-text-secondary); font-size: 0.94rem; margin: 0; }

.proof-panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.proof-panel h3 { margin-bottom: 0.6em; }
.proof-panel p { color: var(--color-text-secondary); font-size: 0.95rem; }
.proof-panel ul { margin: 1em 0 0; padding-left: 1.1em; color: var(--color-text-secondary); font-size: 0.94rem; }
.proof-panel li { margin-bottom: 0.5em; }

/* =========================================================
   DIFFERENTIATION
   ========================================================= */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
}
.diff-item {
  border-left: 3px solid var(--color-green);
  padding-left: 1.1rem;
}
.diff-item h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.diff-item p { color: var(--color-text-secondary); font-size: 0.94rem; margin: 0; }

.partner-note {
  margin-top: 2rem;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-green-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.94rem;
  color: var(--color-text-secondary);
}
.partner-note strong { color: var(--color-green-dark); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-final {
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin: 0 auto;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.88); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-final .btn--secondary { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-final .btn--secondary:hover { background: rgba(255,255,255,0.18); border-color: #fff; }
.cta-final .btn--primary { background: #fff; color: var(--color-green-dark); }
.cta-final .btn--primary:hover { background: var(--color-bg-alt); color: var(--color-green-dark); }
.cta-final .hero__actions { justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
/* In the footer (dark green background) the logo renders as a white silhouette.
   This requires a PNG with a transparent background - see README. */
.footer-brand__lockup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.footer-brand img { height: 38px; width: 38px; filter: brightness(0) invert(1); }
.footer-brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.65em; }
.footer-col a { color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: #fff; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.social-links a:hover { background: rgba(255,255,255,0.12); border-color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom nav a { color: rgba(255,255,255,0.6); margin-left: 1rem; }
.footer-bottom nav a:hover { color: #fff; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-green-dark);
  margin-bottom: 0.4em;
}
.form-group .required { color: var(--color-green); }

.form-control {
  width: 100%;
  padding: 0.8em 1em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  border-color: var(--color-green-light);
  box-shadow: 0 0 0 3px rgba(63, 169, 104, 0.18);
}
textarea.form-control { resize: vertical; min-height: 140px; }

.form-error {
  display: block;
  font-size: 0.84rem;
  color: #B3261E;
  margin-top: 0.35em;
  min-height: 1.1em;
}
.form-control[aria-invalid="true"] { border-color: #B3261E; }

.form-status {
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success { background: rgba(27, 122, 67, 0.1); color: var(--color-green-dark); border: 1px solid var(--color-green-light); }
.form-status--error { background: rgba(179, 38, 30, 0.08); color: #8C1E17; border: 1px solid #E3968F; }

.contact-info {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info h2 { font-size: 1.3rem; }
.contact-info ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75em 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.96rem;
}
.contact-info li:last-child { border-bottom: none; }
.contact-info .icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-green);
}

/* =========================================================
   SCROLL REVEAL (subtle, honours prefers-reduced-motion)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   SOCIAL PLACEHOLDER
   Non-interactive stand-in used while a profile URL is unknown.
   Replace the <span> with a real <a> in the HTML to activate it.
   ========================================================= */
.social-links__placeholder {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
}
.contact-info__soon { color: var(--color-text-secondary); }
.contact-info__soon em { font-style: normal; opacity: 0.75; font-size: 0.88em; }

/* =========================================================
   LEGAL PAGE
   ========================================================= */
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-top: 0.4em; }
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--color-border);
}
.legal-page__updated {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  margin-bottom: 2em;
}
.legal-page ul { color: var(--color-text-secondary); margin-bottom: 1.2em; }
.legal-page li { margin-bottom: 0.6em; }
.legal-page p { color: var(--color-text-secondary); }
.legal-page strong { color: var(--color-text); }

/* =========================================================
   COOKIE NOTICE
   Informational only: this site sets no cookies. The banner is
   revealed by main.js and remembers dismissal in localStorage.
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.15rem 1.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(14, 77, 42, 0.16);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.cookie-banner__text strong { color: var(--color-green-dark); }

.cookie-banner__btn { flex: none; align-self: flex-start; }

@media (min-width: 620px) {
  .cookie-banner { flex-direction: row; align-items: center; gap: 1.25rem; }
  .cookie-banner__btn { align-self: auto; }
}

/* Entrance animation, skipped when reduced motion is requested */
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-banner-in 320ms ease-out both; }
  @keyframes cookie-banner-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Compact hero used on secondary pages (About us) — no bottom actions row. */
.hero--compact { padding-bottom: clamp(2rem, 5vw, 3rem); }
