/* Base styles */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #fbbf24;
  --color-text: #1e2a36;
  --color-muted: #4a5565;
  --color-bg: #f5f6fb;
  --color-surface: #ffffff;
  --color-border: rgba(148, 163, 184, 0.2);
  --shadow-soft: 0 25px 55px rgba(15, 23, 42, 0.15);
  --shadow-light: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 20px rgba(31, 111, 235, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--color-primary-dark);
  box-shadow: 0 18px 28px rgba(31, 111, 235, 0.25);
}

.button:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.4);
  outline-offset: 2px;
}

.button-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid rgba(31, 111, 235, 0.3);
  box-shadow: none;
}

.button-outline:hover {
  background: rgba(31, 111, 235, 0.08);
  box-shadow: none;
}

.button-light {
  background: #fff;
  color: var(--color-primary);
  box-shadow: none;
}

.button-light:hover {
  background: rgba(255, 255, 255, 0.85);
}

.top-bar {
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(14px);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}

.menu-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.nowrap {
  white-space: nowrap;
}

body.menu-open {
  overflow: hidden;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-weight: 500;
}

.nav-links a {
  color: var(--color-muted);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.phone-link {
  font-weight: 600;
  color: var(--color-primary);
  display: none;
}

.hero {
  padding: 4.5rem 0 6rem;
  background: radial-gradient(120% 120% at 90% 0%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(120% 120% at -10% 20%, rgba(37, 99, 235, 0.18), transparent 60%),
    var(--color-bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

.hero-copy {
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badges {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.trust-badges strong {
  color: var(--color-text);
  font-weight: 700;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: stretch;
}

.hero-media-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
}

.hero-media-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel {
  position: relative;
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 0;
}

.hero-carousel img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-carousel img:first-of-type {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 3;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-dots .dot.is-active {
  background: #fff;
  border-color: #fff;
}

.carousel-dots .dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.services {
  padding: 4rem 0;
}

.services h2,
.testimonials h2,
.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.services h2 {
  text-align: center;
}

.section-lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.service-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.service-grid article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.12);
}

.service-grid h3 {
  margin-top: 0;
  text-align: center;
}

.service-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.about {
  padding: 4rem 0;
}

.about-media {
  margin-bottom: 2rem;
}

.about-media img {
  display: block;
  margin: 0 auto;
}

.testimonials {
  padding: 4rem 0;
}

.testimonial-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-light);
  font-style: italic;
  color: var(--color-muted);
}

.testimonial-grid footer {
  margin-top: 1.2rem;
  font-style: normal;
  color: var(--color-text);
  font-weight: 600;
}

.projects {
  padding: 4.5rem 0;
  background: var(--color-bg);
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.8rem;
}

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

.projects figure {
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projects figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.projects img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.projects figcaption {
  padding: 1.1rem 1.4rem 1.4rem;
  font-weight: 600;
  color: var(--color-text);
}

.projects .project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.projects .project-link::after {
  content: '↗';
  font-size: 0.9em;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.projects .project-link:hover,
.projects .project-link:focus-visible {
  color: var(--color-primary);
}

.projects .project-link:hover::after,
.projects .project-link:focus-visible::after {
  transform: translateX(4px);
  opacity: 1;
}

.cta {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(150deg, rgba(31, 111, 235, 0.85), rgba(31, 111, 235, 0.65));
  color: #fff;
  text-align: center;
}

.cta p {
  margin: 1rem auto 2rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
}

.cta .button {
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
}

.site-footer {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.88);
  padding: 3rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.45);
}

.footer-tagline {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.96rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  align-items: flex-start;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer a {
  color: #fff;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.65);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

/* Responsiveness */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(280px, 85vw);
    padding: 1.4rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--color-border);
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    z-index: 950;
  }

  .nav-links a {
    color: var(--color-text);
  }

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

  .phone-link {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-media {
    max-width: 500px;
  }

  .service-grid,
  .testimonial-grid,
  .projects-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, 90vw);
  }

  .top-bar .container {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .phone-link {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 3rem 0 3.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-grid,
  .testimonial-grid,
  .projects-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    padding: 1.8rem 1.5rem;
  }

  .projects img {
    height: 200px;
  }

  .cta {
    padding: 3.2rem 0;
  }

  .sticky-cta {
    display: flex;
    align-items: center;
  }

  body {
    padding-bottom: 96px;
  }
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.about-actions .button {
  flex: 1 1 180px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -12px 35px rgba(15, 23, 42, 0.18);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(12px);
  z-index: 900;
}

.sticky-cta .button {
  flex: 1 1 0;
}

body.menu-open .sticky-cta {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .sticky-cta {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }
}

.lightbox {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.gallery-image {
    cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}