/* ========================================================================== */
/* EMS STATIC WEBSITE STYLESHEET                                              */
/* This file controls all colours, spacing, typography and responsive layout. */
/* ========================================================================== */

/* Define the site's reusable design tokens in one place. */
:root {
  --green-950: #073c2a;
  --green-900: #0b4f36;
  --green-800: #136b49;
  --green-700: #238354;
  --green-600: #329460;
  --green-100: #eaf5ee;
  --green-050: #f5faf7;
  --yellow: #f2c94c;
  --orange: #ef8a2f;
  --ink: #17231d;
  --body: #526158;
  --muted: #718077;
  --border: #dce8e0;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(18, 72, 48, 0.10);
  --radius-lg: 22px;
  --radius-md: 15px;
  --container: 1180px;
}

/* Use predictable box sizing across all elements. */
*, *::before, *::after { box-sizing: border-box; }

/* Establish the page font, colour, line-height and background. */
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* Keep media responsive and eliminate inline-image gaps. */
img { display: block; width: 100%; max-width: 100%; }
svg { display: block; width: 1.1em; height: 1.1em; fill: currentColor; flex: 0 0 auto; }

/* Normalise common text elements. */
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--body); }
h1, h2, h3 { margin: 0 0 1rem; color: var(--ink); font-weight: 650; letter-spacing: -0.025em; line-height: 1.16; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4.35rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { font-size: 1.18rem; }
ul { margin: 0; padding: 0; }

/* Centre content while preserving comfortable side padding. */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

/* Make keyboard focus states clearly visible. */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Hide the skip link until keyboard users focus it. */
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 14px; color: var(--white); background: var(--green-950); border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* -------------------------------------------------------------------------- */
/* HEADER AND NAVIGATION                                                      */
/* -------------------------------------------------------------------------- */

/* Compact contact bar above the main navigation. */
.topbar { color: var(--white); background: var(--green-950); font-size: 0.86rem; }
.topbar__inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__contacts, .social-links { display: flex; align-items: center; gap: 24px; }
.topbar a, .social-links a { display: inline-flex; align-items: center; gap: 8px; transition: opacity .2s ease; }
.topbar a:hover, .social-links a:hover { opacity: .78; }
.social-links a { width: 31px; height: 31px; justify-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }

/* Sticky main navigation remains visible while visitors scroll. */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.site-header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* Brand combines the approved logo with the company name and descriptor. */
.brand { display: flex; align-items: center; gap: 13px; min-width: 300px; }
.brand img { width: 72px; height: 52px; object-fit: contain; }
.brand__text { display: grid; gap: 3px; }
.brand__text strong { color: var(--green-950); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__text small { color: var(--muted); font-size: .76rem; }

/* Desktop navigation uses calm spacing and a modest active underline. */
.primary-navigation { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 620; }
.primary-navigation > a:not(.nav-cta) { position: relative; padding-block: 12px; }
.primary-navigation > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--green-600); transition: right .22s ease; }
.primary-navigation > a:hover::after, .primary-navigation > a.active::after { right: 0; }
.nav-cta { padding: 13px 18px; color: var(--white); background: var(--green-700); border-radius: 9px; box-shadow: 0 8px 20px rgba(35,131,84,.18); }
.nav-cta:hover { background: var(--green-800); }
.mobile-menu-button { display: none; padding: 9px; color: var(--green-950); background: transparent; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }

