/* IEC Academy of NJ landing page
   Palette and visual direction are inspired by the client-provided flyer. */

:root {
  --green-900: #0a5d3b;
  --green-800: #0f6b45;
  --green-100: #edf6ed;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --yellow: #f2b423;
  --yellow-soft: #fff1bf;
  --pink: #e84f79;
  --pink-soft: #ffe7ee;
  --purple: #7251a5;
  --blue: #2196c8;
  --lime: #8fb63f;
  --ink: #20322a;
  --muted: #68746d;
  --line: #dedfce;
  --shadow: 0 18px 50px rgba(36, 61, 48, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(10, 93, 59, .12);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img {
  width: 62px;
  height: 54px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  color: var(--green-900);
}

.brand-copy span {
  font-size: .8rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 9px 25px rgba(10, 93, 59, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #084b31;
  box-shadow: 0 12px 30px rgba(10, 93, 59, .24);
}

.button-small {
  min-height: 42px;
  padding: 9px 17px;
  font-size: .92rem;
}

.button-light {
  background: #fff;
  color: var(--green-900);
  border: 1px solid rgba(10, 93, 59, .18);
  box-shadow: none;
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--green-100);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 180, 35, .18), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(232, 79, 121, .12), transparent 28%),
    linear-gradient(180deg, #fffdf7, #fff9ea);
  padding: 72px 0 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { max-width: 590px; }

.year-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 2px dashed rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.07;
}

h1 {
  margin-bottom: 18px;
  color: var(--green-900);
  font-size: clamp(2.75rem, 6vw, 5.8rem);
  letter-spacing: -.045em;
}

h1 span {
  display: block;
  color: var(--pink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.04em;
}

.age-pill {
  display: inline-block;
  margin-bottom: 17px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 24px;
  color: #48574f;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.text-link {
  color: var(--green-900);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-visual::before {
  width: 130px;
  height: 130px;
  top: -28px;
  right: -22px;
  background: var(--yellow);
  opacity: .18;
}

.hero-visual::after {
  width: 90px;
  height: 90px;
  bottom: -15px;
  left: -18px;
  background: var(--pink);
  opacity: .12;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  border: 10px solid #fff;
  border-radius: 34px 34px 92px 34px;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  max-width: 310px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--green-900);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.hero-note .sun {
  color: var(--yellow);
  margin-right: 5px;
}

.section {
  padding: 86px 0;
}

.mission {
  background: var(--green-900);
  color: #fff;
}

.mission-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.mission .eyebrow { color: var(--yellow); }

.mission h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.mission p:last-child {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2,
.schedule h2,
.visit h2 {
  margin-bottom: 12px;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-heading > p:last-child {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 20px;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(40, 62, 49, .07);
}

.card:nth-child(1) { border-top: 5px solid var(--green-800); }
.card:nth-child(2) { border-top: 5px solid var(--pink); }
.card:nth-child(3) { border-top: 5px solid var(--purple); }
.card:nth-child(4) { border-top: 5px solid var(--yellow); }

.icon-box {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--cream);
  font-size: 1.8rem;
}

.card h3 {
  margin-bottom: 8px;
  color: var(--green-900);
  font-size: 1.12rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .95rem;
}

.schedule {
  background: #f6f6eb;
}

.schedule-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.schedule-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.schedule-note {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--green-900);
  font-weight: 800;
}

.schedule-list {
  display: grid;
  gap: 16px;
}

.schedule-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 112px;
  padding: 20px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(40, 62, 49, .07);
}

.schedule-icon {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.9rem;
  background: var(--yellow-soft);
}

.full-day .schedule-icon { background: var(--green-100); }
.afternoon .schedule-icon { background: #eee7fa; color: var(--purple); }

.schedule-card span,
.schedule-card strong {
  display: block;
}

.schedule-card span {
  margin-bottom: 4px;
  color: var(--green-900);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.schedule-card strong {
  font-size: 1.15rem;
}

.visit {
  background:
    radial-gradient(circle at 10% 20%, rgba(242, 180, 35, .15), transparent 26%),
    #fffdf8;
}

.visit-card {
  display: grid;
  grid-template-columns: .75fr 1.2fr .8fr;
  align-items: center;
  gap: 34px;
  padding: 32px;
  border-radius: 32px;
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.visit-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 50%;
}

.visit-copy {
  color: #fff;
}

.visit-copy .eyebrow { color: var(--yellow); }

.visit-copy h2 {
  color: #fff;
}

.visit-copy p {
  color: rgba(255,255,255,.86);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visit-copy .button {
  background: var(--yellow);
  color: #3d3213;
  box-shadow: none;
}

.visit-copy .button-light {
  background: #fff;
  color: var(--green-900);
}

.qr-placeholder {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  color: var(--green-900);
  text-align: center;
}

.qr-placeholder strong,
.qr-placeholder span {
  display: block;
}

.qr-placeholder span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
}

.qr-grid {
  width: 124px;
  aspect-ratio: 1;
  margin: 0 auto 14px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0/31px 31px,
    linear-gradient(#111 12px, transparent 12px) 0 0/31px 31px,
    linear-gradient(90deg, transparent 14px, #111 14px 20px, transparent 20px) 0 0/29px 29px,
    linear-gradient(transparent 14px, #111 14px 20px, transparent 20px) 0 0/29px 29px,
    #fff;
  border: 8px solid #fff;
  outline: 2px solid #111;
}

.site-footer {
  padding: 28px 0;
  background: #083d29;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 30px;
  align-items: center;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}

address {
  display: grid;
  gap: 3px;
  font-style: normal;
  color: rgba(255,255,255,.86);
}

address a:hover { text-decoration: underline; }

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero-grid,
  .mission-grid,
  .schedule-grid,
  .visit-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: min(480px, 62vw);
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visit-photo {
    max-width: 260px;
  }

  .qr-placeholder {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand img {
    width: 52px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: .9rem;
  }

  .brand-copy span {
    display: none;
  }

  .button-small {
    padding-inline: 14px;
    font-size: .82rem;
  }

  .hero {
    padding: 42px 0 52px;
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .hero-visual img {
    height: 390px;
    border-width: 7px;
    border-radius: 28px 28px 64px 28px;
  }

  .hero-note {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .schedule-card {
    min-height: 102px;
    padding: 18px;
  }

  .schedule-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .visit-card {
    padding: 24px;
  }

  .visit-photo {
    width: 190px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
@media (max-width: 414px) {

header.site-header .nav-wrap a:nth-child(2) {
    display: none;
}

}