/*
Theme Name: EAG Academic Gateway
Theme URI: https://studywitheag.com
Author: European Academic Gateway
Description: A custom WordPress theme for European Academic Gateway, built from the supplied website frames and content plan.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: eag-academic-gateway
*/

:root {
  --navy: #0b1f3a;
  --gold: #c8a24a;
  --teal: #1c9a9a;
  --warm: #f8f6f0;
  --slate: #52677a;
  --line: #e4e0d6;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(228, 224, 214, 0.85);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
}

.brand-text span {
  color: var(--slate);
  font-size: 12px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 6px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.button.secondary {
  border-color: rgba(11, 31, 58, 0.22);
  background: transparent;
  color: var(--navy);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 690px;
  background: linear-gradient(90deg, var(--warm) 0%, #ffffff 74%);
}

.hero-copy {
  padding: 92px 30px 74px clamp(22px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 560px;
  color: #344054;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-points {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 46px;
}

.trust-point {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.hero-media {
  position: relative;
  min-height: 690px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 246, 240, 0.35), transparent 34%);
  content: "";
}

.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.trustbar div {
  padding: 28px 34px;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}

.site-section {
  padding: 92px clamp(22px, 5vw, 72px);
}

.warm-band {
  background: var(--warm);
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head p,
.lede {
  color: #475467;
  font-size: 17px;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(28, 154, 154, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.card h3 {
  font-size: 22px;
}

.card p {
  color: #52677a;
  font-size: 15px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  object-fit: cover;
}

.destination-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill {
  padding: 12px 18px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.process-list {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.num {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 850;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.step span {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}

.navy-band {
  background: var(--navy);
  color: white;
}

.navy-band h2 {
  color: white;
}

.navy-band .section-head p,
.navy-band p {
  color: rgba(255, 255, 255, 0.78);
}

.navy-band .eyebrow {
  color: var(--gold);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reason {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.reason h3 {
  color: white;
  font-size: 19px;
}

.reason p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.profile-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.faq-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.faq-item p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px clamp(22px, 5vw, 72px);
  background: var(--navy);
}

.cta h2 {
  max-width: 660px;
  color: white;
}

.cta p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.6;
}

.cta .button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.subpage-hero {
  padding: 78px clamp(22px, 5vw, 72px) 62px;
  background: var(--warm);
}

.subpage-hero h1 {
  max-width: 840px;
  font-size: clamp(38px, 5vw, 58px);
}

.subpage-hero p {
  max-width: 760px;
  color: #475467;
  font-size: 18px;
  line-height: 1.65;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
}

.consultation-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
  align-items: start;
}

.intake-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.intake-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.intake-item .num {
  width: 34px;
  height: 34px;
}

.intake-item strong {
  display: block;
  margin-bottom: 4px;
}

.intake-item span {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
}

.input {
  height: 52px;
  padding: 0 16px;
}

.textarea {
  min-height: 124px;
  padding: 16px;
  resize: vertical;
}

.notice {
  padding: 14px 16px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.notice.success {
  background: rgba(28, 154, 154, 0.12);
}

.notice.error {
  background: rgba(200, 162, 74, 0.18);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 44px;
  padding: 48px clamp(22px, 5vw, 72px);
  background: #071a2f;
  color: white;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  text-decoration: none;
}

.site-footer .brand {
  margin-bottom: 16px;
}

.site-footer .brand img {
  width: 64px;
  height: 64px;
}

.footer-links {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.page-content {
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .site-header {
    min-height: 74px;
    padding: 0 18px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand-text strong {
    max-width: 210px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text span {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.14);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .button {
    margin-top: 8px;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .hero-copy {
    padding: 42px 22px 30px;
  }

  .hero-copy p,
  .section-head p,
  .lede,
  .cta p {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions,
  .trust-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 280px;
  }

  .trustbar,
  .cards,
  .split,
  .reasons,
  .profile-grid,
  .faq-grid,
  .contact-panel,
  .consultation-panel,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trustbar div {
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-section,
  .subpage-hero {
    padding: 52px 22px;
  }

  .card {
    min-height: 0;
    padding: 22px;
  }

  .split img {
    height: 250px;
    order: -1;
  }

  .destination-grid {
    gap: 9px;
  }

  .pill {
    padding: 10px 13px;
    font-size: 13px;
  }

  .step {
    grid-template-columns: 38px 1fr;
    padding: 15px;
  }

  .cta {
    display: grid;
    padding: 52px 22px;
  }

  .site-footer {
    padding: 38px 22px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
