/* =========================
   GLOBAL
========================= */

:root {
  --primary: #087ea4;
  --primary-dark: #05627f;
  --dark: #071b2a;
  --text: #263746;
  --muted: #71808d;
  --light: #f4f9fc;
  --white: #ffffff;
  --border: #e4edf2;
  --shadow: 0 15px 45px rgba(7, 27, 42, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--white);
  color: var(--text);
}

section {
  scroll-margin-top: 90px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  height: 75px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.95);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 999;

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.navbar-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.navbar-logo span {
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  gap: 35px;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: 0.3s;
}

.navbar-nav a:hover {
  color: var(--primary);
}

.navbar-extra {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-extra > a {
  display: flex;
  align-items: center;
}

.nav-wa {
  gap: 7px;
  background: var(--primary);
  color: white;
  padding: 10px 17px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: 0.3s;
}

.nav-wa:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

#hamburger-menu {
  display: none;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  position: relative;

  background:
    linear-gradient(
      90deg,
      rgba(4, 20, 32, 0.95),
      rgba(4, 20, 32, 0.7),
      rgba(4, 20, 32, 0.25)
    ),
    url("img/hero-water-heater.jpg");

  background-size: cover;
  background-position: center;
}

.hero-content {
  width: 100%;
  max-width: 1250px;

  margin: auto;
  padding: 120px 7% 70px;

  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  background: rgba(255, 255, 255, 0.08);

  border-radius: 30px;

  font-size: 0.75rem;
  margin-bottom: 22px;
}

.hero-content h1 {
  max-width: 760px;

  font-size: clamp(2.7rem, 6vw, 5rem);

  line-height: 1.1;

  margin-bottom: 25px;

  font-weight: 800;
}

.hero-content h1 span {
  display: block;
  color: #5fd8ff;
}

.hero-content > p {
  max-width: 680px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 1rem;

  line-height: 1.8;

  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   BUTTON
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 14px 22px;

  border-radius: 10px;

  font-size: 0.88rem;

  font-weight: 600;

  transition: 0.3s;

  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(8, 126, 164, 0.25);
}

.btn-outline {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: white;
  color: var(--dark);
}

.btn-white {
  background: white;
  color: var(--dark);
}

.btn-white:hover {
  transform: translateY(-3px);
}

.full {
  width: 100%;
}

/* =========================
   HERO INFO
========================= */

.hero-info {
  display: flex;
  gap: 45px;
  margin-top: 65px;
}

.hero-info div {
  display: flex;
  flex-direction: column;
}

.hero-info strong {
  font-size: 1.4rem;
}

.hero-info span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* =========================
   TRUST
========================= */

