/*
Theme Name: EMEA Landing Page
Theme URI: https://emea.org.za/
Author: EMEA
Description: Classic WordPress theme for the Eden Medical Education and Access landing page.
Version: 1.0.0
Text Domain: emea
*/

:root {
  --ink: #152522;
  --muted: #5c6b68;
  --teal: #006b5c;
  --teal-deep: #00564d;
  --mint: #e7f4f2;
  --mint-dark: #cce8e4;
  --lime: #9ce6a1;
  --line: #d4e0de;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid #eef3f1; position: sticky; top: 0; z-index: 10; }
.header-inner { width: min(1200px, calc(100% - 72px)); min-height: 106px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 68px; height: 68px; object-fit: cover; border-radius: 50%; }
.brand-copy { display: grid; gap: 5px; line-height: 1.12; color: var(--teal-deep); }
.brand-copy strong { font-size: 17px; letter-spacing: -.35px; }
.brand-copy small { color: var(--ink); font-size: 12px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); font-size: 14px; color: #27322f; }
.desktop-nav a { padding: 13px 0 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--teal); border-color: var(--teal); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; list-style: none; color: var(--teal); font-weight: 700; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { margin-left: 7px; font-size: 18px; }
.mobile-nav nav { position: absolute; right: 0; top: 32px; background: white; border: 1px solid var(--line); box-shadow: 0 12px 28px #00564d1c; min-width: 180px; padding: 8px; display: grid; }
.mobile-nav nav a { padding: 11px 12px; font-size: 14px; }
.mobile-nav nav a:hover { background: var(--mint); color: var(--teal); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 532px; background: var(--mint); }
.hero-copy { padding: clamp(64px, 6vw, 78px) clamp(36px, 8vw, 108px) 60px max(36px, calc((100vw - 1200px) / 2)); position: relative; overflow: hidden; }
.hero-copy::after { content: ""; position: absolute; bottom: -75px; left: -38px; width: 280px; height: 190px; opacity: .55; background-image: radial-gradient(#a3d8d0 1.5px, transparent 1.5px); background-size: 11px 11px; mask-image: linear-gradient(135deg, black, transparent 70%); z-index: 0; }
.hero-copy > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--teal); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.hero h1 { color: var(--teal-deep); font-size: clamp(38px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -2px; margin: 0; max-width: 570px; }
.accent-line { width: 56px; height: 3px; background: var(--teal); margin: 26px 0 24px; }
.hero-intro { max-width: 540px; margin: 0; font-size: 17px; line-height: 1.75; color: #243230; }
.launch-button { display: inline-flex; align-items: center; gap: 13px; margin-top: 32px; padding: 15px 52px 15px 12px; color: white; background: var(--teal); font-size: 16px; font-weight: 700; clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%); transition: transform .2s ease, background .2s ease; }
.launch-button:hover { background: var(--teal-deep); transform: translateX(4px); }
.launch-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid white; border-radius: 50%; font-size: 20px; }
.hero-image-wrap { position: relative; min-height: 470px; overflow: hidden; }
.hero-image { width: 100%; height: 100%; min-height: 532px; object-fit: contain; object-position: center; background: #c2e7e4; }
.hero-image-wash { position: absolute; inset: 0; background: linear-gradient(90deg, var(--mint) 0%, transparent 23%), linear-gradient(0deg, #4fbab029, transparent 55%); pointer-events: none; }

.belief-bar { min-height: 115px; background: linear-gradient(100deg, #007967, #006053); color: white; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 25px 32px; }
.belief-icon { width: 67px; height: 67px; display: grid; place-items: center; border: 1px solid #b4f0d3; border-radius: 50%; position: relative; }
.belief-heart { position: absolute; top: 9px; color: white; font-size: 25px; line-height: 1; }
.belief-people { position: absolute; bottom: 12px; display: flex; gap: 2px; }
.belief-people i { position: relative; width: 9px; height: 9px; border: 1px solid #b4f0d3; border-radius: 50%; }
.belief-people i::after { content: ""; position: absolute; left: -4px; top: 7px; width: 15px; height: 7px; border: 1px solid #b4f0d3; border-bottom: 0; border-radius: 10px 10px 0 0; }
.belief-divider { height: 66px; width: 1px; background: #b4f0d3; }
.belief-bar p { margin: 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.45; font-weight: 700; }

.focus-section { padding: 62px max(36px, calc((100vw - 1200px) / 2)) 78px; }
.section-heading { display: flex; align-items: center; gap: 34px; justify-content: center; margin-bottom: 44px; }
.section-heading span { width: min(170px, 16vw); height: 1px; background: #c3d3d0; }
.section-heading h2 { color: var(--teal); text-transform: uppercase; font-size: 20px; letter-spacing: .02em; margin: 0; white-space: nowrap; }
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.focus-card { text-align: center; padding: 0 24px; border-right: 1px solid var(--line); }
.focus-card:last-child { border-right: none; }
.focus-icon { width: 91px; height: 91px; margin: 0 auto 19px; border-radius: 50%; background-image: url('assets/images/focus-icons.png'); background-size: 200% 200%; background-repeat: no-repeat; }
.focus-icon-access { background-position: 0 0; }
.focus-icon-education { background-position: 100% 0; }
.focus-icon-awareness { background-position: 0 100%; }
.focus-icon-partnerships { background-position: 100% 100%; }
.focus-card h3 { color: var(--teal-deep); font-size: 18px; line-height: 1.15; min-height: 42px; margin: 0 0 13px; }
.focus-card p { max-width: 230px; min-height: 123px; margin: 0 auto; color: #384442; font-size: 14px; line-height: 1.6; }
.card-rule { width: 52px; height: 2px; background: #2ca895; margin: 20px auto 0; }

.contact-section { background: var(--mint); overflow: hidden; }
.contact-inner { width: min(1200px, calc(100% - 120px)); min-height: 212px; margin: auto; display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: 36px; position: relative; }
.portrait-wrap { width: 173px; height: 173px; padding: 5px; border: 2px solid white; border-radius: 50%; background: var(--mint-dark); }
.portrait { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.contact-copy { border-left: 1px solid #6faaa3; padding: 28px 0 24px 27px; }
.contact-copy h2 { color: var(--teal-deep); margin: 0 0 3px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; }
.contact-role { display: block; font-size: 17px; }
.organisation { color: var(--teal); font-weight: 700; margin: 8px 0 18px; font-size: 14px; }
.contact-details { display: grid; gap: 10px; }
.contact-details a { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.contact-details a:hover { color: var(--teal); }
.contact-details span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--teal); color: white; font-size: 12px; }
.contact-art { align-self: stretch; display: flex; align-items: center; position: relative; opacity: .78; }
.contact-art::after { content: ""; position: absolute; right: -42px; bottom: 10px; width: 260px; height: 82px; opacity: .55; background-image: radial-gradient(#9bcfc8 1.5px, transparent 1.5px); background-size: 10px 10px; mask-image: linear-gradient(90deg, transparent, black); pointer-events: none; }
.contact-art img { width: 100%; height: 150px; object-fit: cover; object-position: center; mix-blend-mode: multiply; filter: saturate(.85) contrast(.9); border-radius: 0; }

.partnership-section { background: var(--teal-deep); color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 57px max(36px, calc((100vw - 1200px) / 2)); }
.partnership-section .eyebrow { color: var(--lime); margin-bottom: 10px; }
.partnership-section h2 { margin: 0; font-size: clamp(28px, 4vw, 45px); letter-spacing: -1.2px; }
.outline-button { border: 1px solid #b9efd7; color: white; padding: 14px 21px; font-weight: 700; white-space: nowrap; }
.outline-button:hover { background: white; color: var(--teal-deep); }
.updates-section { padding: 58px max(36px, calc((100vw - 1200px) / 2)); text-align: center; background: #fbfdfc; }
.updates-section .eyebrow { margin-bottom: 11px; }
.updates-copy { max-width: 650px; margin: auto; color: var(--muted); line-height: 1.65; }

.site-footer { background: white; }
.footer-main { width: min(1120px, calc(100% - 120px)); min-height: 136px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 0; }
.footer-brand .brand-mark { width: 68px; height: 68px; }
.footer-logo-crop { width: 96px; height: 96px; position: relative; flex-shrink: 0; overflow: hidden; border-radius: 50%; }
.footer-logo-crop .brand-mark { position: absolute; left: -20px; top: -20px; width: 136px; height: 136px; max-width: none; }
.footer-brand { justify-self: center; }
.footer-divider { height: 81px; width: 1px; background: #89b7b0; }
.registration { width: min(370px, calc(100% - 72px)); justify-self: center; display: grid; gap: 7px; color: #384442; font-size: 13px; line-height: 1.4; }
.registration-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; column-gap: 11px; }
.registration-copy { display: block; }
.registration-icon { display: block; width: 30px; height: 30px; background-image: url("assets/images/footer-icons.png"); background-repeat: no-repeat; background-size: 70px 70px; }
.registration-icon.shield-check { background-position: 0 -20px; }
.registration-icon.award { background-position: -31.5px -20px; margin-top: 1px; }
.copyright { background: var(--teal-deep); color: white; text-align: center; padding: 11px 20px; font-size: 11px; letter-spacing: .02em; }

@media (max-width: 900px) {
  .header-inner, .contact-inner, .footer-main { width: min(100% - 48px, 720px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-copy { padding-left: max(30px, calc((100vw - 720px) / 2)); padding-right: 30px; }
  .hero h1 { font-size: clamp(38px, 7vw, 60px); }
  .focus-section, .partnership-section, .updates-section { padding-left: max(24px, calc((100vw - 720px) / 2)); padding-right: max(24px, calc((100vw - 720px) / 2)); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
  .focus-card:nth-child(2) { border-right: none; }
  .contact-inner { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 34px 0; }
  .portrait-wrap { width: 145px; height: 145px; }
  .contact-art { display: none; }
  .footer-main { display: flex; flex-wrap: wrap; padding: 28px 0; gap: 22px; }
  .footer-divider { display: none; }
  .registration { margin-left: auto; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 82px; width: calc(100% - 36px); }
  .brand-mark { width: 53px; height: 53px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 51px 24px 54px; }
  .hero h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-intro { font-size: 15px; line-height: 1.65; }
  .hero-image-wrap, .hero-image { min-height: 265px; height: 265px; }
  .hero-image-wash { background: linear-gradient(0deg, var(--mint) 0%, transparent 32%); }
  .belief-bar { justify-content: flex-start; gap: 16px; padding: 20px 24px; }
  .belief-icon { width: 51px; height: 51px; font-size: 30px; flex-shrink: 0; }
  .belief-divider { height: 49px; }
  .belief-bar p { font-size: 15px; }
  .desktop-only { display: none; }
  .focus-section { padding-top: 48px; padding-bottom: 57px; }
  .section-heading { gap: 13px; margin-bottom: 34px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading span { width: 30px; }
  .focus-grid { grid-template-columns: 1fr; row-gap: 35px; }
  .focus-card, .focus-card:nth-child(2) { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 33px; }
  .focus-card:last-child { border-bottom: none; padding-bottom: 0; }
  .focus-card p { min-height: 0; max-width: 330px; }
  .contact-inner { grid-template-columns: 100px minmax(0, 1fr); width: calc(100% - 42px); gap: 17px; }
  .portrait-wrap { width: 96px; height: 96px; }
  .contact-copy { padding-left: 17px; }
  .contact-copy h2 { font-size: 28px; }
  .contact-role { font-size: 14px; }
  .organisation { font-size: 12px; line-height: 1.35; margin-bottom: 12px; }
  .contact-details a { font-size: 13px; gap: 7px; }
  .partnership-section { display: grid; padding-top: 42px; padding-bottom: 42px; }
  .outline-button { justify-self: start; }
  .footer-main { width: calc(100% - 42px); align-items: flex-start; }
  .registration { width: 100%; margin-left: 0; }
}
