/*
Theme Name: Greens Logistics
Theme URI: https://greenslogistics.com/
Author: Greens Logistics
Description: Site shell for Greens Logistics with shared header/footer, homepage, legal pages, and RoRo Page Templates integration.
Version: 1.0.0
Text Domain: greens-logistics
*/

:root {
  color-scheme: light;

  --c-bg: #f2f6f3;
  --c-surface: #ffffff;
  --c-surface-2: #e6efe9;
  --c-ink: #12201a;
  --c-ink-2: #51625a;
  --c-line: #d6e2db;

  --c-brand: #1d6f4e;
  --c-brand-ink: #0d3a28;
  --c-brand-soft: rgba(29,111,78,.10);

  --c-accent: #e3a81f;
  --c-accent-hover: #f0bb3c;
  --c-accent-ink: #281d03;

  --c-header-bg: #0d3a28;
  --c-header-ink: #cbe2d5;

  --font-base: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --shell: 1220px;
  --gutter: 24px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-md: 0 1px 2px rgba(13,58,40,.05),
               0 16px 36px -22px rgba(13,58,40,.35);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #0a1410;
  --c-surface: #11201a;
  --c-surface-2: #16281f;
  --c-ink: #e2ede7;
  --c-ink-2: #97ada1;
  --c-line: #22382d;
  --c-brand: #4ec28b;
  --c-brand-ink: #bfe8d4;
  --c-brand-soft: rgba(78,194,139,.13);
  --c-accent: #e8b134;
  --c-accent-hover: #f4c44f;
  --c-accent-ink: #211903;
  --c-header-bg: #06100b;
  --c-header-ink: #b2cabb;
}

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.62;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-brand); text-underline-offset: .18em; }
a:hover { color: var(--c-brand-ink); }
img, svg { max-width: 100%; }

.roro-shell,
.gl-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header — matches RoRo template design */
.roro-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-header-bg);
  color: #fff;
}

.roro-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.roro-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .03em;
}

.roro-brand:hover { color: #fff; }

.roro-brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--c-brand);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}

.roro-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.roro-nav a {
  color: var(--c-header-ink);
  text-decoration: none;
  font-size: .95rem;
}

.roro-nav a:hover { color: #fff; }

.roro-header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roro-theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.roro-theme-toggle:hover { background: rgba(255,255,255,.09); }
.roro-theme-toggle svg { width: 19px; height: 19px; }
.roro-theme-toggle .roro-i-sun { display: none; }
:root[data-theme="dark"] .roro-theme-toggle .roro-i-sun { display: block; }
:root[data-theme="dark"] .roro-theme-toggle .roro-i-moon { display: none; }

.roro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.roro-btn:hover {
  background: var(--c-accent-hover);
  color: var(--c-accent-ink);
}

/* Footer */
.roro-footer {
  background: var(--c-header-bg);
  color: var(--c-header-ink);
  padding: 42px 0;
  font-size: .94rem;
}

.roro-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.roro-footer__name {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.roro-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roro-footer a {
  color: var(--c-header-ink);
  text-decoration: none;
}

.roro-footer a:hover { color: #fff; }

/* Generic site page */
.gl-page {
  padding: 56px 0 88px;
}

.gl-page__hero {
  margin-bottom: 38px;
}

.gl-page__eyebrow {
  margin: 0 0 12px;
  color: var(--c-brand);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 800;
}

.gl-page h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.gl-page h2 {
  margin: 2.2em 0 .7em;
  font-size: clamp(1.45rem, 1.15rem + .9vw, 2rem);
  line-height: 1.18;
}

.gl-page h3 {
  margin: 1.7em 0 .55em;
  font-size: 1.15rem;
}

.gl-page p,
.gl-page li {
  max-width: 72ch;
}

.gl-content-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
}

/* Homepage */
.gl-home-hero {
  padding: 78px 0 72px;
  background:
    radial-gradient(circle at 80% 20%, var(--c-brand-soft), transparent 28%),
    var(--c-surface-2);
}

.gl-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: 52px;
  align-items: center;
}

.gl-home-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 1.5rem + 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.gl-home-hero__lead {
  max-width: 58ch;
  margin: 22px 0 28px;
  font-size: 1.15rem;
  color: var(--c-ink-2);
}

.gl-home-route-card {
  min-height: 310px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
}

.gl-home-route-card__line {
  height: 2px;
  margin: 55px 16px 35px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-brand) 0 5px,
    transparent 5px 13px
  );
}

.gl-home-route-card__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gl-home-route-card__facts div {
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--c-bg);
}

.gl-home-route-card__facts small {
  display: block;
  margin-bottom: 4px;
  color: var(--c-ink-2);
}

.gl-section {
  padding: 72px 0;
}

.gl-section--alt {
  background: var(--c-surface-2);
}

.gl-section__heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.gl-section__heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.7rem);
  line-height: 1.12;
}

.gl-section__heading p {
  margin: 0;
  color: var(--c-ink-2);
}

.gl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.gl-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.gl-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.gl-card p {
  margin: 0;
  color: var(--c-ink-2);
}

/* Legal page */
.gl-legal {
  padding: 54px 0 88px;
}

.gl-legal__inner {
  max-width: 850px;
}

.gl-legal__meta {
  color: var(--c-ink-2);
  font-size: .9rem;
  margin: 8px 0 34px;
}

.gl-legal__content {
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.gl-legal__content h2 {
  margin: 2.2em 0 .65em;
  font-size: 1.55rem;
}

.gl-legal__content h2:first-child {
  margin-top: 0;
}

.gl-legal__content h3 {
  margin: 1.7em 0 .5em;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .roro-nav { display: none; }
  .gl-home-hero__grid,
  .roro-footer__inner,
  .gl-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .roro-header__inner { gap: 10px; }
  .roro-brand { font-size: .82rem; }
  .roro-brand__mark { width: 32px; height: 32px; }
  .roro-header__tools .roro-btn { padding: 10px 13px; font-size: .82rem; }
  .gl-home-route-card__facts { grid-template-columns: 1fr; }
}