.trust {
  max-width: 1150px;

  margin: -45px auto 0;

  position: relative;
  z-index: 10;

  background: white;

  border-radius: 15px;

  padding: 25px 35px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  box-shadow: var(--shadow);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 5px 15px;

  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item svg {
  color: var(--primary);
  width: 25px;
}

.trust-item strong {
  display: block;
  font-size: 0.82rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.68rem;
}

/* =========================
   SECTION
========================= */

.section {
  padding: 110px 7%;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 55px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;

  color: var(--primary);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 12px;
}

.section-heading h2 {
  color: var(--dark);

  font-size: clamp(2rem, 4vw, 3rem);

  line-height: 1.2;

  margin-bottom: 18px;
}

.section-heading h2 span {
  color: var(--primary);
}

.section-heading p {
  color: var(--muted);

  line-height: 1.8;

  font-size: 0.9rem;
}

/* =========================
   ABOUT
========================= */

.about {
  background: white;
}

.about-grid {
  max-width: 1150px;

  margin: auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 470px;

  object-fit: cover;

  border-radius: 20px;
}

.experience-card {
  position: absolute;

  bottom: 25px;
  right: -25px;

  background: white;

  padding: 20px 25px;

  border-radius: 14px;

  box-shadow: var(--shadow);

  display: flex;
  gap: 12px;

  align-items: center;
}

.experience-card strong {
  font-size: 2rem;
  color: var(--primary);
}

.experience-card span {
  font-size: 0.7rem;
  color: var(--muted);
}

.small-title {
  font-size: 0.7rem;

  color: var(--primary);

  font-weight: 700;

  letter-spacing: 1.5px;
}

.about-content h3 {
  font-size: 2rem;

  line-height: 1.3;

  color: var(--dark);

  margin: 13px 0 20px;
}

.about-content > p {
  color: var(--muted);

  line-height: 1.8;

  font-size: 0.9rem;

  margin-bottom: 20px;
}

.check-list {
  display: grid;

  gap: 13px;

  margin: 25px 0;
}

.check-list div {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 0.85rem;

  font-weight: 500;
}

.check-list svg {
  width: 18px;

  padding: 3px;

  border-radius: 50%;

  background: #e4f7fb;

  color: var(--primary);
}

/* =========================
   SERVICES
========================= */

.services {
  background: var(--light);
}

.service-grid {
  max-width: 1150px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.service-card {
  position: relative;

  background: white;

  padding: 30px 25px;

  border-radius: 16px;

  border: 1px solid var(--border);

  transition: 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow);

  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #eaf8fc;

  color: var(--primary);

  border-radius: 12px;

  margin-bottom: 25px;
}

.service-icon svg {
  width: 24px;
}

.service-number {
  position: absolute;

  top: 28px;
  right: 25px;

  color: #dce8ed;

  font-size: 1.8rem;

  font-weight: 800;
}

.service-card h3 {
  color: var(--dark);

  font-size: 1rem;

  margin-bottom: 13px;
}

.service-card p {
  color: var(--muted);

  font-size: 0.78rem;

  line-height: 1.8;

  margin-bottom: 25px;
}

.service-card > a {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  color: var(--primary);

  font-size: 0.78rem;

  font-weight: 600;
}

/* =========================
   CTA
========================= */

.cta-section {
  max-width: 1150px;

  margin: 100px auto;

  padding: 55px 65px;

  border-radius: 22px;

  background: linear-gradient(110deg, #05627f, #087ea4);

  color: white;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 30px;
}

.cta-section > div {
  max-width: 650px;
}

.cta-section span {
  font-size: 0.7rem;

  letter-spacing: 2px;

  opacity: 0.7;
}

.cta-section h2 {
  font-size: 2rem;

  margin: 8px 0;
}

.cta-section p {
  font-size: 0.8rem;

  opacity: 0.8;
}

/* =========================
   PORTFOLIO
========================= */

.portfolio {
  background: white;
}

.portfolio-grid {
  max-width: 1150px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.portfolio-item {
  position: relative;

  height: 330px;

  overflow: hidden;

  border-radius: 16px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 35px 25px 25px;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));

  color: white;
}

.portfolio-overlay span {
  font-size: 0.65rem;

  color: #5fd8ff;
}

.portfolio-overlay h3 {
  font-size: 1rem;
}

/* =========================
   CONTACT
========================= */

.contact {
  background: var(--light);
}

.contact-wrapper {
  max-width: 1000px;

  margin: auto;

  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 30px;

  align-items: stretch;
}

.contact-card {
  background: var(--dark);

  color: white;

  padding: 45px 35px;

  border-radius: 18px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

.contact-icon {
  width: 60px;
  height: 60px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--primary);

  border-radius: 15px;

  margin-bottom: 25px;
}

.contact-card h3 {
  font-size: 1.4rem;

  margin-bottom: 12px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.6);

  font-size: 0.8rem;

  line-height: 1.8;

  margin-bottom: 25px;
}

.contact-wa {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #62ddff;

  font-weight: 600;

  font-size: 0.9rem;
}

