/* imephu — static site styles. Mirrors the original Divi theme look. */
:root {
  --blue: #2cb4fd;
  --blue-bright: #00b5ff;
  --pink: #ff367c;
  --magenta: #d2278a;
  --orange: #f7931e;
  --text: #666;
  --heading: #333;
  --dark: #353535;
  --header: #111;
  --footer: #222;
  --footer-bottom: #171717;
  --white: #fff;
  --max: 1080px;
  --header-h: 80px;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }

.container { width: 80%; max-width: var(--max); margin: 0 auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--blue); color: var(--white); padding: .6rem 1rem; border-radius: 4px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(17, 17, 17, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo img { width: 75px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue);
}
.nav-toggle svg { width: 32px; height: 32px; display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a {
  color: var(--white); font-weight: 600; font-size: 14px; padding: 6px 0; display: block;
  transition: opacity .3s, color .3s;
}
.main-nav a:hover { opacity: .7; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); }

main { padding-top: var(--header-h); }

/* ---------- Hero slider ---------- */
.hero {
  position: relative; height: 560px; overflow: hidden; background: #0b2c45; color: var(--white);
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide picture, .slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center;
}
.slide-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: flex-end;
}
.slide-text {
  width: 50%; text-align: center; padding: 0 2%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  opacity: 0; transition: opacity .3s ease;
}
.slide.is-active .slide-text { opacity: 1; transition: opacity .5s ease .45s; }
.slide-title {
  color: var(--white); font-size: 46px; font-weight: 800; line-height: 1.1; margin: 0 0 .35em;
}
.slide-desc { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0; }
.slide-desc span { display: block; }

.slider-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .25); color: var(--white); opacity: 0; transition: opacity .3s, background .3s;
  display: grid; place-items: center;
}
.slider-arrow svg { width: 26px; height: 26px; }
.hero:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: rgba(0, 0, 0, .5); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }

.slider-dots {
  position: absolute; bottom: 20px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .5);
}
.slider-dots button[aria-current="true"] { background: var(--white); }

/* ---------- Generic sections ---------- */
.section-title {
  color: var(--blue); font-size: 39px; font-weight: 800; text-align: center; line-height: 1.2;
  margin: 0 0 .7em;
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split-text { text-align: center; padding: 50px 8%; }
.split-text p { font-size: 14px; }

/* What is IMEPHU */
.about .split { align-items: stretch; }
.about-media { background: #1b1b1b; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about .split-text { display: flex; flex-direction: column; justify-content: center; }

/* The IMEPHU system (gallery) */
.system { background: var(--dark); padding: 54px 0 40px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; list-style: none; margin: 0; padding: 0;
}
.gallery li[hidden] { display: none; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s; }
.gallery button:hover img, .gallery button:focus-visible img { opacity: .8; }
.gallery button::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: rgba(0, 0, 0, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb4fd' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }

.pagination { display: flex; justify-content: flex-end; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.pagination button {
  background: none; border: 0; padding: 4px 6px; cursor: pointer; font: inherit; color: #bbb;
}
.pagination button:hover { color: var(--white); }
.pagination button[aria-current="true"] { color: var(--blue); font-weight: 700; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #ddd; text-align: center; padding-top: 10px; font-size: 14px; }
.lightbox-btn {
  position: fixed; border: 0; background: rgba(0, 0, 0, .4); color: var(--white); cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
}
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Designed for simplicity */
.simplicity { padding: 54px 0 30px; }
.simplicity .split { gap: 4%; }
.simplicity .split-text { padding: 0; }
.store-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 30px 0 40px; }
.store-badges a { display: block; transition: transform .2s; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { width: 203px; height: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #bbb; }
.footer-main {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 54px 0 40px;
}
.footer-heading { color: var(--blue); font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.footer-brand img { width: 110px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 34ch; }
.contact-list, .footer-links { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.contact-list a, .footer-links a { color: var(--white); font-weight: 600; }
.contact-list small { display: block; color: #999; font-weight: 500; font-size: 12px; line-height: 1.3; }
.footer-links li { margin-bottom: 8px; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-badges img { width: 135px; }
.footer-bottom { background: var(--footer-bottom); padding: 15px 0 12px; font-size: 14px; color: #666; }
.footer-bottom a { color: var(--white); font-weight: 600; }

/* ---------- FAQ page ---------- */
.faq-page {
  min-height: calc(100vh - var(--header-h));
  padding: 70px 0 50px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .21) 0%, rgba(0, 0, 0, .94) 100%),
    #08263b url("/assets/img/blue-background.webp") center / cover no-repeat;
  color: var(--white);
}
.faq-page h1 { color: var(--white); font-size: 39px; font-weight: 800; text-align: center; margin-bottom: .3em; }
.faq-page .lead { text-align: center; color: #cfe9f7; margin-bottom: 40px; }
.faq-list details { border: 1px solid #d9d9d9; margin-bottom: 30px; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 50px 20px 20px; position: relative;
  color: var(--blue-bright); font-size: 16px; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h2 { all: unset; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #111;
  font-size: 16px; font-weight: 800; line-height: 18px; text-align: center;
}
.faq-list details[open] summary { color: var(--pink); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 20px; color: var(--white); }
.faq-answer a { color: var(--blue-bright); font-weight: 600; }
.faq-answer ul { margin: 0 0 1em; padding-left: 1.3em; }

/* ---------- Legal pages ---------- */
.legal { padding: 58px 0 40px; }
.legal h1 { color: var(--magenta); font-size: 30px; font-weight: 600; text-align: center; margin-bottom: 1em; }
.legal h2 { color: var(--heading); font-size: 18px; font-weight: 700; margin: 1.6em 0 .6em; }
.legal h3 { color: var(--heading); font-size: 15px; font-weight: 700; margin: 1.3em 0 .5em; }
.legal ul, .legal ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal .updated { color: #888; font-style: italic; text-align: center; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 110px 0 120px; }
.not-found h1 { color: var(--blue); font-size: 46px; font-weight: 800; }
.btn {
  display: inline-block; background: var(--blue); color: var(--white); font-weight: 700;
  padding: 10px 24px; border-radius: 3px;
}
.btn:hover { text-decoration: none; background: #109fe8; }

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
  .slide-title { font-size: 65px; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .logo img { width: 62px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #111;
    border-top: 3px solid var(--blue); box-shadow: 0 6px 12px rgba(0, 0, 0, .3);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 5%; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }

  .hero { height: 460px; }
  .slide picture, .slide img { object-position: center; }
  .slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .8) 100%);
  }
  .slide-content { justify-content: center; align-items: flex-end; padding-bottom: 60px; }
  .slide-text { width: 100%; }
  .slider-arrow { display: none; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .about-media img { aspect-ratio: 4 / 3; height: auto; }
  .split-text { padding: 40px 6%; }
  .simplicity .split-text { padding: 30px 0 0; }
  .simplicity-media img { width: 100%; max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-title { font-size: 30px; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: auto; margin: 0 16px; }
  .hero { height: 420px; }
  .slide-title { font-size: 34px; }
  .slide-desc { font-size: 14px; }
  .section-title { font-size: 26px; }
  .store-badges img { width: 160px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .faq-page h1 { font-size: 30px; }
  .faq-list summary { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide-text, .slide.is-active .slide-text { transition: none; }
}
