/* =========================================================
   GPS MUSCAT MARKETING SITE
   Cleaned stylesheet
   Structure:
   1. Font import
   2. Design tokens
   3. Base / reset
   4. Global layout
   5. Header / navigation / logo
   6. Hero section
   7. Shared components
   8. Promo section
   9. Content sections
   10. Footer
   11. Responsive breakpoints
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* =========================================================
   1. DESIGN TOKENS
   Global color, spacing, radius, and motion variables.
   Update these first if you want to change the overall style.
   ========================================================= */
:root {
  --bg: #edf3fb;
  --bg-strong: #dbe8fb;

  --surface: #ffffff;
  --surface-alt: #e7f0ff;
  --surface-soft: #f4f8ff;
  --surface-brand: #d6e5ff;
  --surface-brand-strong: #c1d8ff;
  --surface-deep: #0b3d91;
  --surface-deeper: #082e70;

  --text: #102033;
  --text-inverse: #f7fbff;
  --muted: #52667d;
  --muted-inverse: rgba(247, 251, 255, 0.76);

  --primary: #0f52b8;
  --primary-bright: #1f6fff;
  --primary-dark: #0b3d91;
  --primary-soft: #e4eeff;

  --accent-line: rgba(15, 82, 184, 0.18);
  --border: rgba(15, 82, 184, 0.14);
  --border-strong: rgba(15, 82, 184, 0.22);

  --shadow-sm: 0 10px 26px rgba(11, 61, 145, 0.08);
  --shadow-md: 0 18px 44px rgba(11, 61, 145, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --max-width: 1160px;
  --transition: 180ms ease;
}

/* =========================================================
   2. BASE / RESET
   Keeps layout predictable across browsers.
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top right,
      rgba(31, 111, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, var(--bg) 0%, #f7faff 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

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

ul,
p {
  margin: 0;
}

/* =========================================================
   3. GLOBAL LAYOUT
   Shared containers and common text limits.
   ========================================================= */
.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: 84px 0;
}

.alt {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #edf4ff 100%);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  max-width: 11ch;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-text,
.section p,
.card p,
.feature p,
.contact-card p,
.footer-block p,
.promo-content p {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.05rem;
}

.section p,
.card p,
.feature p,
.contact-card p,
.footer-block p,
.promo-content p {
  max-width: 62ch;
}

.eyebrow,
.section-label,
.promo-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 82, 184, 0.1);
  border: 1px solid rgba(15, 82, 184, 0.14);
  border-radius: 999px;
}

/* =========================================================
   4. HEADER / NAVIGATION / LOGO
   Sticky top navigation with responsive logo handling.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237, 243, 251, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 180px;
  height: 44px;
  flex-shrink: 0;
  overflow: visible;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: 100%;
}

.logo-image {
  display: block;
  width: auto;
  height: 100%;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-block a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav a:hover,
.footer-block a:hover,
.footer-bottom a:hover,
.contact-card a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(15, 82, 184, 0.1);
  color: var(--primary);
}

/* =========================================================
   5. HERO SECTION
   Primary headline, supporting text, CTA buttons, and side card.
   ========================================================= */
.hero {
  padding: 104px 0 84px;
  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(31, 111, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(180deg, var(--bg-strong) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  max-width: 700px;
}

.hero-side {
  display: grid;
  gap: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(235, 244, 255, 0.95) 100%
  );
}

.hero-card h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 8px;
}

/* =========================================================
   6. SHARED COMPONENTS
   Buttons, cards, grids, and image placeholders.
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(
    180deg,
    var(--primary-bright) 0%,
    var(--primary) 100%
  );
  box-shadow: 0 12px 28px rgba(15, 82, 184, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #145fd4 0%, var(--primary-dark) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border-strong);
  color: var(--primary-dark);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(15, 82, 184, 0.28);
  background: rgba(15, 82, 184, 0.06);
  color: var(--primary);
}

.hero-card,
.card,
.feature,
.contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.card:hover,
.feature:hover,
.contact-card:hover,
.hero-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(15, 82, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.card-grid,
.feature-grid,
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

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

.section-visual {
  margin-top: 28px;
}

.image-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
  border: 1px dashed rgba(15, 82, 184, 0.22);
  border-radius: var(--radius-md);
}

.image-placeholder span {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.image-placeholder small {
  max-width: 28ch;
  line-height: 1.5;
}

.image-placeholder-hero {
  min-height: 320px;
}

.image-placeholder-wide {
  min-height: 240px;
}

.image-placeholder-card {
  min-height: 168px;
  margin-bottom: 18px;
}

/* =========================================================
   7. PROMO SECTION
   Featured promotions carousel container and controls.
   ========================================================= */
.promo-section {
  padding-top: 0;
}

.promo-shell {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at top right,
      rgba(31, 111, 255, 0.14),
      transparent 26%
    ),
    linear-gradient(180deg, #dfeafb 0%, #edf4ff 100%);
  box-shadow: var(--shadow-sm);
}

.promo-shell::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(31, 111, 255, 0.12),
    transparent 68%
  );
  pointer-events: none;
}

.promo-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.promo-header-copy {
  max-width: 620px;
}

