/* TOMAS - standalone website */

:root {
  --blue: #114fae;
  --navy: #20396f;
  --text: #252a33;
  --muted: #626b76;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Mulish", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* HEADER AND NAVIGATION */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

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

.logo {
  width: 175px;
  max-height: 84px;
  object-fit: contain;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: #fff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  background: white;
  border-radius: 4px;
  margin: 5px 0;
}

/* HERO */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 175px 0 220px;
  color: #fff;
  border-bottom-right-radius: 150px;

  background-color: #243a55;

  background-image:
    linear-gradient(rgba(17, 18, 26, 0.52), rgba(17, 18, 26, 0.52)),
    url("background.png");

  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 74px);
  font-weight: 800;
  max-width: 880px;
  margin-bottom: 26px;
}

.hero p {
  font-size: clamp(17px, 1.6vw, 24px);
  max-width: 750px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* FOUR SERVICE CARDS */

.services {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  margin-bottom: 94px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 15px 70px -10px rgba(0, 0, 0, 0.15);
  padding: 50px 24px;
}

.service-card {
  text-align: center;
  padding: 16px 19px;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 23px;
}

.service-icon svg {
  width: 54px;
  height: 54px;
}

.service-card h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-card p {
  color: #555d68;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* IMAGE AND TEXT SECTIONS */

.split-section {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 650px;
}

.split-photo {
  min-height: 650px;
  background-color: #a1acb6;
  background-size: cover;
  background-position: center;
}

/* Original bathroom photograph */

.bathroom-photo {
  border-top-right-radius: 40px;
  background-position: 28% 1%;

  background-image: url("bathroom.png");
}

/* Original heating / plumbing photograph */

.repair-photo {
  border-bottom-right-radius: 40px;
  background-position: 56% 10%;

  background-image: url("repair.png");
}

.split-content {
  display: flex;
  align-items: center;
  padding: 70px clamp(30px, 7vw, 120px);
}

.split-text {
  max-width: 635px;
}

.split-content h2 {
  font-size: clamp(30px, 3.25vw, 48px);
  font-weight: 800;
  margin-bottom: 27px;
}

.split-content p {
  font-size: 18px;
  line-height: 1.75;
  color: #535a65;
  margin-bottom: 24px;
}

.split-content p:last-child {
  margin-bottom: 0;
}

/* REVERSED SECOND SECTION */

.reverse {
  grid-template-columns: 60% 40%;
}

.reverse .split-photo {
  grid-column: 2;
  grid-row: 1;
}

.reverse .split-content {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-end;
}

/* CONTACT */

.contact-section {
  background: #f7f9fc;
  padding: 95px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 22px;
}

.contact-copy p {
  font-size: 18px;
  max-width: 540px;
  color: #4d5560;
}

.phone-link {
  color: var(--blue);
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

.call-button {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 13px 29px;
  border-radius: 5px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}

.call-button:hover {
  background: #0d3c85;
  transform: translateY(-2px);
}

/* GOOGLE MAP */

.map-wrapper {
  min-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
  background: #e0e4e9;
}

.map-wrapper iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 340px;
}

/* FOOTER */

.site-footer {
  background: #1e1e1e;
  color: #fff;
  padding: 42px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 65px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 14px;
}

.footer-brand strong {
  font-size: 16px;
}

.footer-brand span {
  font-size: 14px;
  color: #ddd;
}

.footer-grid p {
  color: #eee;
  font-size: 16px;
  max-width: 730px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid #444;
  color: #ccc;
  font-size: 13px;
  margin-top: 38px;
  padding-top: 18px;
  text-align: center;
}

/* TABLET */

@media (max-width: 1050px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .split-section {
    grid-template-columns: 45% 55%;
  }

  .reverse {
    grid-template-columns: 55% 45%;
  }

  .split-content {
    padding: 50px 42px;
  }

  .split-photo {
    min-height: 530px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .container {
    width: calc(100% - 34px);
  }

  .header-inner {
    min-height: 100px;
  }

  .logo {
    width: 145px;
  }

  .menu-toggle {
    display: block;
    z-index: 22;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 17px;
    right: 17px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px;
    background: var(--navy);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 13px 0;
  }

  .hero {
    min-height: 530px;
    padding: 150px 0 170px;
    border-bottom-right-radius: 50px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

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

  .services {
    margin-top: -90px;
    margin-bottom: 55px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    padding: 28px 15px;
    border-radius: 26px;
  }

  .service-card {
    padding: 18px 12px 24px;
  }

  .service-icon {
    margin-bottom: 13px;
  }

  .split-section,
  .reverse {
    display: flex;
    flex-direction: column;
  }

  .split-photo,
  .reverse .split-photo {
    min-height: 300px;
    width: 100%;
    border-radius: 0 30px 0 0;
  }

  .split-content,
  .reverse .split-content {
    padding: 48px 22px 54px;
  }

  .reverse .split-content {
    order: 2;
  }

  .reverse .split-photo {
    order: 1;
  }

  .split-content p {
    font-size: 16px;
  }

  .contact-section {
    padding: 65px 0;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 300px;
    height: 300px;
  }

  .footer-grid {
    gap: 22px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
