:root {
  --ink: #384141;
  --muted: #a5a5a5;
  --line: #dadada;
  --lime: #b2cb20;
  --teal: #4fb8aa;
  --red: #e84455;
  --orange: #d46408;
  --paper: #fff;
  --light: #f6f6f6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--muted);
  background: var(--paper);
  font: 14px/1.7 "Open Sans", sans-serif;
  overflow-x: hidden;
}

body, input, textarea, button { font-family: "Open Sans", sans-serif; }

h1, h2, h3, h4, p, figure, ul { margin: 0; }
h1, h2, h3 { font-family: "Poppins", sans-serif; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}

.nav-shell {
  min-height: 83px;
  display: flex;
  align-items: center;
}

.brand { width: 130px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.main-nav a {
  min-width: 74px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  text-transform: capitalize;
  font: 600 14px/1.45 "Poppins", sans-serif;
  transition: color .3s, background .3s;
}

.main-nav a.active,
.main-nav a:first-child:hover { background: var(--lime); color: #fff; }
.main-nav a:nth-child(2):hover { color: var(--teal); }
.main-nav a:nth-child(3):hover { color: var(--red); }

.social-list { display: flex; align-items: center; justify-content: center; }
.header-social { margin-left: 16px; }

.social-list a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  transition: color .3s, background .3s;
}

.header-social a { width: 30px; height: 30px; color: #fff; }
.social-list .facebook:hover { color: #fff; background: #3b5999; }
.social-list .twitter:hover { color: #fff; background: #55acee; }
.social-list .instagram:hover { color: #fff; background: #e4405f; }
.social-list .linkedin:hover { color: #fff; background: #0077b5; }
.social-list .whatsapp:hover { color: #fff; background: #25d366; }

.menu-toggle {
  width: 36px;
  padding: 6px;
  margin-left: 16px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}
.menu-toggle span + span { margin-top: 4px; }

.menu-state { position: fixed; opacity: 0; pointer-events: none; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  transition: .35s ease;
}

.side-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  width: min(40%, 520px);
  min-width: 360px;
  padding: 70px 64px 45px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(100%);
  transition: transform .45s ease;
}

.menu-state:checked ~ .drawer-overlay { opacity: 1; visibility: visible; }
.menu-state:checked ~ .side-drawer { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  transition: background .3s;
}
.drawer-close:hover { background: var(--red); }
.drawer-close::before, .drawer-close::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  width: 2px;
  height: 19px;
  background: #fff;
  transform: rotate(45deg);
}
.drawer-close::after { transform: rotate(-45deg); }
.drawer-logo { width: 220px; margin-bottom: 42px; }
.drawer-nav { display: flex; flex-direction: column; gap: 13px; }
.drawer-nav a {
  width: max-content;
  color: var(--ink);
  font: 300 1.5rem/1.35 "Poppins", sans-serif;
  transition: color .3s;
}
.drawer-nav a:nth-child(1):hover { color: var(--lime); }
.drawer-nav a:nth-child(2):hover { color: var(--teal); }
.drawer-nav a:nth-child(3):hover { color: var(--red); }
.drawer-social { justify-content: flex-start; margin-top: 42px; }
.drawer-social a { color: var(--ink); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #77878a url("assets/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .56); }
.hero-copy { position: relative; z-index: 1; text-align: center; color: #fff; padding-top: 38px; }
.hero-copy h1 {
  font-size: clamp(2rem, 3.15vw, 2.7rem);
  line-height: 1.25;
  font-weight: 200;
  text-transform: capitalize;
  letter-spacing: -.5px;
}
.hero-copy p {
  margin-top: 12px;
  font: 500 clamp(1.75rem, 3vw, 3.35rem)/1.28 "Poppins", sans-serif;
  text-transform: none;
}

.section { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: start; }
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1.28;
  font-weight: 400;
}
.section-title span { font-weight: 200; }
.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 70px;
  height: 4px;
  background: var(--lime);
}
.section-title.left::after { left: 0; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

.about-copy .section-title { margin-bottom: 70px; font-weight: 200; }
.about-copy h3 {
  margin-bottom: 25px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 400;
}
.about-copy p { margin-bottom: 25px; }
.about-image { overflow: hidden; }
.about-image img { width: 100%; transition: transform .8s linear; }
.about-image:hover img { transform: scale(1.1); }

.services-heading, .contact-heading { margin-top: 76px; text-align: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 45px;
}
.service-card {
  min-height: 246px;
  padding: 36px 26px 30px;
  text-align: center;
  border-radius: 5px;
  transition: color .45s, background .45s, transform .45s;
}
.service-card > i { font-size: 44px; color: var(--accent); transition: color .45s; }
.service-card h3 {
  margin: 15px 0 20px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: capitalize;
  transition: color .45s;
}
.service-card.lime { --accent: var(--lime); }
.service-card.teal { --accent: var(--teal); }
.service-card.red { --accent: var(--red); }
.service-card:hover { color: #fff; background: var(--accent); transform: translateY(-3px); }
.service-card:hover > i, .service-card:hover h3 { color: #fff; }

.parallax-band {
  min-height: 355px;
  background-image: linear-gradient(rgba(31, 39, 40, .35), rgba(31, 39, 40, .35)), url("assets/hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
}

.contact-section { padding-top: 110px; }
.contact-heading { margin-top: 0; margin-bottom: 55px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 55px;
}
.contact-card { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
}
.contact-card.teal { --accent: var(--teal); }
.contact-card.lime { --accent: var(--lime); }
.contact-card.red { --accent: var(--red); }
.contact-card.orange { --accent: var(--orange); }
.contact-card h3 { color: var(--ink); font-size: 1.15rem; line-height: 1.4; font-weight: 400; }
.contact-card p { margin-top: 4px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--teal); }

.contact-form { width: min(760px, 100%); margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin: 0 0 30px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  outline: 0;
  transition: border-color .4s;
}
.contact-form input { height: 48px; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b5b5b5; opacity: 1; }
.contact-form button {
  width: 100%;
  padding: 13px 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--lime);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s;
}
.contact-form button:hover, .contact-form button:focus { background: var(--teal); }

.map { display: block; width: 100%; height: 450px; border: 0; }
.site-footer { padding: 90px 0; background: var(--light); text-align: center; }
.footer-social { margin-bottom: 20px; }
.footer-social a { color: var(--ink); }
.site-footer p { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.site-footer p a:hover { color: var(--teal); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .main-nav, .header-social { display: none; }
  .menu-toggle { margin-left: auto; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { width: min(100% - 30px, 680px); }
  .section { padding: 64px 0; }
  .nav-shell { min-height: 72px; }
  .brand { width: 120px; }
  .hero { min-height: 650px; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-copy p { font-size: 1.7rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy .section-title { margin-bottom: 40px; }
  .about-image { margin-top: 15px; }
  .services-heading { margin-top: 60px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); margin-top: 25px; }
  .service-card { min-height: 225px; padding: 30px 18px; }
  .parallax-band { min-height: 260px; background-attachment: scroll; }
  .contact-section { padding-top: 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 65px 0; }
  .side-drawer { width: min(88%, 420px); min-width: 0; padding: 64px 38px 38px; }
}

@media (max-width: 560px) {
  .hero { min-height: 100svh; }
  .hero-copy h1 { font-size: 1.65rem; }
  .hero-copy p { margin-top: 14px; font-size: 1.4rem; }
  .section-title { font-size: 1.9rem; }
  .about-copy h3 { font-size: 1.05rem; }
  .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .contact-grid { gap: 26px; }
  .parallax-band { min-height: 220px; }
  .drawer-logo { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
