:root {
  --navy: #071d3a;
  --navy-2: #0d2d55;
  --sky: #47b7e8;
  --sky-soft: #e8f7ff;
  --cream: #fbf7ee;
  --gold: #c9a45c;
  --gold-soft: #f4ead2;
  --white: #ffffff;
  --ink: #132235;
  --muted: #687486;
  --line: rgba(7, 29, 58, 0.12);
  --shadow: 0 22px 55px rgba(7, 29, 58, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 6%;
  color: rgba(255, 255, 255, 0.86);
  background: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.topbar-links {
  display: flex;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px 6%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
}

.brand img {
  width: 150px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(7, 29, 58, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #334258;
  font-size: 17px;
  font-weight: 650;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--navy);
  background: var(--sky-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 28px rgba(7, 29, 58, 0.2);
}

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

.btn-sky {
  color: var(--navy);
  background: var(--sky);
}

.btn-outline {
  color: var(--navy);
  border-color: rgba(7, 29, 58, 0.22);
  background: var(--white);
}

.nav-actions .btn[aria-current="page"] {
  color: var(--white);
  background: var(--navy);
}

.nav-actions .btn {
  font-size: 16px;
  font-weight: 700;
}

.btn-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 42px;
  padding: 72px 6%;
  background:
    radial-gradient(circle at 80% 20%, rgba(71, 183, 232, 0.24), transparent 32%),
    linear-gradient(135deg, #fffdf8 0%, #edf8ff 100%);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-actions,
.cta-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-media {
  position: relative;
}

.hero-media img,
.page-hero img,
.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 280px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 35px rgba(7, 29, 58, 0.15);
}

.hero-badge strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.hero-badge span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 78px 6%;
}

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

.section-blue {
  background: var(--sky-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(7, 29, 58, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.collection-card {
  overflow: hidden;
  padding: 0;
}

.collection-card img,
.product-card img,
.blog-card img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collection-card div,
.product-card div,
.blog-card div {
  padding: 22px;
}

.card h3,
.product-card h3,
.blog-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.card p,
.product-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.price {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.icon-glasses {
  position: relative;
  display: inline-block;
  width: 74px;
  height: 34px;
  margin-bottom: 18px;
  border: 3px solid var(--navy);
  border-radius: 50%;
}

.icon-glasses::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 40px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--navy);
  border-radius: 50%;
}

.icon-glasses::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 33px;
  width: 10px;
  border-top: 3px solid var(--navy);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(71, 183, 232, 0.18), rgba(201, 164, 92, 0.16)),
    var(--navy);
  border-radius: var(--radius);
}

.cta-band h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 34px;
}

.cta-band p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.testimonial {
  display: grid;
  gap: 14px;
}

.stars {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.brand-pill {
  display: grid;
  min-height: 76px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 0.84fr);
  gap: 36px;
  align-items: center;
  padding: 64px 6%;
  background: linear-gradient(135deg, #fffdf8, #edf8ff);
  border-bottom: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.filter-btn.is-active {
  color: var(--white);
  background: var(--navy);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.detail-panel {
  position: sticky;
  top: 124px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gallery-card.wide {
  grid-column: span 2;
}

.form-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 850;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf8;
}

.form-card textarea,
.full-field {
  grid-column: 1 / -1;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 3px solid rgba(71, 183, 232, 0.22);
  border-color: var(--sky);
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 850;
}

.modal-open {
  overflow: hidden;
}

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.appointment-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 58, 0.62);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(7, 29, 58, 0.32);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}

.modal-header h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.15;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--sky-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-panel .form-card {
  margin: 0;
  padding: 22px 24px 24px;
  border: 0;
  box-shadow: none;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
}

.contact-list strong {
  color: var(--navy);
}

.map-box {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(7, 29, 58, 0.82), rgba(13, 45, 85, 0.72)),
    url("https://images.unsplash.com/photo-1574258495973-f010dfbb5371?auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  color: var(--white);
}

.site-footer {
  color: #dce8f5;
  background: var(--navy);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 6%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-cta h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 30px;
}

.footer-cta p,
.footer-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(150px, 0.8fr));
  gap: 34px;
  padding: 42px 6%;
}

.footer-logo img {
  width: 176px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.footer-column a:hover {
  color: var(--sky);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 6%;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .nav-actions {
    display: none;
  }

  .grid-4,
  .brand-strip,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .topbar {
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .topbar::-webkit-scrollbar {
    display: none;
  }

  .navbar {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 6% 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .nav-menu {
    display: flex;
  }

  .hero,
  .page-hero,
  .details-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .brand-strip,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel {
    position: static;
  }

  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .topbar,
  .navbar,
  .section,
  .hero,
  .page-hero,
  .footer-cta,
  .footer-main,
  .footer-bottom {
    padding-inline: 18px;
  }

  .brand img {
    width: 138px;
    height: 45px;
  }

  .hero,
  .page-hero {
    padding-block: 46px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .section {
    padding-block: 58px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .heading-row,
  .cta-band,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-3,
  .grid-4,
  .brand-strip,
  .gallery-grid,
  .form-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .gallery-card.wide {
    grid-column: auto;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .form-card .btn {
    width: 100%;
  }

  .hero-badge {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .appointment-modal {
    padding: 14px;
  }

  .modal-header,
  .modal-panel .form-card {
    padding-inline: 18px;
  }

  .modal-header h2 {
    font-size: 24px;
  }
}
