/* ──────────────────────────────────────────────────────────────────────────
   Honestas Commercial Services — Design System
   Brand-faithful colors. Easier-to-read typography. Subtle motion.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand palette pulled from original Hostinger build */
  --color-olive:        #979E49;   /* primary olive — nav links + hover state on dark */
  --color-olive-deep:   #6E7733;   /* deeper olive — button hover */
  --color-olive-hover:  #0D1A10;   /* hover/active dark */
  --color-dark-green:   #243328;   /* services section bg */
  --color-dark-navy:    #1B395A;   /* hero overlay */
  --color-near-black:   #0D1A10;   /* primary text on light */
  --color-accent:       #DCF008;   /* yellow-green CTA accent */
  --color-light:        #FFFFFF;
  --color-soft:         #F4F5F0;   /* section alt bg — gentler than pure grey */
  --color-grey-text:    #4A4F47;   /* body copy on light */
  --color-grey-mute:    #888B82;   /* muted/meta text */
  --color-footer-bg:    #DFDFEB;
  --color-border:       #E2E3DC;

  /* Type scale — slightly larger + airier than original for readability */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-h1:   clamp(2.4rem, 4.6vw, 3.8rem);
  --fs-h2:   clamp(1.8rem, 3.2vw, 2.6rem);
  --fs-h3:   clamp(1.3rem, 2.2vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  --lh-tight: 1.2;
  --lh-snug:  1.45;
  --lh-comfy: 1.7;     /* body line-height — easier on the eyes */

  /* Layout tokens */
  --container: 1200px;
  --section-pad-y: clamp(64px, 8vw, 120px);
  --section-pad-x: clamp(20px, 4vw, 48px);
  --radius: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 280ms var(--ease-out);
}

/* ── Reset + base ────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-comfy);
  color: var(--color-grey-text);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-near-black);
  margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1.1em; }

ul { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin-bottom: 0.45em; }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section { padding: var(--section-pad-y) 0; }
.section--soft { background: var(--color-soft); }
.section--dark {
  background: var(--color-dark-green);
  color: rgba(255,255,255,0.92);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-light); }

/* Eyebrows in dark sections — visible by default (white), muted-olive on hover.
   Consistent across Hero, Services, Insights, Privacy. */
.section--dark .eyebrow,
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--transition);
}

/* Links in dark sections — white default, muted olive on hover.
   Headings that contain links (e.g. "Our Services" h2 link) follow same rule. */
.section--dark a,
.section--dark h2 a, .section--dark h3 a {
  color: var(--color-light);
  transition: color var(--transition);
}
.section--dark a:hover,
.section--dark h2 a:hover, .section--dark h3 a:hover {
  color: var(--color-olive);
}

/* ── Header / Nav ────────────────────────────────────────────────────────── */
/* Translucent dark nav that lets the hero image's tones bleed through
   for a true "blended" look. Backdrop blur softens the image behind it
   so text + logo stay easy to read. On non-hero pages it still reads as a
   solid dark bar because there's nothing image-y behind it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 41, 32, 0.92);   /* deeper dark-green @ 92% — matches hero top */
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  /* 3-column grid: equal flanks keep the middle (menu) in the dead centre.
     Logo anchored to the left flank, mobile burger to the right flank. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px var(--section-pad-x);
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.nav__brand img {
  height: 88px;             /* bigger logo — anchors the header */
  width: auto;
  border-radius: 50%;       /* logo is already circular; keeps the cream edge crisp */
  transition: transform var(--transition), opacity var(--transition);
}
.nav__brand:hover img { transform: scale(1.04); opacity: 0.95; }

.nav__menu {
  /* sits in the centre column of the 3-column grid */
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-light);
  position: relative;
  padding: 6px 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--color-olive); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-light);
  justify-self: end;          /* sits in the right flank of the 3-col grid */
}
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-dark-green);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--section-pad-x);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  }
  .nav__menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__menu li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__toggle { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--color-dark-navy);
  background-position: center 35%;     /* slightly above-centre — avoids ugly crops */
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-light);
  text-align: center;
  padding: clamp(110px, 16vw, 180px) var(--section-pad-x);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  /* Top fades into the nav bar (#243328 dark green); bottom transitions to a
     deep navy. Result: the nav and hero look like one continuous dark panel,
     with strong contrast for white text underneath. */
  background: linear-gradient(180deg,
    rgba(36, 51, 40, 0.94) 0%,
    rgba(36, 51, 40, 0.82) 30%,
    rgba(13, 26, 16, 0.78) 100%
  );
}
.hero__inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero h1 { color: var(--color-light); margin-bottom: 0.5em; }
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  margin: 0 auto 1.4em;
}

