/* =========================================================
   Noble Energy Solutions LLC — Landing Page
   Mobile-first • Premium • Conversion-optimized
   Palette: Deep Blue / White / Soft Green / Light Gray
   ========================================================= */

:root {
  --blue-900: #0a2540;   /* deep blue */
  --blue-800: #0d3358;
  --blue-700: #11487a;
  --blue-600: #155fa0;
  --blue-100: #e7eef6;
  --green:     #2fa36b;  /* soft green */
  --green-600: #258a5a;
  --green-100: #e7f5ee;
  --solar:     #f5b301;
  --white:     #ffffff;
  --gray-50:  #f6f9fc;   /* light gray bg */
  --gray-100: #eef2f7;
  --gray-200: #dfe6ee;
  --ink:       #16263a;
  --muted:     #5a6b7e;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, .06);
  --shadow:    0 12px 34px rgba(10, 37, 64, .10);
  --shadow-lg: 0 22px 60px rgba(10, 37, 64, .18);
  --maxw: 1180px;
  --header-h: 70px;
  --ff-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.15; color: var(--blue-900); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section--gray { background: var(--gray-50); }
.eyebrow {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 10px;
}
.section__head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.section__lead { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.text-green { color: var(--green); }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 100px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px rgba(17, 72, 122, .28); }
.btn--primary:hover { background: var(--blue-800); transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47, 163, 107, .3); }
.btn--green:hover { background: var(--green-600); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--blue-900); }
.btn--outline { background: transparent; color: var(--blue-700); border: 1.5px solid var(--gray-200); }
.btn--outline:hover { border-color: var(--blue-700); background: var(--blue-100); }

