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

:root {
  --green: #21b067;
  --green-hover: #36d383;
  --bg-light: #e1eff2;
  --bg-page: #eff1f2;
  --black: #000000;
  --dark: #191919;
  --dark-gray: #1a1a1a;
  --white: #ffffff;
  --text-dark: #20303c;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 980px;
  --site-gutter: max(1rem, calc((100vw - var(--max-width)) / 2));
}

html {
  scroll-behavior: smooth;
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

body:has(.services-page),
body:has(.testimonials-page) {
  background: var(--black);
}

main {
  width: 100%;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* Header banner */
.site-header {
  position: relative;
  width: 100%;
  min-height: 100px;
  background: url("../images/header.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
}

.header-inner {
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--site-gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  flex-shrink: 0;
  width: 68px;
  height: 55px;
}

.logo-link svg {
  width: 100%;
  height: 100%;
}

.site-title {
  color: var(--white);
  font-size: clamp(0.75rem, 2.5vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.header-inner .logo-link img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.45));
}

.logo-link img {
  display: block;
}

/* Navigation */
.site-nav {
  width: 100%;
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: var(--site-gutter);
  min-height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
  flex: 1;
}

.nav-links a {
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.85rem 0.75rem;
  display: block;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-cta {
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: rgba(33, 176, 103, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(350px, 55vh, 506px);
  background: url("../images/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  padding: 2rem;
}

.hero h1 {
  color: var(--white);
  font-weight: 400;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-line1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hero-line2 {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections */
.section {
  width: 100%;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.section-inner {
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--site-gutter);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

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

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

/* About section (home) */
.about-home {
  position: relative;
  overflow: hidden;
}

.about-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  align-items: center;
}

.about-circle {
  width: min(300px, 70vw);
  height: min(300px, 70vw);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.about-home-text {
  font-size: 1rem;
  line-height: 1.7;
}

/* Testimonials */
.testimonials-sub {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 0;
}

.testimonial blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: normal;
}

.testimonial cite {
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 500;
  display: block;
}

.testimonials-image {
  width: 100%;
  margin-top: 0;
}

/* Quote form */
.quote-section p {
  margin-bottom: 2rem;
  max-width: 600px;
}

.quote-form {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  border: none;
  border-bottom: 1px solid var(--text-dark);
  background: transparent;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--green);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.full {
  grid-column: 1 / -1;
}

.btn-submit {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  cursor: pointer;
  float: right;
  margin-top: 1rem;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(33, 176, 103, 0.15);
  color: var(--text-dark);
  margin-top: 1rem;
  clear: both;
}

.form-success.visible {
  display: block;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* About page */
.about-page {
  width: 100%;
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  align-items: end;
  padding: clamp(2.5rem, 6vw, 4rem) var(--site-gutter);
  margin: 0 auto;
}

.about-page-image {
  width: 100%;
  max-width: 450px;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto;
}

.about-page-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.about-page-content p {
  line-height: 1.8;
  font-size: 1rem;
}

/* Contact page */
.contact-page {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.contact-info {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.contact-details {
  font-size: 1.125rem;
  line-height: 2;
}

.contact-details a:hover {
  color: var(--green);
}

.contact-form-panel {
  background: var(--dark-gray);
  padding: 4rem 2rem;
}

.contact-form-panel .form-group label {
  color: var(--white);
}

.contact-form-panel .form-group input,
.contact-form-panel .form-group textarea {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  padding: 0.75rem;
  color: var(--white);
}

.contact-form-panel .form-group {
  margin-bottom: 1.25rem;
}

.contact-form-panel .btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  float: none;
}

/* Testimonials page */
.testimonials-page {
  min-height: 500px;
}

.testimonials-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.testimonials-page .testimonials-sub {
  margin-bottom: 3rem;
}

.testimonials-page .testimonials-grid {
  grid-template-columns: 1fr 1fr;
}

/* Services page */

.services-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.services-intro {
  max-width: 700px;
  line-height: 1.8;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.service-card {
  position: relative;
  background: var(--black);
  overflow: hidden;
  color: var(--white);
}

.service-card img {
  width: 100%;
  height: clamp(220px, 32vw, 320px);
  object-fit: cover;
  display: block;
}

.service-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.service-card h2 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 2.5rem clamp(1rem, 4vw, 1.5rem);
  text-align: center;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--site-gutter);
}

.footer-logo {
  width: 68px;
  height: 55px;
  margin: 0 auto 1rem;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer-name {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-email {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-email:hover {
  color: var(--green);
}

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
  }

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

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

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

  .contact-page {
    grid-template-columns: 1fr 1fr;
  }

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

  .testimonials-page .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    z-index: 101;
  }

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

  .nav-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-cta {
    margin-left: auto;
  }

  .about-home-grid,
  .about-page,
  .contact-page,
  .testimonials-grid,
  .testimonials-page .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-panel {
    padding: 2.5rem clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }

  .logo-link {
    width: 52px;
    height: 42px;
  }

  .nav-cta {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
}