/* -------------------------------------------------------------------------- */
/* SHARED BUTTONS AND TEXT LINKS                                              */
/* -------------------------------------------------------------------------- */
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; color: var(--white); background: var(--green-700); border: 1px solid var(--green-700); border-radius: 9px; font-weight: 650; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-800); box-shadow: 0 12px 24px rgba(35,131,84,.18); }
.button--outline { color: var(--green-900); background: var(--white); border-color: #9ec9ae; }
.button--outline:hover { background: var(--green-050); }
.button--light { color: var(--green-950); background: var(--white); border-color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--green-800); font-size: .9rem; font-weight: 700; }
.text-link svg { width: 17px; height: 17px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------- */
/* HERO SECTIONS                                                              */
/* -------------------------------------------------------------------------- */
.hero-section, .page-hero { overflow: hidden; background: linear-gradient(130deg, #ffffff 15%, #f4faf6 100%); }
.hero-grid, .page-hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 64px; padding-block: 72px 88px; }
.hero-copy, .page-hero__copy { max-width: 610px; }
.hero-summary, .page-hero__copy > p:not(.eyebrow-chip) { max-width: 600px; font-size: 1.06rem; }
.eyebrow-chip { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 21px; padding: 7px 12px; color: var(--green-800); background: var(--green-100); border-radius: 999px; font-size: .75rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow-chip::before { content: ""; width: 7px; height: 7px; margin-right: 8px; background: var(--yellow); border-radius: 50%; }
.hero-media, .page-hero__image { position: relative; min-height: 500px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-media > img, .page-hero__image > img { width: 100%; height: 100%; object-fit: cover; }
.hero-capabilities { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 13px 32px rgba(24,70,50,.15); backdrop-filter: blur(10px); }
.hero-capabilities div { display: grid; justify-items: center; gap: 5px; padding: 17px 13px; text-align: center; border-right: 1px solid var(--border); }
.hero-capabilities div:last-child { border-right: 0; }
.hero-capabilities svg { width: 23px; height: 23px; color: var(--green-700); }
.hero-capabilities strong { font-size: .83rem; }
.hero-capabilities span { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.page-hero__image { min-height: 420px; }
.page-hero--compact .page-hero__grid { padding-block: 64px 72px; }
.country-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.country-list span { padding: 7px 11px; color: var(--green-900); background: var(--white); border: 1px solid var(--border); border-radius: 999px; font-size: .84rem; font-weight: 650; }

/* -------------------------------------------------------------------------- */
/* SHARED SECTION SPACING AND HEADINGS                                        */
/* -------------------------------------------------------------------------- */
.section { padding-block: 104px; }
.section--white { background: var(--white); }
.section--tinted { background: var(--green-050); }
.section-heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-heading > p, .section-eyebrow { margin-bottom: 10px; color: var(--green-700); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-heading > h2 { margin-bottom: 14px; }
.section-heading > span { display: block; color: var(--muted); }

/* -------------------------------------------------------------------------- */
/* SERVICE OVERVIEW CARDS                                                     */
/* -------------------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { min-height: 330px; display: flex; flex-direction: column; padding: 29px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(27,80,54,.045); }
.service-number { margin-bottom: 15px; color: var(--green-600); font-size: .82rem; font-weight: 800; }
.service-card h3 { min-height: 2.6em; }
.service-card > p:not(.service-number) { font-size: .92rem; }
.service-card .text-link { margin-top: auto; }
.bullet-list { list-style: none; display: grid; gap: 8px; margin-top: 9px; }
.bullet-list li { position: relative; padding-left: 16px; color: var(--body); font-size: .85rem; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }
.bullet-list--green li::before { background: var(--green-600); }

/* -------------------------------------------------------------------------- */
/* SPLIT FEATURE SECTIONS                                                     */
/* -------------------------------------------------------------------------- */
.split-feature { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 72px; }
.split-feature--reverse .feature-copy { order: 1; }
.split-feature--reverse .feature-image { order: 2; }
.feature-image { min-height: 430px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-image--wide { min-height: 470px; }
.feature-copy > p:not(.section-eyebrow):not(.eyebrow-chip) { max-width: 620px; }
.check-list { list-style: none; display: grid; gap: 11px; margin: 24px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: 9px; font-size: .89rem; }
.check-list svg { margin-top: 2px; color: var(--green-600); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 27px 0 31px; }
.benefit-grid div { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; align-items: start; }
.benefit-grid svg { color: var(--green-600); }
.benefit-grid strong, .benefit-grid span { grid-column: 2; }
.benefit-grid span { color: var(--muted); font-size: .8rem; line-height: 1.45; }

/* -------------------------------------------------------------------------- */
/* INDUSTRIES AND CASE STUDIES                                                */
/* -------------------------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry-card { padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.industry-card h3 { min-height: 3em; color: var(--green-900); font-size: .98rem; }
.industry-card ul { list-style: none; display: grid; gap: 8px; }
.industry-card li { position: relative; padding-left: 14px; color: var(--muted); font-size: .83rem; }
.industry-card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 4px; height: 4px; background: var(--green-600); border-radius: 50%; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(27,80,54,.06); }
.case-card > img { height: 230px; object-fit: cover; }
.case-card__body { padding: 24px; }
.case-category { margin-bottom: 7px; color: var(--green-600); font-size: .73rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.case-card__body > p:not(.case-category) { font-size: .9rem; }

/* -------------------------------------------------------------------------- */
/* MISSION, VALUES AND FOUNDER                                                */
/* -------------------------------------------------------------------------- */
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.mission-grid article { padding: 40px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { padding: 30px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.value-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; color: var(--green-700); background: var(--green-100); border-radius: 50%; }
.founder-panel { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 54px; align-items: center; }
.founder-portrait { position: relative; min-height: 440px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 24px; background: linear-gradient(150deg, #eef8f1 0%, #ffffff 72%); border: 1px solid var(--border); }
.founder-portrait::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; top: 42px; left: 50%; transform: translateX(-50%); background: rgba(49, 137, 91, .12); }
.founder-portrait img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 440px; object-fit: contain; object-position: center bottom; }
.founder-copy h2 { margin-bottom: 4px; }
.founder-title { margin: 0 0 22px; color: var(--brand-green); font-weight: 700; }
.founder-copy p { max-width: 760px; }
.founder-copy p + p { margin-top: 14px; }

/* -------------------------------------------------------------------------- */
/* DETAILED SERVICE AND PROJECT LAYOUTS                                       */
/* -------------------------------------------------------------------------- */
.service-detail-list, .work-detail-list { display: grid; gap: 92px; }
.service-detail, .work-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 68px; scroll-margin-top: 140px; }
.service-detail--reverse .service-detail__copy, .work-detail--reverse .work-detail__copy { order: 2; }
.service-detail--reverse .service-detail__image, .work-detail--reverse .work-detail__image { order: 1; }
.service-detail__image, .work-detail__image { min-height: 430px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-detail__image img, .work-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__copy .bullet-list { margin: 24px 0; }
.work-location { color: var(--green-700); font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* CONSULTATION FORM                                                          */
/* -------------------------------------------------------------------------- */
.consultation-hero { padding-block: 76px; text-align: center; background: var(--green-050); }
.consultation-hero__inner { max-width: 800px; }
.consultation-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 60px; align-items: start; }
.form-intro { margin-bottom: 28px; }
.consultation-form { padding: 32px; background: var(--green-050); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 650; }
.form-span { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid #bfd3c5; border-radius: 9px; font: inherit; }
textarea { resize: vertical; }
.hidden-field { position: absolute; left: -10000px; }
.form-note { margin: 15px 0 0; color: var(--muted); font-size: .78rem; }
.contact-panel { padding: 34px; background: var(--green-950); border-radius: var(--radius-lg); color: var(--white); }
.contact-panel h2, .contact-panel strong { color: var(--white); }
.contact-panel > p { color: #cde3d6; }
.contact-panel > a { display: flex; align-items: center; gap: 11px; padding-block: 13px; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-panel__address { margin-top: 24px; }
.contact-panel__address p { color: #cde3d6; }
.thank-you-section { min-height: 68vh; display: grid; place-items: center; padding-block: 90px; background: var(--green-050); }
.thank-you-card { max-width: 760px; padding: 60px; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.thank-you-card .button-row { justify-content: center; }

/* -------------------------------------------------------------------------- */
/* CALL-TO-ACTION BAND AND FOOTER                                             */
/* -------------------------------------------------------------------------- */
.cta-band { color: var(--white); background: linear-gradient(110deg, var(--green-900), var(--green-700)); }
.cta-band__inner { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-band h2 { max-width: 720px; margin-bottom: 7px; color: var(--white); }
.cta-band p { margin-bottom: 0; color: #d5e9dd; }
.site-footer { color: #d7e9de; background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .65fr 1fr; gap: 70px; padding-block: 62px 44px; }
.brand--footer { min-width: 0; color: var(--white); }
.brand--footer .brand__text strong { color: var(--white); }
.footer-brand > p, .site-footer li { color: #b9d1c4; font-size: .85rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 8px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.social-links--footer { margin-top: 18px; gap: 9px; }
.footer-bottom { padding-block: 18px 28px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: #8fb09e; font-size: .76rem; }

/* -------------------------------------------------------------------------- */
/* TABLET RESPONSIVE RULES                                                    */
/* -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .topbar__contacts { gap: 14px; }
  .brand { min-width: 0; }
  .mobile-menu-button { display: inline-flex; }
  .primary-navigation { position: absolute; left: 24px; right: 24px; top: calc(100% + 10px); display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 18px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation > a:not(.nav-cta) { padding: 10px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .hero-grid, .page-hero__grid, .split-feature, .service-detail, .work-detail, .consultation-grid, .founder-panel { grid-template-columns: 1fr; }
  .hero-grid, .page-hero__grid { gap: 42px; }
  .hero-media, .page-hero__image { min-height: 460px; }
  .split-feature--reverse .feature-copy, .split-feature--reverse .feature-image, .service-detail--reverse .service-detail__copy, .service-detail--reverse .service-detail__image, .work-detail--reverse .work-detail__copy, .work-detail--reverse .work-detail__image { order: initial; }
  .service-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------- */
/* MOBILE RESPONSIVE RULES                                                    */
/* -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  .container { width: min(100% - 30px, var(--container)); }
  .topbar__inner { padding-block: 8px; }
  .topbar__contacts { gap: 10px; flex-wrap: wrap; }
  .topbar__contacts a:nth-child(3) { display: none; }
  .topbar__contacts span { font-size: .72rem; }
  .site-header__inner { min-height: 76px; }
  .brand img { width: 55px; height: 40px; }
  .brand__text strong { font-size: .92rem; }
  .brand__text small { display: none; }
  .hero-grid, .page-hero__grid { padding-block: 48px 64px; }
  .hero-media, .page-hero__image { min-height: 390px; }
  .hero-capabilities { left: 10px; right: 10px; bottom: 10px; }
  .hero-capabilities span { display: none; }
  .hero-capabilities div { padding: 12px 6px; }
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 38px; }
  .service-grid, .case-grid, .industry-grid, .mission-grid, .values-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .feature-image, .feature-image--wide, .service-detail__image, .work-detail__image { min-height: 330px; }
  .split-feature, .service-detail, .work-detail { gap: 40px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .industry-card h3 { min-height: auto; }
  .form-span { grid-column: auto; }
  .consultation-form, .contact-panel, .thank-you-card { padding: 26px; }
  .cta-band__inner { min-height: 240px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .footer-grid { gap: 36px; }
}

@media (max-width: 760px) {
  .founder-portrait { min-height: 350px; }
  .founder-portrait img { max-height: 350px; }
}
