@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Barlow:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap");

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --ink: #0e1b26; /* near-black navy — header, dark panels */
  --ink-soft: #3a4750; /* body text on light backgrounds */
  --teal: #1c6e74; /* brand primary — gulf water */
  --teal-deep: #114b50; /* hover / deep variant */
  --ember: #e8622c; /* accent — heat / call to action */
  --ember-deep: #c94f1f;
  --sand: #f5f0e6; /* warm base background */
  --mist: #eaf4f4; /* cool alt-section background */
  --paper: #fbf9f5;
  --white: #ffffff;
  --line: rgba(14, 27, 38, 0.12);
  --panel: #16303b; /* shared dark panel tone — contact card, gauge center */

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --nav-height: 96px;
  --radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
}

li {
  list-style: none;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
}

section {
  scroll-margin-top: var(--nav-height);
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.eyebrow--light {
  color: #7fd7ce;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-lede {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ember-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--ink);
  z-index: 100;
  padding: 0 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

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

.nav-menu {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  align-items: center;
}

.nav-menu li a.nav-link {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 0.8rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--ember);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.highlight::after {
  width: 100%;
}

.nav-link.highlight {
  color: var(--ember);
}

.phone-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  background-color: transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.phone-button:hover {
  background-color: var(--teal);
  border-color: var(--teal);
}

.phone-icon {
  height: 18px;
  width: 18px;
  filter: brightness(0) invert(1);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--white);
  border-radius: 2px;
}

/* =========================================================
   Home / hero
   ========================================================= */
#home {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: linear-gradient(180deg, var(--ink) 0%, #14303c 100%);
  display: flex;
  align-items: center;
}

.home-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.home-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1.1rem;
}

.home-sub {
  color: #c9d6da;
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

#home .btn-ghost {
  border-color: #7fd7ce;
  color: var(--white);
}

#home .btn-ghost:hover {
  background: #7fd7ce;
  color: var(--ink);
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.hero-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hero-social-icon:hover {
  transform: translateY(-2px);
  border-color: #7fd7ce;
  background: rgba(127, 215, 206, 0.14);
}

.hero-social-icon svg {
  width: 17px;
  height: 17px;
  fill: #7fd7ce;
}

.home-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #7fd7ce;
}

.home-badges li::before {
  content: "\25CF";
  margin-right: 8px;
  color: var(--ember);
}

.google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #c9d6da;
  border-bottom: 1px solid rgba(201, 214, 218, 0.35);
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.google-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.google-star {
  width: 14px;
  height: 14px;
  fill: var(--ember);
  flex-shrink: 0;
}

/* =========================================================
   Signature gauge — outside/inside temperature ring
   ========================================================= */
.home-gauge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.home-gauge::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: url("images/ac-texture.png");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(
    circle,
    black 0%,
    black 30%,
    transparent 60%
  );
  mask-image: radial-gradient(circle, black 0%, black 30%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.temperature-gauge {
  position: relative;
  z-index: 1;
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 34px;
  text-align: center;
}

.gauge-temperature,
.gauge-inside,
.gauge-tagline {
  width: 100%;
  text-align: center;
}

/* Outside temperature — floating badge overlapping the ring's top edge */
.gauge-temperature--outside {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: max-content;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.gauge-temperature--outside .gauge-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #e39b84;
  line-height: 1;
}

.gauge-temperature--outside .gauge-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #8fa3aa;
}

/* Ring — conic-gradient donut showing the temperature drop as a filled arc */
.gauge-ring {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--ember) 0deg 258deg,
    rgba(255, 255, 255, 0.09) 258deg 360deg
  );
  animation: gauge-grow 1.3s ease-out 0.2s both;
}

@keyframes gauge-grow {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gauge-ring-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Inside temperature — the primary number inside the ring */
.gauge-inside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-inside .gauge-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  color: #7fd7ce;
  line-height: 1;
}

.gauge-inside .gauge-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #8fa3aa;
  margin-top: 6px;
}

/* "26° COOLER" pill above the inside number */
.gauge-delta {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ember);
  background: rgba(232, 98, 44, 0.12);
  border: 1px solid rgba(232, 98, 44, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  text-align: center;
}

