/*
Theme Name: Sahara Dev
Theme URI: https://sahara-dev.com/
Author: Sahara
Description: A focused WordPress landing theme for the SHAGARA intelligent water purifier.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sahara-dev
*/

:root {
  --navy: #061c3d;
  --blue: #0568f0;
  --blue-strong: #004bc8;
  --cyan: #22bff3;
  --sand: #f1c27a;
  --sun: #ffdb94;
  --ink: #f8fbff;
  --muted: #d5e7ff;
  --paper: #f7fbff;
  --paper-ink: #08224f;
  --paper-muted: #5d718f;
  --line: rgba(255, 255, 255, 0.2);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #071c3a;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: linear-gradient(180deg, rgba(4, 22, 52, 0.84), rgba(4, 22, 52, 0.2));
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 12%;
  background: linear-gradient(140deg, var(--cyan), var(--blue));
  color: white;
  font-size: 0.95rem;
  transform: rotate(-45deg);
}

.brand__mark::first-letter {
  transform: rotate(45deg);
}

.brand__name {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #e8f4ff;
  font-size: 0.92rem;
  font-weight: 700;
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(4, 20, 48, 0.92) 0%, rgba(5, 33, 74, 0.72) 38%, rgba(4, 20, 48, 0.16) 76%),
    linear-gradient(180deg, rgba(6, 28, 61, 0.06) 0%, rgba(6, 28, 61, 0.28) 58%, rgba(6, 28, 61, 0.98) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 18vh;
  background: linear-gradient(180deg, rgba(6, 28, 61, 0), #061c3d);
}

.hero__content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 126px 0 96px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 46px;
  align-items: center;
}

.product-hero__copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #bfeaff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

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

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
}

.hero__lead span {
  display: block;
}

.hero__sublead {
  margin-bottom: 28px;
  color: #e6f7ff;
  font-size: clamp(1.16rem, 1.8vw, 1.55rem);
  font-weight: 900;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-benefits span {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 38, 86, 0.36);
  color: #eefaff;
  font-weight: 900;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  box-shadow: 0 18px 38px rgba(0, 75, 200, 0.34);
}

.button--light {
  color: #07306a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(0, 18, 48, 0.18);
}

.product-hero__visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-hero__visual::before {
  content: "";
  position: absolute;
  width: min(62vw, 500px);
  height: min(62vw, 500px);
  bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 191, 243, 0.36), rgba(255, 255, 255, 0) 64%);
  filter: blur(8px);
}

.product-hero__visual img {
  position: relative;
  width: min(38vw, 430px);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 36px 55px rgba(0, 14, 42, 0.45));
}

.tank-callout {
  position: absolute;
  min-width: 172px;
  padding: 10px 12px;
  border-left: 2px solid var(--cyan);
  color: #e9f8ff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.tank-callout::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 92px;
  height: 1px;
  background: var(--cyan);
}

.tank-callout--top {
  top: 16%;
  right: 0;
}

.tank-callout--middle {
  top: 34%;
  right: -22px;
}

.tank-callout--filter {
  bottom: 29%;
  left: -34px;
  border-right: 2px solid var(--cyan);
  border-left: 0;
  text-align: right;
}

.tank-callout--base {
  right: 4px;
  bottom: 16%;
}

.tank-callout--top::before,
.tank-callout--middle::before,
.tank-callout--base::before {
  right: 100%;
}

.tank-callout--filter::before {
  left: 100%;
}

.launch-strip {
  background:
    radial-gradient(circle at top right, rgba(34, 191, 243, 0.38), transparent 34%),
    linear-gradient(90deg, #032559, #0049b8 54%, #0b6fe8);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.launch-strip__inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
}

.section__label {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.launch-strip .section__label {
  color: #bcecff;
}

.launch-strip h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 12px;
}

.countdown div {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  text-align: center;
}

.countdown strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 7px;
  color: #d8f2ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 82px 0;
}

.awards-banner {
  background: #031631;
  overflow: hidden;
}

.awards-banner__frame {
  position: relative;
}

