:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #121826;
  --muted: #4b5563;
  --primary: #db1f2d;
  --primary-dark: #9b111e;
  --secondary: #113a69;
  --accent: #f59e0b;
  --ring: rgba(17, 58, 105, 0.2);
  --radius: 16px;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 94px;
}

body {
  font-family: "Barlow", sans-serif;
  background: radial-gradient(circle at 10% 10%, #eff6ff 0%, #f8fafc 48%, #f1f5f9 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  isolation: isolate;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(245, 249, 255, 0.86) 48%,
    rgba(236, 243, 252, 0.84) 100%
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.32) 35%,
    rgba(214, 228, 247, 0.48) 55%,
    rgba(255, 255, 255, 0.28) 100%
  );
  background-size: 190% 190%;
  opacity: 0.9;
  animation: glassShift 11s ease-in-out infinite;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0));
}

.site-header-inner {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16, 37, 63, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #10253f;
  border-radius: 2px;
}

.main-nav a {
  color: #10253f;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.96;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover {
  opacity: 1;
  background: rgba(16, 37, 63, 0.1);
}

.header-phone {
  color: #10253f;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(16, 37, 63, 0.28);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
}

.header-phone:hover {
  background: rgba(16, 37, 63, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(130deg, #0f2544 0%, #113a69 42%, #1a5a92 100%);
  padding: 2.6rem 0 5rem;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.shape-1 {
  width: 380px;
  height: 380px;
  background: rgba(245, 158, 11, 0.34);
  top: -120px;
  right: -70px;
  animation: float 7s ease-in-out infinite;
}

.shape-2 {
  width: 280px;
  height: 280px;
  background: rgba(219, 31, 45, 0.3);
  left: -110px;
  bottom: -110px;
  animation: float 9s ease-in-out infinite;
}

.brand-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 160px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}

.header-logo {
  width: 200px;
  height: 68px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-content {
  max-width: 700px;
  animation: reveal 0.8s ease-out both;
}

.hero-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 1.25rem;
}

.hero-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.3);
  transform: translateY(12px);
  animation: cardIn 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: "Teko", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 1rem 0 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  max-width: 60ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.27);
}

.hero-highlights {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.hero-highlights li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 9px;
}

.section {
  padding: 4rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.section-lead {
  color: var(--muted);
  max-width: 72ch;
}

.section-brands {
  background: linear-gradient(180deg, #f8fafc 0%, #eaf0f8 100%);
}

.brand-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 0.8rem;
}

.brand-grid span {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.85rem;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.05);
  animation: reveal 0.7s ease-out both;
}

.section-services {
  background: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.service-photo-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.service-photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  box-shadow: var(--shadow);
}

.service-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe4f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  animation: cardIn 0.6s ease forwards;
}

.service-card:nth-child(2) {
  animation-delay: 0.1s;
}

.service-card:nth-child(3) {
  animation-delay: 0.2s;
}

.service-card:nth-child(4) {
  animation-delay: 0.3s;
}

.service-card h3 {
  margin-bottom: 0.4rem;
  color: #1d4b7a;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.section-about {
  background: linear-gradient(170deg, #eef4fb 0%, #f8fafc 55%, #eef4fb 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.1rem;
  align-items: start;
}

.about-content p:first-child {
  margin-top: 0;
}

.about-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 104px;
}

.about-figure img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.section-gallery {
  background: #ffffff;
}

.gallery-slider {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  margin: 0;
  min-width: calc(100% - 2px);
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  box-shadow: var(--shadow);
}

.gallery-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.gallery-control {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #163e6c;
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gallery-control:hover {
  transform: translateY(-2px);
  background: #0f2d50;
}

.gallery-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #b9c6d7;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gallery-dots button.active {
  background: #163e6c;
  transform: scale(1.35);
}

.section-about p {
  color: #293548;
  margin: 0.85rem 0;
}

.mission-vision {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.mission-vision article {
  background: var(--surface);
  border: 1px solid #d7e2f1;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.mission-vision h3 {
  color: #1d4b7a;
  margin-bottom: 0.45rem;
}

.mission-vision p {
  margin: 0;
}

.footer {
  background: linear-gradient(145deg, #0f2544 0%, #0a1a30 100%);
  color: #ffffff;
  padding: 2.2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 1rem;
}

.footer h2 {
  font-family: "Teko", sans-serif;
  margin-bottom: 0.3rem;
  font-size: 2rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.footer-brand-row h2 {
  margin: 0;
}

.footer-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.footer p {
  margin: 0.2rem 0;
  color: rgba(255, 255, 255, 0.86);
}

.footer h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.footer-nav a:hover {
  opacity: 1;
}

.contact-box {
  text-align: left;
}

.footer-phone {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 800;
}

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

@media (max-width: 1080px) {
  .site-header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand phone"
      "nav nav";
    row-gap: 0.55rem;
  }

  .brand-wrap {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
    justify-content: flex-start;
  }

  .header-phone {
    grid-area: phone;
    justify-self: end;
  }

  .about-figure {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-box {
    grid-column: 1 / -1;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes glassShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .about-grid,
  .hero-highlights,
  .service-photo-grid,
  .brand-grid,
  .service-grid,
  .mission-vision {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand toggle";
    padding: 0.8rem 0;
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: inline-block;
    grid-area: toggle;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    padding: 0.5rem;
    border: 1px solid rgba(16, 37, 63, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.14);
    justify-content: flex-start;
    gap: 0.35rem;
    transform-origin: top center;
  }

  .main-nav a {
    width: 100%;
    border-radius: 8px;
  }

  .header-phone {
    display: none;
  }

  .site-header.menu-open .main-nav {
    display: flex;
    animation: mobileMenuDown 0.2s ease;
  }
}

@keyframes mobileMenuDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 520px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 2rem 0 3.5rem;
  }

  .site-header-inner {
    gap: 0.7rem;
  }

  .main-nav a {
    font-size: 0.86rem;
    padding: 0.3rem 0.45rem;
  }

  .header-logo {
    width: 164px;
    height: 56px;
  }

  .hero-figure img,
  .service-photo-grid img,
  .gallery-slide img {
    min-height: 220px;
    height: 240px;
  }

  .gallery-slider {
    grid-template-columns: 36px 1fr 36px;
    gap: 0.45rem;
  }

  .gallery-control {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