/* Bottom tagline */
.gauge-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 22px auto 0;
  text-align: center;
}

.gauge-tagline strong {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  text-align: center;
}

.gauge-tagline span {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #7fd7ce;
  margin-top: 4px;
  text-align: center;
}

.gauge-live-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #8fa3aa;
}

.gauge-live-tag[hidden] {
  display: none;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fd7ce;
  box-shadow: 0 0 0 0 rgba(127, 215, 206, 0.6);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 215, 206, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(127, 215, 206, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 215, 206, 0);
  }
}

/* =========================================================
   HVAC / services
   ========================================================= */
#hvac {
  padding: 100px 24px;
  background: var(--mist);
}

.hvac-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.service-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(14, 27, 38, 0.08);
  border: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 27, 38, 0.14);
}

.service-icon {
  height: 96px;
  width: 96px;
  border-radius: 50%;
  background: var(--sand);
  border: 3px solid var(--teal);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-icon .card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.service-card .name {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.service-card .description {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* =========================================================
   About
   ========================================================= */
#about-us {
  padding: 100px 24px;
  background: var(--paper);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.spec-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  color: var(--teal);
  letter-spacing: 0.03em;
}

.spec-row dd {
  color: var(--ink);
  text-align: right;
  font-weight: 600;
}

.about-right .section-text {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  text-align: left;
}

/* =========================================================
   Contact
   ========================================================= */
#contactus {
  padding: 100px 24px;
  background: var(--ink);
}

#contactus .eyebrow {
  color: #7fd7ce;
}

#contactus .section-title {
  color: var(--white);
}

.contact-container {
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.contact-intro {
  color: #c9d6da;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact_label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7fd7ce;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
}

input:invalid:not(:placeholder-shown) {
  box-shadow: 0 0 0 2px var(--ember);
}

textarea {
  resize: vertical;
}

form .btn {
  justify-self: start;
}

form .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   Modal (message sent / error)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 38, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 400;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 44px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: modal-pop 0.22s ease;
}

@keyframes modal-pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal);
}

.modal-icon-x {
  display: none;
}

.modal-card.error .modal-icon {
  background: #fbe4dc;
}

.modal-card.error .modal-icon svg {
  stroke: var(--ember);
}

.modal-card.error .modal-icon-check {
  display: none;
}

.modal-card.error .modal-icon-x {
  display: block;
}

.modal-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.modal-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 26px;
}

.modal-card .btn {
  width: 100%;
}

/* =========================================================
   Cookie consent banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 350;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.35);
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  color: #c9d6da;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 0;
  text-align: center;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.76rem;
}

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* =========================================================
   Shared bits
   ========================================================= */
.back-to-top {
  display: block;
  width: max-content;
  margin: 56px auto 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}

#hvac .back-to-top,
#contactus .back-to-top {
  color: #7fd7ce;
  border-color: #7fd7ce;
}

.footer-bottom {
  background: var(--ink);
  color: #8fa3aa;
  text-align: center;
  padding: 20px 16px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
  color: #7fd7ce;
  text-decoration: underline;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #7fd7ce;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 215, 206, 0.4);
  padding-bottom: 3px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.social-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.social-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media screen and (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .home-copy h1,
  .home-sub {
    max-width: none;
  }

  .home-actions,
  .home-badges {
    justify-content: center;
  }

  .home-gauge {
    order: -1;
    margin-bottom: 8px;
  }

  .temperature-gauge {
    width: 280px;
    padding-top: 30px;
  }

  .gauge-ring {
    width: 240px;
    height: 240px;
  }

  .gauge-inside .gauge-number {
    font-size: 2.6rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-right .section-text {
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    gap: 0;
    flex-direction: column;
    background-color: var(--ink);
    width: 100%;
    height: calc(100vh - var(--nav-height));
    padding-top: 24px;
    transition: left 0.25s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 12px 0;
  }

  .hvac-container {
    flex-direction: column;
    align-items: center;
  }

  form {
    max-width: 100%;
  }
}