.hero--page {
  padding: clamp(80px, 11vw, 120px) var(--section-pad-x);
  text-align: left;
}
.hero--page .hero__inner { margin: 0 auto; max-width: var(--container); }
.hero--page h1 { text-align: left; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
  text-align: center;
}
/* Primary: olive default → deeper olive on hover. Stays visible on any
   background (hero, light section, dark section). White text throughout. */
.btn--primary {
  background: var(--color-olive);
  color: var(--color-light);
  border-color: var(--color-olive);
}
.btn--primary:hover {
  background: var(--color-olive-deep);
  border-color: var(--color-olive-deep);
  color: var(--color-light);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-light);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-light);
}

/* ── Generic content sections ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-olive);
  margin: 0 0 1em;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--color-near-black);
  max-width: 720px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(13,26,16,0.25);
}

/* ── Cards (services / blog) ─────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(13,26,16,0.18);
}
.card__title {
  color: var(--color-near-black);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.card p { transition: color var(--transition); }
.card__media {
  margin: -28px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { font-size: var(--fs-small); color: var(--color-grey-mute); margin-bottom: 8px; }

/* Cards inside DARK sections — transparent w/ white text, muted-green hover.
   Fixes the "invisible text" issue on the Services section of the homepage. */
.section--dark .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.section--dark .card .card__title { color: var(--color-light); }
.section--dark .card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}
.section--dark .card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(151, 158, 73, 0.55);
}
.section--dark .card:hover .card__title,
.section--dark .card:hover p {
  color: var(--color-olive);   /* muted olive-green — NOT the bright accent */
}

/* ── Partners strip ──────────────────────────────────────────────────────── */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 24px;
}
.partners img {
  max-height: 88px;
  width: auto;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: opacity var(--transition), filter var(--transition);
}
.partners img:hover { filter: grayscale(0); opacity: 1; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-dark-green);
  color: rgba(255,255,255,0.85);
  padding: 0 var(--section-pad-x) 32px;
}

/* Trusted credentials strip — sits at the top of the footer on every page.
   White strip pulled flush to viewport edges; logos visible at full color. */
.footer__credentials {
  background: var(--color-light);
  margin: 0 calc(var(--section-pad-x) * -1) 64px;
  padding: 56px var(--section-pad-x);
  border-bottom: 1px solid var(--color-border);
}
.footer__credentials-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey-mute);
  margin: 0 0 32px;
}
.footer__credentials .partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vw, 96px);
  padding: 0;
  max-width: var(--container);
  margin: 0 auto;
}
.footer__credentials .partners img {
  max-height: 120px;            /* roughly 2x prior — much more presence */
  width: auto;
  filter: grayscale(15%);
  opacity: 0.9;
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}
.footer__credentials .partners img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

/* Push first content row down from credentials strip with normal top padding */
.footer__credentials + .footer__grid { padding-top: 24px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto 48px;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-light);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li { margin-bottom: 10px; }
/* Footer links — white default, muted olive on hover (consistent with rest) */
.footer__list a,
.footer__contact a {
  color: rgba(255,255,255,0.85);
}
.footer__list a:hover,
.footer__contact a:hover { color: var(--color-olive); }

.footer__socials { display: flex; gap: 14px; margin-top: 16px; }
.footer__socials a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--color-light);
  transition: all var(--transition);
}
.footer__socials a:hover {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-light);
}
.footer__socials svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
}

.legal {
  margin: 64px auto 0;
  max-width: var(--container);
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}
.legal h4 {
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 1.4em 0 0.5em;
}

/* ── Article-style long content (Services, Privacy) ──────────────────────── */
.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--color-near-black); }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; }
.prose strong { color: var(--color-near-black); }

/* ── AOS-like manual fade-up (CSS-only, no JS dependency) ────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--anim-delay, 0ms);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
