/*
Theme Name: Green Data
Theme URI: https://www.greendatacenters.com
Author: Green Data
Author URI: https://www.greendatacenters.com
Description: Green Data Centers corporate website — autotrophic data center and component manufacturing developer. Design-accurate theme reproducing the approved Green Data design (home, about, projects, autotrophic integration, newsroom + articles, contact, legal, FAQ).
Version: 1.1.25
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: green-data
*/

/* Self-hosted typefaces (SIL OFL 1.1, see assets/fonts/*-OFL.txt).
   Same families as the current greendatacenters.com: Open Sans + Montserrat. */
@font-face { font-family: "Open Sans"; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(assets/fonts/open-sans-latin-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/open-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(assets/fonts/open-sans-latin-ext-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/open-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Brand palette — adjust to match the official brand guide if it differs */
  --green-900: #0b3d2e;
  --green-800: #114d3a;
  --green-700: #176a4e;
  --green-600: #1f8a63;
  --green-500: #2aa978;
  --green-400: #3cb878;
  --green-300: #7ed0ab;
  --green-100: #e5f4ec;

  --ink: #14201a;
  --body: #39473f;
  --muted: #6b7a71;
  --line: #dfe7e2;
  --paper: #ffffff;
  --paper-2: #f6f9f7;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 61, 46, 0.06), 0 8px 24px rgba(11, 61, 46, 0.08);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --inset: 0px; /* extra left offset for the logo + hero accent bar (now aligned to the wider gutter) */
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--paper-2); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--green-600); margin: 0 0 0.75rem;
}
.lede { font-size: 1.2rem; color: var(--body); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-500); color: var(--green-700); }
.btn--on-dark { background: var(--green-500); color: #fff; }
.btn--on-dark:hover { background: var(--green-400); color: #fff; }

/* Header — transparent over the hero, turns solid on scroll */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px;
}
.brand { display: inline-flex; align-items: center; margin-left: var(--inset); }
.brand:hover { text-decoration: none; }
.brand__mark { height: 46px; width: auto; }
.brand__mark--on-light { display: none; } /* logo stays white-text on the dark ribbon in both states */
.brand__mark--on-dark { display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #fff; font-weight: 500; font-size: 0.98rem; position: relative; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav__cta { color: #fff; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-family: var(--font-head);
}
/* Centered underline: active page always shows it; hover shows it too (not on the pill) */
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -7px; height: 2px; width: 0; background: currentColor;
  transition: width 0.2s ease;
}
.nav a:not(.nav__cta):hover::after,
.nav a:not(.nav__cta).active::after { width: 100%; }
/* Scrolled state: black ribbon; logo and nav stay white; pill stays green/white */
.site-header.solid { background: var(--green-900); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 22px rgba(0, 0, 0, 0.28); }
.site-header.solid .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* Hero (home) */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  color: #fff; background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 15, 0.84), rgba(8, 20, 15, 0.42)); }
.hero .container { position: relative; padding-top: 128px; padding-bottom: 84px; }
.hero__inner { border-left: 5px solid var(--green-500); padding-left: 28px; max-width: 780px; margin-left: var(--inset); }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
.hero p {
  color: #d6e7de; font-size: 1.05rem; max-width: 23em; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 500; margin-top: 18px;
}
.hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__actions .btn { font-weight: 400; }

/* Page banner (inner pages) */
.page-hero { position: relative; color: #fff; background-size: cover; background-position: center; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 15, 0.64); }
.page-hero--solid { background: var(--green-900); }
.page-hero--solid::before { background: transparent; }
.page-hero .container { position: relative; padding-top: 148px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; }
.page-hero__divider { width: 62px; height: 3px; background: var(--green-500); margin: 16px auto 0; border: 0; }
.page-hero p { text-transform: uppercase; letter-spacing: 0.08em; color: #d8e8e0; font-size: 0.95rem; margin: 18px 0 0; }

/* Centered intro + 3 feature columns (home) */
.intro { text-align: center; }
.intro h2 { color: var(--green-700); }
.intro .lede { margin: 0 auto; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 52px; text-align: left; }
/* Card titles (home feature cards and newsroom cards) share one size */
.feature h3, .post-item h3 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.5rem); font-weight: 600; }
.feature h3 { color: var(--green-700); margin-bottom: 0.5rem; }
.feature p { color: var(--body); }
.feature .card__link { font-family: var(--font-head); font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 8px; }

