/* ===========================
   POLARIS – Main Stylesheet
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0d3b6e;
  --blue-700: #1565c0;
  --blue-500: #1e88e5;
  --blue-300: #64b5f6;
  --blue-50:  #e3f2fd;
  --gray-900: #1a1a2e;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white:    #ffffff;
  --radius:   10px;
  --shadow:   0 4px 24px rgba(21,101,192,.12);
  --shadow-lg:0 8px 40px rgba(21,101,192,.18);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-900); }
.btn--outline {
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--blue-700);
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled {
  border-color: var(--gray-200);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.header__logo img {
  height: 54px;
  width: auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  margin-left: 8px;
}
.nav__cta:hover { background: var(--blue-900); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(255,255,255,.06) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--white);
}
.hero__eyebrow {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-300);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1.1rem;
  opacity: .88;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   BADGES
   =========================== */
.badges {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.badges__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 32px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700);
  border-right: 1px solid var(--gray-200);
  flex: 1;
  min-width: 200px;
}
.badge:last-child { border-right: none; }
.badge svg { color: var(--blue-700); flex-shrink: 0; }

/* ===========================
   SECTIONS (shared)
   =========================== */
.section { padding: 88px 0; }
.section--alt { background: var(--gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
}

/* ===========================
   SERVICES GRID
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-700);
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.service-card p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===========================
   GALLERY
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ===========================
   ABOUT
   =========================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__text .section-title { text-align: left; }
.about__text p {
  color: var(--gray-500);
  margin-bottom: 18px;
}
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: .8rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 340px;
}
.about__icon {
  width: 80px;
  height: 80px;
  color: var(--blue-700);
  margin: 0 auto 24px;
}
.about__card-text {
  font-size: .92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 42px;
  height: 42px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-700);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item strong {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
  font-size: .9rem;
}
.contact-item p { font-size: .9rem; color: var(--gray-500); line-height: 1.55; }
.contact-item a {
  color: var(--blue-700);
  font-weight: 500;
  transition: var(--transition);
}
.contact-item a:hover { color: var(--blue-900); text-decoration: underline; }

.contact-map {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.contact-map iframe { width: 100%; height: 100%; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.75);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 24px 40px;
  flex-wrap: wrap;
}
.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  background: rgba(255,255,255,1);
  border-radius: 6px;
  padding: 4px 8px;
}
.footer__brand p { font-size: .85rem; line-height: 1.7; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .88rem;
}
.footer__links a { transition: var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 320px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    gap: 4px;
    z-index: 999;
  }
  .nav--open { display: flex; }
  .nav__link { padding: 12px 16px; font-size: 1rem; }
  .nav__cta { margin-left: 0; margin-top: 8px; justify-content: center; }

  .badges__inner { flex-direction: column; }
  .badge { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .badge:last-child { border-bottom: none; }

  .hero { padding: 110px 0 72px; }
  .section { padding: 64px 0; }

  .about__stats { flex-wrap: wrap; gap: 24px; }

  .footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