/* ---------- Ticklist ---------- */
.ticklist { display: grid; gap: 10px; margin-top: 8px; }
.ticklist li { position: relative; padding-left: 30px; color: var(--ink); }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--gray-100); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { border-radius: 9px; }
.brand__name { font-family: var(--ff-head); font-weight: 600; font-size: 1.04rem; color: var(--blue-900); letter-spacing: -.01em; }
.brand__name strong { color: var(--green-600); font-weight: 700; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  font-family: var(--ff-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--blue-700); background: var(--gray-50); }
.header-cta { margin-left: 6px; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--blue-900); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; color: #fff; isolation: isolate; min-height: 88vh; display: flex; align-items: center; padding: 110px 0 70px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,28,50,.94) 0%, rgba(10,37,64,.82) 40%, rgba(10,37,64,.45) 100%);
}
.hero__eyebrow { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 600; color: #8fe3b8; margin-bottom: 16px; }
.hero__title { font-size: clamp(2.2rem, 8vw, 4rem); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero__subtitle { font-size: clamp(1rem, 2.6vw, 1.22rem); color: #d7e2ee; max-width: 540px; margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__benefits { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 36px; }
.hero__benefits li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; color: #eaf1f8; }
.hero__benefits .check { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; }
.about__badge {
  position: absolute; bottom: -18px; right: -8px;
  background: var(--blue-900); color: #fff; border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: grid; gap: 2px; max-width: 180px;
}
.about__badge-num { font-family: var(--ff-head); font-weight: 800; font-size: 1.7rem; color: #8fe3b8; line-height: 1; }
.about__badge-label { font-size: .82rem; color: #cdd9e6; }
.about__copy p { color: var(--muted); margin-top: 14px; }
.about__sub { margin-top: 26px; margin-bottom: 6px; font-size: 1.15rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid { display: grid; gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.service-card__icon--solar { background: #fff6dd; }
.service-card__icon--water { background: var(--green-100); }
.service-card__title { font-size: 1.32rem; margin-bottom: 8px; }
.service-card__text { color: var(--muted); margin-bottom: 16px; }
.service-card__btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.why__item {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.why__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); margin-bottom: 14px; }
.why__item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why__item p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery__tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px;
}
.gallery__tab {
  font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--blue-700);
  padding: 9px 22px; border-radius: 100px; border: 1.5px solid var(--gray-200);
  background: #fff; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.gallery__tab:hover { border-color: var(--blue-700); background: var(--blue-100); }
.gallery__tab.is-active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.gallery__group { margin-bottom: 40px; }
.gallery__group:last-child { margin-bottom: 0; }
.gallery__group[hidden] { display: none; }
.gallery__group-title {
  font-size: 1.3rem; margin-bottom: 18px; color: var(--blue-900);
  display: flex; align-items: center; gap: 12px;
}
.gallery__group-title::after {
  content: ""; flex: 1; height: 1px; background: var(--gray-200);
}
.gallery__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 0; display: block;
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,37,64,.45));
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--blue-900); color: #fff; font-family: var(--ff-head);
  font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: 100px;
  letter-spacing: .04em;
}
.gallery__tag--green { background: var(--green); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials__grid { display: grid; gap: 22px; }
.testimonial {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.testimonial__stars { color: var(--solar); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.testimonial figcaption strong { color: var(--blue-900); }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: .9rem;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff; text-align: center; padding: 64px 0; position: relative; overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; opacity: .14;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
}
.cta-banner::before { width: 360px; height: 360px; top: -120px; right: -80px; }
.cta-banner::after { width: 300px; height: 300px; bottom: -130px; left: -60px; background: radial-gradient(circle, #8fe3b8 0%, transparent 70%); }
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.cta-banner p { color: #d3e0ee; max-width: 560px; margin: 14px auto 28px; font-size: 1.08rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid { display: grid; gap: 40px; }
.contact__info p { color: var(--muted); margin-top: 14px; }
.contact__list { margin-top: 26px; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 1.05rem; }
.contact__list a:hover { color: var(--blue-700); }
.contact__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex: none; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact__form {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--ff-head); font-weight: 500; font-size: .9rem; color: var(--blue-900); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 11px;
  background: var(--gray-50); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 95, 160, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid select { border-color: #e05656; background: #fff5f5; }
.field__error { color: #d83b3b; font-size: .8rem; min-height: 0; }
.field.invalid .field__error { min-height: 1em; }
.form-status { text-align: center; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: var(--green-600); }
.form-status.error { color: #d83b3b; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative;
  font-family: var(--ff-head); font-weight: 600; color: var(--blue-900); font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green-600); transition: transform .25s; line-height: 1;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 20px 20px; color: var(--muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--blue-900); color: #c3d0de; }
.footer__grid { display: grid; gap: 36px; padding: 56px 20px 40px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name strong { color: #8fe3b8; }
.footer__tagline { margin-top: 14px; max-width: 320px; font-size: .95rem; color: #9fb1c4; }
.footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: 12px; margin-bottom: 20px; }
.footer__contact li { display: grid; gap: 2px; }
.footer__contact span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #7e91a6; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 20px; font-size: .85rem; color: #8497ab; }
.footer__powered a { color: #8fe3b8; font-weight: 600; }
.footer__powered a:hover { text-decoration: underline; }

/* =========================================================
   FLOATING CTAs
   ========================================================= */
.floating-cta { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 12px; }
.fab {
  position: relative;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab--call { background: var(--green); }
.fab--email { background: var(--blue-700); }
.fab--call::after {
  content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: var(--green); opacity: .55; z-index: -1; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(7, 20, 35, .92); padding: 24px; opacity: 0; transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__figure { max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox__figure img { max-width: 92vw; max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.lightbox__figure figcaption { color: #dbe6f1; margin-top: 14px; font-size: .95rem; font-family: var(--ff-head); }
.lightbox__close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 2.4rem; line-height: 1; width: 46px; height: 46px; border-radius: 50%; transition: background .2s; }
.lightbox__close:hover { background: rgba(255,255,255,.12); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.6rem;
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE — TABLET / DESKTOP
   ========================================================= */
@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__benefits { gap: 16px 34px; }
}

@media (min-width: 768px) {
  .section { padding: 84px 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr 1.1fr; }
  .contact__grid { grid-template-columns: 1fr 1.1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
}

@media (min-width: 992px) {
  .why__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; box-shadow: var(--shadow); border-top: 1px solid var(--gray-100);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; padding: 12px 20px 22px; }
  .nav__link { display: block; padding: 14px 8px; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab--call::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