.contact-form {
  background: white;

  padding: 40px;

  border-radius: 18px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.contact-form h3 {
  color: var(--dark);

  margin-bottom: 25px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;
}

.input-group {
  margin-bottom: 17px;
}

.input-group label {
  display: block;

  font-size: 0.7rem;

  font-weight: 600;

  margin-bottom: 7px;
}

.input-group input,
.input-group textarea {
  width: 100%;

  padding: 13px 15px;

  background: #f7fafc;

  border: 1px solid var(--border);

  border-radius: 8px;

  font-family: inherit;

  font-size: 0.8rem;

  color: var(--text);

  transition: 0.3s;

  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--primary);

  background: white;
}

/* =========================
   FLOATING WA
========================= */

.floating-wa {
  position: fixed;

  right: 25px;
  bottom: 25px;

  z-index: 998;

  width: 58px;
  height: 58px;

  background: #20c863;

  color: white;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 25px rgba(32, 200, 99, 0.35);

  transition: 0.3s;
}

.floating-wa:hover {
  transform: scale(1.1);
}

.floating-wa span {
  position: absolute;

  right: 70px;

  background: var(--dark);

  color: white;

  padding: 7px 12px;

  border-radius: 6px;

  font-size: 0.7rem;

  white-space: nowrap;

  opacity: 0;

  pointer-events: none;

  transition: 0.3s;
}

.floating-wa:hover span {
  opacity: 1;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #04131f;

  color: white;

  padding: 65px 7% 25px;
}

footer .navbar-logo {
  color: white;
}

footer .navbar-logo span {
  color: #5fd8ff;
}
.footer-main {
  max-width: 1150px;

  margin: auto;

  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  gap: 70px;

  padding-bottom: 50px;
}

.footer-brand p {
  max-width: 350px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 0.78rem;

  line-height: 1.8;

  margin: 15px 0;
}

.footer-brand > a:last-child {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: #5fd8ff;

  font-size: 0.8rem;
}

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);

  font-size: 0.75rem;

  transition: 0.3s;
}

.footer-links a:hover {
  color: white;

  padding-left: 4px;
}

.footer-bottom {
  max-width: 1150px;

  margin: auto;

  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  justify-content: space-between;

  color: rgba(255, 255, 255, 0.35);

  font-size: 0.68rem;
}

/* =========================
   SCROLL ANIMATION
========================= */

.section,
.cta-section,
.trust {
  animation: fadeUp linear both;

  animation-timeline: view();

  animation-range: entry 0% cover 25%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 1000px) {
  .navbar {
    padding: 0 5%;
  }

  .navbar-nav {
    gap: 18px;
  }

  .trust {
    margin-left: 5%;
    margin-right: 5%;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 40px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .navbar {
    height: 65px;
  }

  .navbar-nav {
    position: absolute;

    top: 65px;
    right: -100%;

    width: 80%;

    height: calc(100vh - 65px);

    background: white;

    flex-direction: column;

    padding: 40px 30px;

    gap: 25px;

    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);

    transition: 0.35s;
  }

  .navbar-nav.active {
    right: 0;
  }

  .navbar-nav a {
    font-size: 1rem;
  }

  .nav-wa span {
    display: none;
  }

  #hamburger-menu {
    display: flex;
  }

  .hero {
    min-height: 800px;
  }

  .hero-content {
    padding: 110px 7% 60px;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .hero-info {
    gap: 25px;

    margin-top: 45px;
  }

  .trust {
    grid-template-columns: 1fr;

    padding: 20px;
  }

  .trust-item {
    border-right: none;

    border-bottom: 1px solid var(--border);

    padding: 15px;
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .section {
    padding: 80px 6%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 350px;
  }

  .experience-card {
    right: 15px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    margin: 60px 5%;

    padding: 40px 30px;

    flex-direction: column;

    align-items: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 10px;
  }

  .floating-wa {
    right: 18px;

    bottom: 18px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 450px) {
  .navbar-logo {
    font-size: 1.35rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content > p {
    font-size: 0.85rem;
  }

  .hero-info {
    gap: 18px;
  }

  .hero-info strong {
    font-size: 1.1rem;
  }

  .hero-info span {
    font-size: 0.6rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 25px 20px;
  }
}
