/* ==========================================================================
   Segments Energy — Global Styles
   ========================================================================== */

:root {
  --color-navy: #1b3a5c;
  --color-blue: #1a75ba;
  --color-teal: #05a79c;
  --color-dark: #2d343d;
  --color-dark-2: #262c37;
  --color-light-blue-bg: #c9deed;
  --color-text: #2f3742;
  --color-text-light: #ffffff;
  --color-muted: #5b6472;
  --color-border: #e3e6ea;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: #fff;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--color-teal);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  color: var(--color-blue);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--color-teal);
}

section {
  padding: 80px 0;
}

#about,
#hosting,
#infrastructure,
#support,
#faq,
#contact,
#legal-privacy,
#disclaimer,
#copyright,
#compliance {
  scroll-margin-top: 90px;
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.section-dark .section-title {
  color: #4472C4;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-blue);
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-blue);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-teal);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  width: 100%;
  height: clamp(460px, 44.4vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 65%;
  color: #fff;
  padding: 60px 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.35);
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin-top: 20px;
}

.hero-content h1 {
  color: var(--color-teal);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  text-transform: none;
}

.hero-content p {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-grid > div:last-child {
  position: relative;
}

.about-grid img {
  border-radius: 16px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid .section-title {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
}

/* ---------------- Hosting (cards) ---------------- */

.hosting-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.hosting-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.hosting-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hosting-card h3 {
  color: var(--color-blue);
  font-size: 1.15rem;
  margin: 20px 24px 12px;
}

.hosting-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0 24px 24px;
}

.hosting-note {
  text-align: center;
  color: var(--color-blue);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 1080px;
  margin: 64px auto 0;
  line-height: 1.7;
  white-space: normal;
}

/* ---------------- Infrastructure ---------------- */

.infra-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: stretch;
  margin-top: 40px;
}

.infra-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.infra-badge {
  background: var(--color-light-blue-bg);
  color: #1a72b4;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 32px 28px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.3;
}

.infra-badge svg {
  flex-shrink: 0;
}

.infra-item p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
}

.infra-photo {
  position: relative;
}

.infra-photo img {
  border-radius: 16px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Support ---------------- */

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.support-card {
  background: #fff;
  color: var(--color-text);
  padding: 36px 32px;
  text-align: left;
}

.support-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: block;
}

.support-card h3 {
  color: var(--color-blue);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

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

.cooling-strip img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* ---------------- Licensing ---------------- */

.licensing-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.licensing-grid > div:last-child {
  position: relative;
}

.licensing-grid img {
  border-radius: 16px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.licensing-grid .section-title {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
}

/* ---------------- Why Choose ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  background: #fff;
  color: var(--color-text);
  padding: 30px 28px;
}

.why-card:nth-child(4),
.why-card:nth-child(5) {
  grid-column: span 1;
}

.why-card h3 {
  color: var(--color-blue);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

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

.why-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* ---------------- FAQ ---------------- */

.faq-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.faq-list {
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  background: #f2f3f5;
  margin-bottom: 4px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-blue);
  font-size: 1rem;
  font-weight: 600;
}

.faq-question::before {
  content: "";
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef4fb 0%, #aecbea 55%, #5f93c9 100%);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px 0 84px;
}

.faq-answer p {
  padding-bottom: 22px;
  color: var(--color-muted);
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 240px;
}

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.contact-grid img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-address {
  margin-top: 32px;
}

.contact-address h4 {
  color: #4472C4;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.contact-address p {
  margin: 0 0 4px;
  color: #d7dce3;
}

.contact-address a {
  color: #d7dce3;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #ffffff;
  color: var(--color-muted);
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.site-footer--dark {
  background: var(--color-dark);
  color: #b9c0ca;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer--dark .footer-links a:hover {
  color: #fff;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.85rem;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-blue);
}

/* ---------------- Legal page ---------------- */

.legal-page section {
  padding: 40px 0;
}

.legal-block h2 {
  color: var(--color-blue);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 28px;
}

.legal-block h3 {
  color: var(--color-blue);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.legal-block p {
  color: var(--color-text);
  margin-bottom: 20px;
}

.legal-block + .legal-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .about-grid,
  .infra-grid,
  .licensing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hosting-cards,
  .support-cards,
  .why-grid,
  .why-grid-bottom {
    grid-template-columns: 1fr;
  }

  .infra-item {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .hero {
    min-height: 520px;
  }

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