/* ==========================================================================
   Nectar Global Academy — main stylesheet
   Hand-written, dependency-free rebuild for static hosting.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --brand:            #e22104;
  --brand-dark:       #b71800;
  --brand-darker:     #9c1400;
  --heading:          #202e31;
  --body-text:        #666a6b;
  --muted:            #888888;
  --footer-bg:        #16191a;
  --footer-bottom-bg: #111314;
  --footer-link:      #9a9fa1;
  --brand-on-dark:    #ff7a5e;
  --topbar-bg:        #f6f6f6;
  --border:           #e6e6e6;
  --white:            #ffffff;

  --font-body:    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --container:  1170px;
  --radius:     5px;
  --shadow-sm:  0 3px 16px rgba(0, 0, 0, .08);
  --shadow-md:  0 8px 30px rgba(0, 0, 0, .10);
  --transition: all 300ms linear 0s;

  --header-h:   80px;
  --topbar-h:   42px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 18px;
  line-height: 1.35;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 18px; padding-left: 20px; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

::selection { background: var(--brand); color: #fff; }

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.section { padding: 80px 0; }
.section--tight { padding: 55px 0; }
.section--soft { background: #fbfbfb; }
.text-center { text-align: center; }

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

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 48px;
  padding: 0 38px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.btn:hover,
.btn:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
}
.btn--ghost:hover { background: var(--brand); color: #fff; }

.btn[disabled],
.btn.is-loading {
  opacity: .6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   5. Header — top bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--topbar-h);
  gap: 6px 22px;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar a {
  color: #666666;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar a:hover { color: var(--brand); }
.topbar svg { width: 14px; height: 14px; fill: var(--brand); flex: none; }

.topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar__social-label { color: #666666; margin-right: 2px; }
.topbar__social a svg { width: 15px; height: 15px; fill: #666666; }
.topbar__social a:hover svg { fill: var(--brand); }

/* --------------------------------------------------------------------------
   6. Header — main navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.site-header.is-stuck .navbar { box-shadow: var(--shadow-sm); }

.navbar { background: #fff; transition: box-shadow 300ms ease; }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}
.navbar__logo img {
  width: 185px;
  height: auto;
  display: block;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 200ms ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--heading);
  line-height: var(--header-h);
  display: inline-block;
  position: relative;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 26px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.menu a:hover,
.menu li.is-active > a { color: var(--brand); }
.menu a:hover::after,
.menu li.is-active > a::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   7. Home slider
   -------------------------------------------------------------------------- */
.slider {
  position: relative;
  background: #0f1112;
  overflow: hidden;
}
.slider__track {
  position: relative;
  width: 100%;
  /* keeps the original 1774 x 740 proportion */
  aspect-ratio: 1774 / 740;
}
.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.slider__slide.is-active { opacity: 1; }
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .38);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.slider__btn:hover { background: var(--brand); }
.slider__btn svg { width: 18px; height: 18px; fill: #fff; }
.slider__btn--prev { left: 14px; }
.slider__btn--next { right: 14px; }

.slider__dots {
  position: absolute;
  bottom: 16px;
  right: 0; left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.slider__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: var(--transition);
}
.slider__dots button[aria-current="true"] { background: var(--brand); }

/* Single-slide sites: hide the controls entirely */
.slider.is-single .slider__btn,
.slider.is-single .slider__dots { display: none; }

/* Without JavaScript the controls do nothing, and the mobile menu cannot be
   toggled — so show the menu and hide the dead controls. */
.no-js .slider__btn,
.no-js .slider__dots { display: none; }

/* --------------------------------------------------------------------------
   8. Page banner (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
  background: var(--brand-dark);
  padding: 42px 0;
  text-align: center;
}
.page-banner h1 {
  color: #fff;
  font-size: 34px;
  margin: 0;
}
.breadcrumb {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
}
.breadcrumb li { color: rgba(255, 255, 255, .78); }
.breadcrumb li + li::before { content: "\203A"; margin-right: 8px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #ffd9d1; text-decoration: underline; }

/* --------------------------------------------------------------------------
   9. Intro / feature blocks
   -------------------------------------------------------------------------- */
.intro {
  background: url("../img/section-bg.jpg") center / cover no-repeat;
  padding: 75px 0;
}
.intro__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 45px;
  align-items: center;
}
.intro__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.intro__body h2 {
  font-size: 30px;
  text-transform: uppercase;
  line-height: 40px;
  margin-bottom: 20px;
}
.intro__body p { margin-bottom: 28px; }

