:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --brand: #0b6b4f;
  --brand-600: #0a5b41;
  --radius: 10px;
  --gap: 24px;
  --max-width: 1500px;
  --shadow: 0 6px 18px rgba(11, 107, 79, 0.08);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  line-height: 1.5;
  color: #111827;
  background: var(--bg);
  margin: 0;
}
.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  background: black;
  transition: background-color 220ms ease, border-color 220ms ease,
    padding 220ms ease;
  padding-top: 18px;
  padding: 0 40px;
}
.site-header.scrolled {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}
@media (max-width: 700px) {
  .logo-img {
    height: 30px;
  }
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a.cta {
  background: #ffffff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-toggle {
  background: none;
  cursor: pointer;
  color: #fff;
  text-align: center;
  display: none;
  border: none;
}

/* icon sizing inside nav toggle */
.nav-toggle svg {
  width: 30px;
  height: 30px;
  display: inline-block;

}

/* show menu icon by default, hide close icon */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: black;
  margin-top: 100px;
  margin-bottom: 20px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 36px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.hero-copy {
  max-width: 680px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  margin: 0 0 14px;
  font-weight: 700;
}
.hero p {
  color: rgba(17, 24, 39, 0.95);
  margin: 0 0 22px;
  font-size: 1.05rem;
}
.hero-ctas {
  margin-top: 60px;
  margin-bottom: 50px;
}
.hero-ctas .btn {
  margin-right: 12px;
}
.hero-features {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.hero-features li {
  background: rgb(0, 0, 0);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-media {
  display: block;
  
}
.hero-media img,
.hero-media video,
.hero-video video{
  width: 520px;
  max-width: 40vw;
  border-radius: 14px;
  box-shadow: var(--shadow);
  object-fit: cover;
  display: block;
}

/* make the hero video responsive on small screens */
.hero-video {
  width: 100%;
  max-width: 520px;
  max-height: 520px;
  
}

/* Hero carousel styles removed */

@media (max-width: 900px) {
  /* Mobile/tablet layout tweaks: make header behave like a normal sticky bar and
     remove large desktop top offset so the hero stacks neatly under the header. */
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 20px;
  }

  /* ensure hero text uses dark color for better contrast on stacked layout */
  .hero {
    margin-top: 0; /* remove desktop offset */
    padding-top: 18px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
  }
  /* center the media and make it fully responsive */
  .hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .hero-media img,
  .hero-media video,
  .hero-video {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }
  .hero h1,
  .hero p,
  .hero .lead {
    color: #111827;
  }
  .hero-features {
    flex-wrap: wrap;
  }
}

.section {
  padding: 30px;
}
.section-title {
  width: 100%;
  text-align: center;
  font-size: 2.4rem;
  margin: 0 0 6px;
}
.section-lead {
  width: 100%;
  text-align: center;
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #d6d9de;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.service-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .icon {
  width: 28px;
  height: 28px;
  fill: #fff; /* make svg icon white for contrast against black background */
}
.service-card h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
}
.service-card p {
  margin: 0;
  color: var(--muted);
}
.service-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.service-card .price {
  color: var(--brand);
  font-weight: 600;
}
.service-card .btn-outline {
  border: 1px solid #000;
  color: #000;
  padding: 8px 12px;
  border-radius: 10px;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.10);
  border-color: rgba(10, 90, 60, 0.08);
}
/* also show hover/focus state for keyboard users */
.service-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.10);
  border-color: rgba(10, 90, 60, 0.08);
}

/* subtle icon lift inside the card */
.service-card .icon-wrap {
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.service-card:hover .icon-wrap,
.service-card:focus-within .icon-wrap {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}
.card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.icon {
  width: 40px;
  height: 40px;
  fill: var(--brand);
  flex: 0 0 40px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
}

/* process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.step {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}
.step strong {
  display: block;
  color: var(--brand);
  font-size: 1.4rem;
}
.step h4 {
  margin: 8px 0;
}
.step p {
  color: var(--muted);
  margin: 0;
}

.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 10/10;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.testimonials {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.testimonial,
.testimonial-card {
  background: #f8fafb;
  border-radius: 12px;
  border: 1px solid #d6d9de;

  padding: 18px;
  color: #111827;

  display: block;
}
.testimonial-card .quote,
.testimonial .quote {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.4;
}
.testimonial-card .author,
.testimonial cite,
.testimonial .author {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 28px;
  align-items: start;
}
/* Redesigned contact panel */
.contact-panel {
  display: grid;
  /* give the form column more space so the form can be larger on desktop */
  grid-template-columns: 1fr 560px;
  gap: 28px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #d6d9de;
}
/* Redesigned contact card internals */
.contact-card-head {
  margin-bottom: 8px;
}
.contact-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.contact-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #111827;
  
}
.contact-item a{
    text-decoration: none;
    color: #111827;
}
.contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.phone-link {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}
.phone-link:hover,
.phone-link:focus {
  text-decoration: underline;
}
.contact-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
/* social icons under contact info */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 160ms ease, filter 160ms ease;
}
.social-links a:hover,
.social-links a:focus {
  transform: translateY(-3px);
  filter: brightness(1.08);
}
.social-links svg { display: block; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: grid;
  gap: 8px;
}
.contact-list li {
  color: #111827;
  font-weight: 500;
}
.contact-right {
  display: flex;
  flex-direction: column;
}
.card-form {
  background: #fff;
  border-radius: 12px;
  padding: 24px; /* tightened padding for better balance */
  border: 1px solid #d6d9de;
  max-width: 640px;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px; /* more breathing room between fields */
}
.field {
  display: block;
  font-size: 1rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px; /* larger input height and a bit more horizontal padding */
  border-radius: 12px;
  border: 1px solid #e6e9ee;
  margin-top: 10px;
  font-size: 1rem;
  background: #fbfcfd;
  transition: border-color 180ms ease, box-shadow 180ms ease,
    background 180ms ease;
}