.awards-banner__frame h2 {
  margin: 0;
  padding: 28px 16px 22px;
  color: #ffffff;
  font-size: clamp(1.05rem, 2.2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.awards-banner img {
  width: 100%;
  min-height: 310px;
  object-fit: cover;
}

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section__inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.compact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 38px;
  align-items: start;
}

.section__header {
  max-width: 520px;
}

.section__header p {
  margin: 16px 0 0;
  color: var(--paper-muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.solution-section {
  padding-bottom: 58px;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(220px, 0.42fr) minmax(360px, 0.78fr);
  gap: 32px;
  align-items: center;
}

.solution-product {
  display: flex;
  justify-content: center;
}

.solution-product img {
  width: min(26vw, 280px);
  filter: drop-shadow(0 24px 36px rgba(8, 34, 79, 0.16));
}

.service-card {
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(8, 34, 79, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(8, 34, 79, 0.08);
}

.service-card__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f5ff;
  color: var(--blue);
}

.service-card h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--paper-muted);
}

.water-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 46px;
}

.flow-step {
  position: relative;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid rgba(8, 34, 79, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  z-index: 1;
  width: 22px;
  height: 2px;
  background: var(--blue);
}

.flow-step strong {
  color: var(--blue);
  font-size: 1.1rem;
}

.flow-step span {
  color: var(--paper-ink);
  font-weight: 900;
}

.benefit-line {
  margin-top: 34px;
  color: var(--blue-strong);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 950;
  line-height: 1.02;
  text-align: center;
}

.home-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0;
  background: #0d3159;
}

.home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(3, 21, 49, 0.88) 0%, rgba(4, 44, 83, 0.56) 46%, rgba(5, 38, 76, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 28, 61, 0.08) 0%, rgba(6, 28, 61, 0.94) 100%),
    var(--patio-image);
  background-position: center;
  background-size: cover;
}

.home-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  background: linear-gradient(180deg, rgba(6, 28, 61, 0), rgba(6, 28, 61, 0.95));
}

.home-section__inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.home-section__hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.home-section__copy {
  max-width: 620px;
}

.home-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.94;
}

.home-section p {
  max-width: 560px;
  color: #e4f2ff;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

.home-section__visual {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.home-section__visual::before {
  content: "";
  position: absolute;
  width: min(48vw, 410px);
  height: min(48vw, 410px);
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 191, 243, 0.24), rgba(255, 255, 255, 0) 66%);
  filter: blur(10px);
}

.home-section__visual img {
  position: relative;
  width: min(34vw, 370px);
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 36px 52px rgba(0, 14, 42, 0.48));
}

.engineering-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--paper-ink);
  box-shadow: 0 28px 70px rgba(0, 13, 40, 0.22);
}

.engineering-panel__image {
  height: 230px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.engineering-panel__image img {
  width: 180px;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
}

.engineering-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.04;
}

.engineering-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.engineering-panel li {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--paper-ink);
  font-weight: 900;
}

.site-footer {
  padding: 34px 0;
  background: #f7fbff;
  color: var(--paper-ink);
}

.site-footer__inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-ink);
  font-weight: 950;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--paper-muted);
  font-weight: 800;
}

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

@media (max-width: 980px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-hero__visual {
    min-height: 430px;
    align-items: center;
  }

  .product-hero__visual img {
    width: min(72vw, 390px);
    max-height: 520px;
  }

  .tank-callout {
    display: none;
  }

  .launch-strip__inner,
  .solution-layout,
  .home-section__hero,
  .engineering-panel {
    grid-template-columns: 1fr;
  }

  .solution-product img {
    width: min(52vw, 300px);
  }

  .water-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .home-section__visual {
    min-height: 420px;
  }

  .home-section__visual img {
    width: min(66vw, 340px);
  }
}

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

  .site-header__inner {
    min-height: 66px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(4, 20, 48, 0.82) 0%, rgba(4, 20, 48, 0.96) 63%, #061c3d 100%),
      var(--hero-image);
    background-position: center top;
  }

  .hero__content {
    padding: 104px 0 54px;
  }

  .eyebrow {
    letter-spacing: 0.2em;
  }

  .services,
  .technology-grid,
  .water-flow,
  .countdown {
    grid-template-columns: 1fr;
  }

  .awards-banner img {
    min-height: 220px;
  }

  .home-section {
    padding: 54px 0;
  }

  .home-section::before {
    background-image:
      linear-gradient(180deg, rgba(4, 20, 48, 0.86) 0%, rgba(4, 20, 48, 0.94) 63%, #061c3d 100%),
      var(--patio-image);
    background-position: center top;
  }

  .home-section__visual {
    min-height: 360px;
  }

  .engineering-panel {
    padding: 18px;
  }

  .engineering-panel ul {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }

  .launch-strip__inner {
    padding: 26px 0;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