.cards { padding: 75px 0; }
.card {
  background: #fff;
  border-radius: var(--radius);
  transition: var(--transition);
}
.card__thumb {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 22px;
  aspect-ratio: 3 / 2;
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .card__thumb img { transform: scale(1.08); }
.card h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--heading);
}
.card p { color: var(--body-text); }

/* --------------------------------------------------------------------------
   10. Long-form article content
   -------------------------------------------------------------------------- */
.article { padding: 70px 0; }
.article__figure {
  float: left;
  width: 42%;
  margin: 4px 34px 24px 0;
}
.article__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.article__body { font-size: 16px; line-height: 29px; }
.article__body p { margin-bottom: 20px; }
.article__body h2 {
  font-size: 20px;
  margin: 30px 0 10px;
  color: var(--brand-dark);
}
.article__body h2:first-child { margin-top: 0; }
.article__body h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--heading);
}
.article__body strong { color: var(--heading); }
.article__body ul { padding-left: 20px; margin-bottom: 22px; }
.article__body li { margin-bottom: 8px; }
.article::after { content: ""; display: block; clear: both; }

.lead {
  font-size: 17px;
  line-height: 30px;
  color: var(--heading);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info { list-style: none; margin: 0; padding: 0; }
.contact-info li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fdece8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info__icon svg { width: 18px; height: 18px; fill: var(--brand); }
.contact-info__text { color: var(--heading); font-size: 16px; line-height: 26px; }
.contact-info__text a { color: var(--heading); }
.contact-info__text a:hover { color: var(--brand); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 340px; border: 0; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 7px;
}
.form-row .req { color: var(--brand); }

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--heading);
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(226, 33, 4, .12);
  outline: none;
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 15px;
  border: 1px solid transparent;
}
.alert--success { background: #e8f6ec; border-color: #b6e0c2; color: #1d6b33; }
.alert--error   { background: #fdecea; border-color: #f5c2bb; color: #a11e0c; }
.field-error { color: #a11e0c; font-size: 13px; margin-top: 6px; display: block; }
.form-control[aria-invalid="true"] { border-color: #d64535; }

/* Login page */
.login-wrap { max-width: 420px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-link);
  padding-top: 70px;
  font-size: 14px;
}
.site-footer h2 {
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
  margin-bottom: 22px;
}
.site-footer p { color: var(--footer-link); }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--brand-on-dark); }
.site-footer .footer-more { color: var(--brand-on-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 55px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}
.footer-links li { margin-bottom: 13px; break-inside: avoid; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
  transition: var(--transition);
}
.footer-links a::before {
  content: "\203A";
  color: var(--brand-on-dark);
  font-size: 15px;
  line-height: 1;
}
.footer-links a:hover { transform: translateX(5px); }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  line-height: 24px;
}
.footer-contact svg { width: 15px; height: 15px; fill: var(--brand-on-dark); flex: none; margin-top: 5px; }

.footer-bottom {
  background: var(--footer-bottom-bg);
  padding: 22px 0;
  text-align: center;
  color: #cfd2d3;
  font-size: 14px;
}
.footer-bottom p { margin: 0; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); }
.to-top svg { width: 17px; height: 17px; fill: #fff; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .menu { gap: 26px; }
  .menu a { font-size: 13px; }
  .navbar__logo img { width: 160px; }
  .intro__inner { grid-template-columns: 1fr; gap: 32px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .article__figure { width: 50%; margin-right: 26px; }
}

@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .section { padding: 55px 0; }
  .intro, .cards, .article { padding: 50px 0; }
  .intro__body h2 { font-size: 24px; line-height: 34px; }

  .topbar { display: none; }

  .nav-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 6px 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .menu.is-open,
  .no-js .menu { display: flex; }
  .no-js .nav-toggle { display: none; }
  .navbar { position: relative; }
  .menu a {
    line-height: 1;
    padding: 15px 18px;
    display: block;
    border-bottom: 1px solid #f1f1f1;
  }
  .menu li:last-child a { border-bottom: 0; }
  .menu a::after { display: none; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { columns: 1; }

  .article__figure { float: none; width: 100%; margin: 0 0 24px; }
  .page-banner { padding: 32px 0; }
  .page-banner h1 { font-size: 26px; }

  .slider__track { aspect-ratio: 16 / 10; }
  .slider__btn { width: 36px; height: 50px; }
  .form-card { padding: 24px 20px; }
  .map-embed iframe { height: 280px; }
}

@media (max-width: 479px) {
  .btn { padding: 0 26px; font-size: 12px; }
  .navbar__logo img { width: 140px; }
  .slider__track { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   15. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .nav-toggle, .menu, .slider, .to-top, .map-embed { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .site-footer { background: none; color: #000; padding-top: 20px; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