/* Make single-line inputs and selects the same height for visual consistency */
.field input,
.field select {
  height: 48px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  background: #ffffff;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
}
.field select {
  /* make room for chevron and avoid cramped text */
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%239ca3af' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 14px;
  cursor: pointer;
  height: 48px;
}

/* hide the native dropdown arrow in older Edge/IE */
.field select::-ms-expand {
  display: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9ca3af;
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
  margin: 10px 0 12px;
}
.checkbox input {
  margin: 0;
  width: 20px;
  height: 20px;
}
#form-status {
  margin-left: 6px;
  font-weight: 600;
  color: var(--brand-600);
}
.form-success {
  display: inline-block;
  background: rgba(10, 90, 60, 0.08);
  color: var(--brand-600);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(10, 90, 60, 0.08);
}
.form label {
  display: block;
  margin-bottom: 12px;
}
.form label.checkbox,
label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.form input,
.form textarea {
  width: 100%;
  /* keep layout-only rule here; visual styles are handled by `.field` to avoid conflicts */
}

/* Reset native controls (checkbox/radio) so they don't inherit width:100% */
.form input[type="checkbox"],
.form input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  height: auto;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--brand);
}
.checkbox input {
  /* small fixed size for consistency */
  width: 18px;
  height: 18px;
}
.form .form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 180ms ease, filter 180ms ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.btn-outline {
  background: transparent;
  border: 1px solid #000; /* changed to black border as requested */
  color: #000;
}

.site-footer {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
/* ensure footer text and links are visible on dark background */
.site-footer,
.site-footer p,
.site-footer .muted {
  color: rgba(255,255,255,0.92);
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.site-footer a:hover,
.site-footer a:focus {
  opacity: 0.95;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 60;
}
.lightbox[aria-hidden="false"] {
  display: flex;
}
.lb-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  z-index: 120;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:focus {
  outline: 3px solid rgba(11,107,79,0.18);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .scroll-top { right: 12px; bottom: 14px; width: 44px; height: 44px; }
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 60vh;
    padding: 48px 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    margin-bottom: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    grid-template-columns: 1fr;
  }

  /* make social icons slightly smaller on narrow screens */
  .social-links a { width: 36px; height: 36px; }
}
@media (max-width: 700px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
  .hero {
    padding: 36px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* Extra small devices: tighten spacing, stack grids, and resize controls */
@media (max-width: 600px) {
  .container {
    padding: 12px;
  }
  .section {
    padding: 0;
  }
  .site-header {
    padding: 8px 15px;
  }
  .header-inner {
    padding: 10px 0;
  }
  .logo-img {
    height: 44px;
  }

  .hero {
    padding-top: 0px;
    min-height: 60vh;
  }

  /* mobile CTA layout: stack and full-width for easier tapping */
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
  }
  .hero-ctas .btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }
  .hero-features {
    margin-top: 30px;
    justify-content: center;
  }
  .hero h1,
  .hero p {
    color: #111827;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy {
    padding: 0 4px;
  }
  .eyebrow {
    text-align: center;
  }
  .hero .lead {
    text-align: center;
  }
  .hero h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .hero p.lead {
    font-size: 1rem;
  }

  /* carousel image sizing */
  /* carousel image sizing removed */

  /* services stack tighter */
  .services-grid {
    margin-top: 0px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-lead {
    margin: 0 0 50px;
    text-align: center;
    font-size: 0.98rem;
  }
  .service-card {
    padding: 14px;
  }
  .service-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
  .service-card .icon {
    width: 22px;
    height: 22px;
  }
  
  /* forms stack */
  .form-grid {
    grid-template-columns: 1fr;
  }
  .card-form {
    padding: 14px;
  }

  /* buttons and footer */
  .btn {
    padding: 10px 12px;
  }
  .btn-primary {
    padding: 10px 14px;
  }

  .nav a {
    padding: 8px 8px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  /* reduce reveal stagger overhead on small devices */
  .reveal {
    transition-duration: 420ms;
  }
}

/* Mobile nav: show menu when the toggle has aria-expanded="true" (CSS-driven) */
@media (max-width: 700px) {
  /* hide regular nav by default (already set), show when toggle expanded */
  .nav-toggle[aria-expanded="true"] + #main-nav,
  .nav-toggle[aria-expanded="true"] + .nav {
    display: flex;
    position: absolute;
    right: 0;
    top: 64px;
    background: rgba(0, 0, 0, 0.95);
    padding: 12px;
    border-radius: 10px;
    flex-direction: column;
    gap: 8px;
    z-index: 60;
    min-width: 180px;
  }
  .nav-toggle[aria-expanded="true"] + #main-nav a,
  .nav-toggle[aria-expanded="true"] + .nav a {
    padding: 8px 10px;
  }
}

/* Responsive: stack testimonial cards on narrower screens */
@media (max-width: 900px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* utility */
.grid {
  display: grid;
}
.muted {
  color: var(--muted);
}

/* Reveal on scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* small stagger helper when JS sets inline transition-delay */
.reveal .stagger-child {
  transition: opacity 560ms ease, transform 560ms ease;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible,
  .reveal[data-visible="true"] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
