/* =====================================================
   Temperate Air Conditioning & Refrigeration Website
   Main stylesheet

   Easy edits:
   - Change brand colours in :root
   - Edit spacing and card radius in :root
   - Page text is inside the HTML files
===================================================== */

:root {
  --navy: #102f42;
  --navy-dark: #0a2232;
  --teal: #1c8f99;
  --teal-dark: #14747c;
  --orange: #f28c28;
  --white: #ffffff;
  --off-white: #f7f9fa;
  --light-grey: #e8eef1;
  --mid-grey: #62727a;
  --text: #22323a;

  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;

  --container: 1120px;
  --radius: 12px;
  --shadow: 0 14px 35px rgba(16, 47, 66, 0.08);
  --shadow-hover: 0 18px 45px rgba(16, 47, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-light {
  background: var(--off-white);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-intro p,
.lead {
  font-size: 1.08rem;
  color: var(--mid-grey);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 47, 66, 0.08);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  width: 210px;
  max-height: 60px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--heading-font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(28, 143, 153, 0.22);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--navy);
  border: 1px solid rgba(16, 47, 66, 0.18);
  background: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

/* Hero */
.hero {
  padding: 118px 0 104px;
  background:
    radial-gradient(circle at top right, rgba(28, 143, 153, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
}

.hero-content {
  max-width: 850px;
}

.hero p {
  max-width: 700px;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--mid-grey);
  margin-bottom: 30px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.hero-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--teal);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(16, 47, 66, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--teal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(28, 143, 153, 0.10);
  color: var(--teal-dark);
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1rem;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--mid-grey);
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Service area */
.statement-box {
  padding: 42px;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.statement-box h2 {
  color: var(--white);
}

.statement-box p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  max-width: 860px;
}

/* Contact blocks */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.contact-item {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(16, 47, 66, 0.08);
  box-shadow: var(--shadow);
}

.contact-item span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--heading-font);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-item a,
.contact-item p {
  color: var(--mid-grey);
  margin: 0;
}

.contact-item a:hover {
  color: var(--teal-dark);
}

/* Inner pages */
.page-hero {
  padding: 92px 0 68px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border-bottom: 1px solid rgba(16, 47, 66, 0.06);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.12rem;
  color: var(--mid-grey);
}

.content-narrow {
  max-width: 860px;
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--mid-grey);
  margin-bottom: 1.2rem;
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-row {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(16, 47, 66, 0.08);
  box-shadow: var(--shadow);
}

.service-row h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.service-row p {
  color: var(--mid-grey);
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 54px 0 30px;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  width: 210px;
  margin-bottom: 18px;
  background: white;
  padding: 10px;
  border-radius: 8px;
}

.footer-title {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  font-family: var(--heading-font);
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--white);
}

.copyright {
  padding-top: 24px;
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    min-height: 76px;
  }

  .logo {
    width: 180px;
  }

  .mobile-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 20px 26px;
    background: var(--white);
    border-bottom: 1px solid rgba(16, 47, 66, 0.08);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .card-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    padding: 82px 0 76px;
  }

  .card,
  .service-row,
  .contact-item {
    padding: 24px;
  }

  .statement-box {
    padding: 30px 24px;
  }
}
