:root {
  --light-blue: #69dbf9;
  --navy: #033a82;
  --teal: #1eedc4;
  --dark-blue: #013564;
}

* {
  box-sizing: border-box;
}

/* PAGE LAYOUT */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;

  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 46px;
}

nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

nav a:hover {
  color: var(--teal);
}

/* HERO (BASE) - HOME */
.hero {
  min-height: 55vh;
  background: url("assets/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 28px 20px 16px;
  position: relative;
}

/* HOME HERO OVERLAY */
.hero:not(.about-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(1, 53, 100, 0.55),
    rgba(1, 53, 100, 0.45)
  );
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  max-width: 900px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* HERO EYEBROW */
.hero-eyebrow {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.hero-eyebrow span {
  display: inline-block;
  margin-top: 6px;
  color: var(--light-blue);
  font-weight: 600;
}

/* HERO SUBTEXT */
.hero-subtext {
  font-size: 18px;
  margin-bottom: 26px;
  opacity: 0.95;
}

/* ABOUT PAGE HERO */
.about-hero {
  background: url("assets/about.jpg") center / cover no-repeat;
  min-height: 65vh;
}

/* ABOUT HERO OVERLAY (MATCH HOME) */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(1, 53, 100, 0.55),
    rgba(1, 53, 100, 0.45)
  );
}

/* CONTACT PAGE HERO ONLY (GRADIENT IMAGE) */
.contact-page .hero {
  min-height: 25vh;
  background: url("assets/hero-gradient.jpg") center / cover no-repeat;
  padding: 20px;
}

/* CONTACT HERO: NO DARK OVERLAY */
.contact-page .hero::before {
  display: none;
}

/* BUTTON */
.button {
  background: var(--teal);
  color: var(--dark-blue);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
}

/* DESKTOP HERO REFINEMENT */
@media (min-width: 1024px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .hero-eyebrow {
    font-size: 56px;
  }

  .hero-subtext {
    font-size: 19px;
  }

  .contact-page .hero {
    min-height: 220px;
  }
}

/* SECTIONS */
.section {
  padding: 8px 20px 26px;
  max-width: 1100px;
  margin: auto;
}

/* ABOUT CONTENT */
.about-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 24px;
}

.about-content blockquote {
  margin: 40px 0;
  padding: 22px 24px;
  background: #f7f9fc;
  border-left: 4px solid var(--light-blue);
  font-style: italic;
  color: #444;
}

/* FEATURES */
.features-heading {
  text-align: center;
  font-size: 26px;
  margin-bottom: 18px;
  color: var(--navy);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

/* FEATURE CARD */
.feature {
  background: #f7f9fc;
  padding: 20px 22px;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  stroke-width: 2;
  fill: none;
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* ROTATE + TO × WHEN ACTIVE */
.feature.active svg {
  transform: rotate(45deg);
}

.feature:hover {
  transform: translateY(-3px);
  background: #eef6fb;
  box-shadow: 0 6px 16px rgba(1, 53, 100, 0.12);
}

/* Smooth expand/collapse */
.feature-text {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 0.95rem;
  color: #555;
  transition: max-height 0.35s ease, margin-top 0.25s ease;
}

.feature.active .feature-text {
  max-height: 200px;
  margin-top: 10px;
}

/* FORMS */
form {
  max-width: 520px;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-bottom: 14px;
  min-height: 44px;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

/* FOOTER */
footer {
  background: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  margin-top: auto;
}

/* FOOTER LINKS (RESTORED: white, no underline) */
footer a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

footer a:hover,
footer a:active,
footer a:focus {
  color: var(--light-blue);
  text-decoration: none;
}

/* FOOTER SOCIAL ICONS */
.footer-social{
  margin:14px 0 16px 0;
  display:flex;
  justify-content:center;
  gap:18px;
}

.footer-social a{
  display:inline-flex;
  width:22px;
  height:22px;
  opacity:.75;
}

.footer-social a:hover{
  opacity:1;
}

.footer-social svg{
  width:22px;
  height:22px;
  fill:white;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .whatsapp-float {
    display: none;
  }
}

/* PROVEN BUILDS SECTION */
.proven-builds {
  padding: 1.6rem 1.5rem 0.9rem;
  background: #ffffff;
  text-align: center;
}

.proven-heading {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.proven-subtext {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.proven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.proven-card {
  display: block;
  padding: 1.2rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  background: #f8f8f8;
  color: #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.proven-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.proven-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.7rem auto;
  border-radius: 12px;
  object-fit: cover;
}

.proven-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.proven-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.35;
}

/* MOBILE OPTIMISATION */
@media (max-width: 768px) {
  .feature:active {
    transform: scale(0.98);
  }

  .proven-card {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }

  .proven-card:active {
    transform: scale(0.97);
  }
}

/* FORCE HOME CTA TO BE CENTERED (DESKTOP + MOBILE) */
.home-cta {
  text-align: center;
}

/* MOBILE FEATURE CONSOLIDATION (HOME ONLY) */
@media (max-width: 768px) {

  /* Hide all features after the first 4 */
  .features .feature:nth-child(n+5) {
    display: none;
  }

  /* Show all when expanded */
  .features.expanded .feature {
    display: flex;
  }

  /* Toggle row (mobile only) */
  .features-toggle {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    padding: 0.75rem;
  }
}

/* HIDE FEATURE TOGGLE ON DESKTOP */
@media (min-width: 769px) {
  .features-toggle {
    display: none;
  }
}

/* DESKTOP CTA ALIGNMENT FIX (HOME ONLY) */
@media (min-width: 769px) {
  .home-cta {
    max-width: 900px;
    margin: 0 auto;
  }
}



/* FINAL CTA + Features spacing fix (home only) */
.home-cta {
  margin-bottom: 12px;
}

.home-cta + .section {
  padding-top: 0;
}