.promo-header h2 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.promo-controls {
  display: flex;
  gap: 10px;
  align-self: center;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 82, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  backdrop-filter: blur(8px);
}

.promo-btn:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(15, 82, 184, 0.18);
  transform: translateY(-1px);
}

.promo-carousel {
  position: relative;
  z-index: 1;
}

.promo-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: calc(var(--radius-lg) - 4px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.promo-slide.is-active {
  display: grid;
}

.promo-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 4px 0;
}

.promo-content h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.promo-content p {
  max-width: 42ch;
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.image-placeholder-promo {
  min-height: 250px;
  height: 100%;
  background: linear-gradient(180deg, #f6f9ff 0%, #e7f0ff 100%);
  border: 1px dashed rgba(15, 82, 184, 0.18);
}

/* =========================================================
   8. CONTENT SECTION VARIATIONS
   Minor visual differences for cards used below the hero.
   ========================================================= */
.feature {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(239, 246, 255, 0.9) 100%
  );
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(235, 243, 255, 0.94) 100%
  );
}

.contact-card a {
  color: var(--primary);
  font-weight: 700;
}

/* =========================================================
   9. FOOTER
   Footer layout, text tones, and link behavior.
   ========================================================= */
.site-footer {
  padding: 32px 0 28px;
  background: linear-gradient(
    180deg,
    var(--surface-deep) 0%,
    var(--surface-deeper) 100%
  );
  color: var(--text-inverse);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-block p,
.site-footer .footer-bottom,
.site-footer .footer-block a,
.site-footer .footer-bottom a {
  color: var(--muted-inverse);
}

.site-footer .footer-block a:hover,
.site-footer .footer-bottom a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  padding-bottom: 24px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-block h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-block p,
.footer-block a {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom a {
  font-weight: 600;
}

/* =========================================================
   10. ACCESSIBILITY / FOCUS STATES
   Visible keyboard focus for interactive controls.
   ========================================================= */
.site-nav a:focus-visible,
.footer-block a:focus-visible,
.footer-bottom a:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.promo-btn:focus-visible,
.contact-card a:focus-visible {
  outline: 2px solid rgba(15, 82, 184, 0.45);
  outline-offset: 3px;
}

/* =========================================================
   11. RESPONSIVE: TABLET
   Two-column content reduction and stacked promo layout.
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-side {
    max-width: 720px;
  }

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

  .promo-slide {
    grid-template-columns: 1fr;
  }

  .image-placeholder-promo {
    min-height: 220px;
  }
}

/* =========================================================
   12. RESPONSIVE: MOBILE
   Mobile nav, smaller logo, stacked buttons, single-column layout.
   ========================================================= */
@media (max-width: 860px) {
  body {
    line-height: 1.58;
  }

  .nav {
    min-height: 68px;
  }

  .logo {
    min-width: 150px;
    height: 38px;
  }

  .logo-image {
    max-width: 150px;
    height: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 6px;
    background: rgba(248, 251, 255, 0.98);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
  }

  .nav-list a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-list a:hover {
    background: rgba(15, 82, 184, 0.08);
  }

  .hero,
  .section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .card-grid,
  .feature-grid,
  .application-grid,
  .contact-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .promo-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
  }

  .promo-header h2 {
    max-width: none;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  .promo-controls {
    justify-content: flex-start;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1.05;
    max-width: 12ch;
  }

  h2 {
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 6vw, 2.15rem);
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero-text,
  .section p,
  .card p,
  .feature p,
  .contact-card p,
  .promo-content p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn,
  .promo-content .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-card,
  .card,
  .feature,
  .contact-card,
  .promo-slide,
  .promo-shell {
    padding: 22px;
  }

  .hero-side {
    gap: 16px;
  }

  .image-placeholder-hero {
    min-height: 230px;
  }

  .image-placeholder-wide,
  .image-placeholder-promo {
    min-height: 190px;
  }

  .image-placeholder-card {
    min-height: 145px;
    margin-bottom: 14px;
  }

  .promo-btn {
    width: 48px;
    height: 48px;
  }

  .contact-card a {
    display: inline-block;
    padding: 6px 0;
  }

  .contact-card p {
    margin: 0 0 6px;
  }

  .footer-grid {
    gap: 20px;
  }

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

/* =========================================================
   13. RESPONSIVE: SMALL MOBILE
   Tightest spacing and smallest logo scale.
   ========================================================= */
@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .nav {
    min-height: 64px;
  }

  .logo {
    min-width: 126px;
    height: 32px;
  }

  .logo-image {
    max-width: 126px;
    height: 100%;
  }

  .hero,
  .section {
    padding: 44px 0;
  }

  .hero-card,
  .card,
  .feature,
  .contact-card,
  .promo-slide,
  .promo-shell {
    padding: 20px;
    border-radius: var(--radius-sm);
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .image-placeholder {
    padding: 22px;
    border-radius: var(--radius-sm);
  }

  .eyebrow,
  .section-label,
  .promo-tag {
    margin-bottom: 12px;
    padding: 5px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .promo-content h3 {
    font-size: 1.32rem;
  }
}
