/* =========================================================
   ABBEYLINCON A/C & REFRIGERATION SERVICES
   HOME PAGE STYLES
   Bootstrap-compatible custom design layer
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f9ff;
  color: #172033;
  overflow-x: hidden;
}


/* =========================================================
   LOADER
   ========================================================= */

.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0a192f;
  z-index: 3000;

  display: flex;
  justify-content: center;
  align-items: center;

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loader-icon {
  font-size: 60px;
  animation: spin 1.5s linear infinite;
  filter: drop-shadow(0 0 12px rgba(144, 224, 239, 0.7));
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}


/* =========================================================
   POPUP OVERLAY
   ========================================================= */

.popup-overlay {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(3, 15, 30, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  display: none;
  justify-content: center;
  align-items: center;

  padding: 20px;

  z-index: 2000;
}

.popup {
  width: 100%;
  max-width: 420px;

  background:
    linear-gradient(
      145deg,
      #112240,
      #0d1b34
    );

  color: #ffffff;

  padding: 32px;

  border: 1px solid rgba(144, 224, 239, 0.35);
  border-radius: 18px;

  text-align: center;

  position: relative;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(0, 180, 216, 0.12);

  animation: popIn 0.4s ease forwards;
}

@keyframes popIn {
  from {
    transform: scale(0.75) translateY(15px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.popup h2 {
  color: #ff6a00;
  margin-bottom: 12px;
  font-size: 26px;
}

.popup p {
  color: #dbeafe;
  line-height: 1.6;
  margin-bottom: 18px;
}

.popup .close {
  position: absolute;
  top: 8px;
  right: 15px;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  color: #9ca3af;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.popup .close:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.popup input {
  width: 100%;

  padding: 13px 14px;
  margin: 8px 0;

  border: 1px solid rgba(144, 224, 239, 0.25);
  border-radius: 9px;

  outline: none;

  background: #0a192f;
  color: #e6f1ff;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.popup input::placeholder {
  color: #8fa3b8;
}

.popup input:focus {
  border-color: #00b4d8;

  box-shadow:
    0 0 0 3px rgba(0, 180, 216, 0.12);
}


/* =========================================================
   GENERAL BUTTON
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #00b4d8,
    #0077b6
  );

  color: #ffffff;

  padding: 12px 25px;

  border: none;
  border-radius: 9px;

  margin-top: 20px;

  cursor: pointer;

  font-size: 16px;
  font-weight: bold;

  text-decoration: none;

  box-shadow:
    0 7px 18px rgba(0, 119, 182, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn:hover {
  background: linear-gradient(
    135deg,
    #0077b6,
    #023e7d
  );

  color: #ffffff;

  transform: translateY(-2px);

  box-shadow:
    0 11px 25px rgba(0, 119, 182, 0.30);
}

.btn:active {
  transform: translateY(0);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 540px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 90px 20px;

  background:
    linear-gradient(
      rgba(0, 16, 35, 0.70),
      rgba(0, 16, 35, 0.72)
    ),
    url('../Images/AC-installation.webp') center / cover no-repeat;

  color: #ffffff;

  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(0, 180, 216, 0.12),
      transparent 60%
    );

  pointer-events: none;
}

.hero h1 {
  position: relative;

  max-width: 950px;

  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;

  font-weight: 800;

  letter-spacing: -0.8px;

  margin-bottom: 15px;

  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero p {
  position: relative;

  max-width: 700px;

  color: #dff7ff;

  font-size: clamp(16px, 2vw, 20px);

  line-height: 1.6;

  margin-bottom: 8px;
}

.hero .btn {
  position: relative;
}


/* =========================================================
   COUNTER SECTION
   ========================================================= */

.counter {
  padding: 70px 20px;

  background:
    linear-gradient(
      135deg,
      #023e7d,
      #0077b6
    );

  color: #ffffff;

  position: relative;

  overflow: hidden;
}

.counter::before {
  content: "";
  position: absolute;

  width: 350px;
  height: 350px;

  top: -180px;
  right: -120px;

  border-radius: 50%;

  background: rgba(144, 224, 239, 0.10);
}

.counter-grid {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 25px;

  max-width: 1100px;

  margin: auto;

  text-align: center;
}

.counter-box {
  padding: 22px 15px;

  border: 1px solid rgba(255, 255, 255, 0.13);

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-5px);

  background: rgba(255, 255, 255, 0.10);
}

.counter-box h3 {
  font-size: 50px;

  line-height: 1;

  color: #90e0ef;

  margin-bottom: 10px;

  font-weight: 800;
}

.counter-box p {
  font-size: 17px;

  margin-top: 5px;

  color: #ffffff;
}


/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.certs {
  padding: 75px 20px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f7fbff
    );
}

.cert-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 25px;

  max-width: 1000px;

  margin: auto;
}

.cert-item {
  min-height: 180px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 20px;

  background: #ffffff;

  border: 1px solid #dceefa;

  border-radius: 15px;

  box-shadow:
    0 8px 25px rgba(2, 62, 125, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.cert-item:hover {
  transform: translateY(-6px);

  border-color: #90e0ef;

  box-shadow:
    0 14px 35px rgba(2, 62, 125, 0.12);
}

.cert-item img {
  width: 100px;
  height: 100px;

  object-fit: contain;

  margin-bottom: 13px;

  filter: grayscale(100%);

  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.cert-item:hover img {
  filter: grayscale(0%);

  transform: scale(1.08);
}

.cert-item p {
  font-weight: bold;

  color: #023e7d;

  line-height: 1.4;

  margin: 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
  text-align: center;

  color: #023e7d;

  margin-bottom: 45px;

  font-size: clamp(26px, 4vw, 34px);

  font-weight: 800;

  position: relative;
}

.section-title::after {
  content: "";

  display: block;

  width: 55px;
  height: 4px;

  margin: 12px auto 0;

  border-radius: 10px;

  background: linear-gradient(
    90deg,
    #00b4d8,
    #0077b6
  );
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
  padding: 75px 20px;

  background:
    linear-gradient(
      180deg,
      #f7fbff,
      #ffffff
    );
}

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 25px;

  max-width: 1150px;

  margin: auto;
}

.service-card {
  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f4f9ff
    );

  border: 1px solid #b9e7f3;

  border-radius: 16px;

  padding: 28px 24px;

  text-align: center;

  position: relative;

  overflow: hidden;

  box-shadow:
    0 8px 25px rgba(2, 62, 125, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background:
    linear-gradient(
      90deg,
      #00b4d8,
      #0077b6
    );

  transform: scaleX(0);

  transform-origin: left;

  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-7px);

  border-color: #90e0ef;

  box-shadow:
    0 18px 40px rgba(2, 62, 125, 0.13);
}

.service-card h3 {
  color: #023e7d;

  margin-bottom: 10px;

  font-size: 21px;

  line-height: 1.35;

  font-weight: 750;
}

.price {
  font-size: 25px;

  font-weight: 800;

  color: #0077b6;

  margin: 10px 0 15px;

  line-height: 1.2;
}

.price span {
  font-size: 13px;

  font-weight: normal;

  color: #64748b;
}

.service-card ul {
  list-style: none;

  text-align: left;

  margin: 10px 0 5px;

  padding: 0;

  flex-grow: 1;
}

.service-card ul li {
  padding: 8px 0;

  color: #334155;

  border-bottom: 1px solid rgba(2, 62, 125, 0.07);

  line-height: 1.4;
}

.service-card ul li:last-child {
  border-bottom: none;
}

.service-card ul li::before {
  content: "✓ ";

  color: #00a6c7;

  font-weight: bold;
}

.service-card .btn {
  width: 100%;

  margin-top: 18px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

  .hero {
    min-height: 500px;

    padding: 80px 20px;
  }

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

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

    max-width: 700px;
  }

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  /* HERO */

  .hero {
    min-height: 470px;

    padding: 70px 18px;

    background-position: center;
  }

  .hero h1 {
    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -0.4px;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.5;
  }

  .hero .btn {
    font-size: 14px;

    padding: 11px 20px;
  }


  /* COUNTER */

  .counter {
    padding: 50px 15px;
  }

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

    gap: 15px;
  }

  .counter-box {
    padding: 20px 10px;
  }

  .counter-box h3 {
    font-size: 38px;
  }

  .counter-box p {
    font-size: 14px;
  }


  /* CERTIFICATIONS */

  .certs {
    padding: 55px 15px;
  }

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

    gap: 15px;
  }

  .cert-item {
    min-height: 155px;

    padding: 15px 10px;
  }

  .cert-item img {
    width: 75px;
    height: 75px;
  }

  .cert-item p {
    font-size: 13px;
  }


  /* SERVICES */

  .services {
    padding: 55px 15px;
  }

  .section-title {
    font-size: 26px;

    margin-bottom: 32px;
  }

  .service-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-card h3 {
    font-size: 21px;
  }

  .price {
    font-size: 22px;
  }


  /* POPUP */

  .popup {
    width: calc(100% - 30px);

    max-width: 400px;

    padding: 28px 20px;
  }

  .popup h2 {
    font-size: 22px;
  }

  .popup input {
    padding: 11px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .hero {
    min-height: 430px;

    padding: 55px 15px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero .btn {
    width: 100%;
    max-width: 260px;
  }


  /* COUNTER */

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

    gap: 10px;
  }

  .counter-box {
    padding: 18px 7px;
  }

  .counter-box h3 {
    font-size: 32px;
  }

  .counter-box p {
    font-size: 12px;
  }


  /* CERTIFICATIONS */

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

    gap: 12px;
  }

  .cert-item {
    min-height: 140px;

    padding: 12px 7px;
  }

  .cert-item img {
    width: 65px;
    height: 65px;
  }

  .cert-item p {
    font-size: 12px;
  }


  /* SECTION TITLE */

  .section-title {
    font-size: 23px;
  }


  /* SERVICE CARDS */

  .service-card {
    padding: 22px 15px;
  }

  .service-card h3 {
    font-size: 19px;
  }

  .service-card ul li {
    font-size: 14px;
  }


  /* POPUP */

  .popup {
    padding: 25px 17px;
  }

  .popup h2 {
    font-size: 21px;
  }
}


/* =========================================================
   REDUCED MOTION
   Accessibility improvement
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   28. TEXT SELECTION
   ========================================================= */

h2::selection,
span::selection,
label::selection,
p::selection,
h1::selection,
div::selection,
form::selection,
footer::selection,
h3::selection,
h4::selection,
h5::selection,
h6::selection,
strong::selection,
a::selection,
li::selection,
th::selection,
td::selection,
img::selection,
sup::selection,
sub::selection,
b::selection,
small::selection {
  color: inherit;
  background: none;
}


/* =========================================================
   29. CONTEXT MENU CURSOR
   ========================================================= */

h2,
span,
label,
p,
h1,
div,
form,
footer,
h3,
h4,
h5,
h6,
strong,
li,
th,
td,
img,
sup,
sub,
b,
small {
  cursor: context-menu;
}