/* Cards (generic, used on renewables etc.) */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* 2x2 pillar cycle with clockwise arrows in the gutters (desktop only) */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 24px; position: relative; }
.orchestration-card { margin-bottom: 24px; }
.orchestration-card__list { margin: 0; padding-left: 1.2rem; }
.orchestration-card__list li { margin-bottom: 0.5rem; color: var(--body); }
.orchestration-card__list li:last-child { margin-bottom: 0; }
.pillars__arrow { position: absolute; width: 0; height: 0; z-index: 3; pointer-events: none; }
.pillars__arrow--right { left: 50%; top: 25%; transform: translate(-50%, -50%); border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 9px solid var(--muted); }
.pillars__arrow--left  { left: 50%; top: 75%; transform: translate(-50%, -50%); border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-right: 9px solid var(--muted); }
.pillars__arrow--down  { left: 75%; top: 50%; transform: translate(-50%, -50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 9px solid var(--muted); }
.pillars__arrow--up    { left: 25%; top: 50%; transform: translate(-50%, -50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-bottom: 9px solid var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; color: var(--green-700); }
.card__link { font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.member { display: grid; grid-template-columns: 128px 1fr; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.member__photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: var(--green-100); }
.member__name { margin-bottom: 2px; }
.member__role { color: var(--green-700); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; font-family: var(--font-head); }
.member__bio { color: var(--body); margin: 0; padding-left: 1.1rem; }
.member__bio li { margin-bottom: 0.3rem; }

/* Projects */
.project { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.project__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); }
.project__media img, .project__media > div { width: 100%; height: 190px; object-fit: cover; background: linear-gradient(135deg, var(--green-100), var(--green-300)); }
.project__media--single { display: block; }
.project__media--single img, .project__placeholder { width: 100%; height: 340px; object-fit: cover; display: block; }
.project__placeholder { background: linear-gradient(135deg, var(--green-100), var(--green-300)); }
.project__body { padding: 30px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 14px; font-size: 0.95rem; color: var(--muted); }
.project__meta b { color: var(--ink); font-weight: 600; }
.facts { margin: 0; padding-left: 1.1rem; }
.facts li { margin-bottom: 0.4rem; }

.legal__section { scroll-margin-top: 110px; }
.legal__section + .legal__section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }

/* Newsroom */
.post-list { display: grid; gap: 18px; }
/* Thumbnail on the LEFT (fixed width, image at its natural proportions),
   date/headline/blurb/read-more on the right, vertically centered. */
.post-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  display: grid; grid-template-columns: auto 1fr; align-items: start;
}
.post-item__media {
  position: relative; display: block; width: 220px; margin: 24px 22px; border-radius: 10px; overflow: hidden;
}
a.post-item__media:hover { text-decoration: none; }
.post-item__title-link { color: inherit; text-decoration: none; }
.post-item__title-link:hover { color: var(--green-700); }
.post-item__img { display: block; width: 100%; height: auto; } /* keeps each image's proportions */
/* Union logo (contain): whole logo shown, scaled to the ~124px height of the photo thumbnails */
.post-item__media--contain { background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.post-item__media--contain .post-item__img { width: auto; height: 124px; max-width: 100%; }
.post-item__play { position: absolute; inset: 0; display: grid; place-items: center; }
.post-item__play span {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(11, 61, 46, 0.6);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.post-item__play span::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.post-item__body { padding: 24px 28px 24px 4px; min-width: 0; }
.post-item--noimg { grid-template-columns: 1fr; }
.post-item--noimg .post-item__body { padding: 24px 28px; }
.post-item__date { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.post-item h3 { margin-bottom: 10px; }
.article { max-width: 760px; }
.article__photo { width: 33.333%; min-width: 160px; margin: 0 0 24px; }
.article__photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.article__photo--contain { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.article__photo--contain img { border-radius: 0; }
.article__back { margin: 32px 0 0; }
.article__meta { color: var(--muted); margin-bottom: 24px; }
.article__h { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.article__list { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.article__list li { margin-bottom: 0.5rem; color: var(--body); }

/* Legal + FAQ */
.legal { max-width: 820px; }
.legal__effective { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.legal__h { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p { color: var(--body); }
.legal__list { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal__list li { color: var(--body); margin-bottom: 0.4rem; }
.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq__q { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin: 0 0 8px; }
.faq__a { margin: 0; color: var(--body); }

/* Contact form */
.form { display: grid; gap: 16px; max-width: 560px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: var(--green-500); }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.form__status { font-size: 0.95rem; font-weight: 600; }
.form__status--ok { color: var(--green-700); }
.form__status--err { color: #b4451f; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe7db; padding: 60px 0 34px; }
.site-footer a { color: #cfe7db; }
.site-footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px 56px; }
.footer__logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer__tag { max-width: 44ch; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; font-weight: 600; color: #9cc7b4; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 0.95rem; }
.footer__social:hover { text-decoration: none; }
.footer__cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.footer__heading { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.footer__offices { font-style: normal; font-size: 0.95rem; line-height: 1.5; color: #b7d6c8; }
.footer__offices p { margin: 0 0 12px; }
.footer__email { margin-top: 4px !important; margin-bottom: 0 !important; }
.footer__email a { font-weight: 600; }
.footer__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; color: #8fb9a7; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer__legal-nav { display: flex; gap: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .grid--3, .grid--2, .team-grid, .cards3, .pillars { grid-template-columns: 1fr; }
  .pillars__arrow { display: none; }
  .brand, .hero__inner { margin-left: 0; }
  .cards3 { gap: 28px; }
  .member { grid-template-columns: 100px 1fr; }
  .member__photo { width: 100px; height: 100px; }
  .download { grid-template-columns: 1fr; }
  .download__thumb { width: 100%; height: 190px; }
  .footer__top, .footer__cols { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav--open {
    display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .nav--open a { color: var(--body); }
  .nav--open .nav__cta { color: #fff; align-self: center; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .project__media { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; }
  .post-item__media { width: auto; margin: 20px 20px 0; }
  /* stacked: left-justify the text with the thumbnail's left edge (20px) */
  .post-item__body { padding: 16px 20px 22px 20px; }
  .hero { min-height: 92vh; }
}

/* Contact form (Fluent Forms) — matched to the theme */
.contact-form { max-width: 720px; margin-top: 32px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.contact-form .ff-el-input--label label { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.contact-form .ff-el-form-control { font-family: var(--font-sans); font-size: 17px; border-radius: 10px; border-color: var(--line); } /* matches body text; 16px+ also stops iPhones zooming in on tap */
.contact-form .ff-el-form-control:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.contact-form .ff-btn-submit { font-family: var(--font-head); font-weight: 600; border-radius: 999px !important; padding: 0.85rem 1.75rem; background: var(--green-600) !important; border-color: var(--green-600) !important; color: #fff !important; }
.contact-form .ff-btn-submit:hover { background: var(--green-700) !important; }
.contact-form .ff-el-form-check-label, .contact-form .ff-custom_html { font-size: 0.95rem; color: var(--body); }
@media (max-width: 640px) { .contact-form { padding: 20px; } }
/* Confirmation after sending: plain text in the form card (no inner box). */
.contact-form .ff-message-success { border: 0; box-shadow: none; background: none; padding: 0; margin: 0; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.contact-form--confirmed { margin-top: 0; }
.contact-form__done { margin: 0 0 8px; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.contact-form--confirmed p:last-child { margin-bottom: 0; }

/* Keep the fixed header below the WordPress toolbar for signed-in editors */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Knowledge / fact sheets */
.kb-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.kb-more { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.kb-more ul { padding-left: 1.1rem; }
