/* ========================================
   Self-hosted Fonts
   ======================================== */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/raleway.woff2') format('woff2');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/sora.woff2') format('woff2');
}

/* ========================================
   CSS Variables (inlined from variables.css)
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #0a8fc9;
  --color-secondary: #e3f2f6;
  --color-accent: #0036ff;
  --color-accent-end: #005cce;
  --color-link-hover: #000088;

  /* Text Colors */
  --color-heading: #151313;
  --color-body: #565656;
  --color-white: #ffffff;

  /* Background Colors */
  --color-bg: #ffffff;
  --color-bg-light: #f0f2f4;
  --color-bg-dark: #151313;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  --color-slider-overlay: rgba(0, 24, 55, 0.4);

  /* UI Colors */
  --color-border: #dbdbdb;
  --color-muted: #cacaca;

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Raleway', sans-serif;

  /* Layout */
  --header-height: 80px;
  --container-max: 1140px;
  --radius: 30px;
}

/* ========================================
   1. Reset
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-heading); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-link-hover); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Focus indicators for keyboard navigation */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   2. Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}
h1 { font-size: 46px; letter-spacing: -1px; }
h2 { font-size: 40px; }
h3 { font-size: 36px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
p + p { margin-top: 1em; }

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.section-desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-body);
}

/* ========================================
   3. Layout
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

/* ========================================
   4. Buttons
   ======================================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 25px;
  text-transform: capitalize;
  padding: 14px 34px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   5. Header
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background 0.3s, box-shadow 0.3s;
}

.page-home .site-header {
  background: transparent;
}

.page-home .site-header.scrolled,
.page-sub .site-header {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: calc(var(--header-height) + 30px);
  transition: height 0.3s;
}

.site-header.scrolled .header-inner {
  height: var(--header-height);
}

.logo {
  display: block;
  width: 129px;
  height: 50px;
  background: url('/images/logo-dark.png') no-repeat center / contain;
}

.page-home .site-header:not(.scrolled) .logo {
  background-image: url('/images/logo.png');
}

.header-phone {
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.header-phone-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.header-phone a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-heading);
}

.page-home .site-header:not(.scrolled) .header-phone a,
.page-home .site-header:not(.scrolled) .header-phone-label {
  color: var(--color-white);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav li {
  position: relative;
}

.main-nav li + li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-muted);
  margin: 0 14px;
  vertical-align: middle;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.25px;
  padding: 8px 0;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

.page-home .site-header:not(.scrolled) .main-nav a {
  color: var(--color-white);
}
.page-home .site-header:not(.scrolled) .main-nav a:hover,
.page-home .site-header:not(.scrolled) .main-nav a.active {
  color: var(--color-secondary);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-heading);
  transition: transform 0.3s, opacity 0.3s;
}

.page-home .site-header:not(.scrolled) .nav-toggle span {
  background: var(--color-white);
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   6. Title Bar (sub-pages)
   ======================================== */
.title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding-top: calc(var(--header-height) + 30px);
  background: var(--color-bg-dark) url('/images/titlebar-bg.webp') center center / cover no-repeat;
  text-align: center;
}

.title-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-overlay);
}

.title-bar h1 {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: 60px;
}

/* ========================================
   7. Hero Slider (homepage)
   ======================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 18s infinite;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-slider-overlay);
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }

@keyframes slideFade {
  0%      { opacity: 0; }
  5%      { opacity: 1; }
  33.33%  { opacity: 1; }
  38.33%  { opacity: 0; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; opacity: 0; }
  .slide:first-child { opacity: 1; }
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: var(--color-white);
}

.slide-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.slide-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 10px;
  color: var(--color-white);
}

.slide-desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  opacity: 0.85;
}

/* ========================================
   8. Icon Heading Boxes
   ======================================== */
.icon-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.icon-box .icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
}

.icon-box .icon svg {
  width: 28px;
  height: 28px;
}

.icon-box h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.icon-box p {
  font-size: 15px;
  line-height: 1.6;
}

/* Large icon heading (homepage section headers) */
.icon-heading-large {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-heading-large .icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.icon-heading-large .icon svg {
  width: 40px;
  height: 40px;
}

.icon-heading-large span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
}

/* ========================================
   9. Homepage Sections
   ======================================== */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

/* ========================================
   10. Pricing Table (Our Plans)
   ======================================== */
.pricing-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--color-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: end;
}

.pricing-card {
  padding: 40px 20px;
  text-align: center;
  background: var(--color-muted);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:nth-child(odd) {
  background: var(--color-bg-light);
}

.pricing-card.featured {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(10, 143, 201, 0.3);
  position: relative;
  z-index: 1;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .price-sub {
  color: var(--color-white);
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.price {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.price-period {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
}

.price-sub {
  font-size: 14px;
  color: var(--color-body);
  margin: 8px 0 24px;
}

.pricing-features {
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-card.featured .pricing-features li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pricing-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.pricing-card.featured .pricing-features li svg {
  color: var(--color-white);
}

/* ========================================
   11. FAQ Accordion
   ======================================== */
.faq-section {
  padding: 100px 0;
}

.faq-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item[open] summary {
  color: var(--color-primary);
}

.faq-item .faq-answer {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

/* ========================================
   12. Contact Page
   ======================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 100px 0;
}

.contact-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
}

.contact-card .icon svg {
  width: 30px;
  height: 30px;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 15px;
}

.contact-card a {
  color: var(--color-primary);
}
.contact-card a:hover {
  color: var(--color-accent);
}

/* Get in touch section */
.contact-info-section {
  padding: 0 0 100px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}

.contact-info-left .section-title {
  margin-bottom: 20px;
}

.contact-info-right {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 50px;
}

.contact-info-right h3 {
  margin-bottom: 20px;
}

.contact-info-right p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.contact-info-right a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Google Maps */
.map-section {
  width: 100%;
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ========================================
   13. Footer
   ======================================== */
.site-footer {
  background: var(--color-bg-dark) url('/images/footer-bg.png') left bottom no-repeat;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer-logo {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-col p {
  font-size: 15px;
  margin-bottom: 6px;
}

.footer-social {
  margin-top: 16px;
}

.footer-social img {
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-social img:hover {
  opacity: 1;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* ========================================
   14. Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
}

/* ========================================
   15. Scroll Animations
   ======================================== */
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   16. Responsive
   ======================================== */

/* Laptop */
@media (max-width: 1366px) {
  .about-grid { gap: 40px; }
}

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  .section-title { font-size: 40px; letter-spacing: -1px; }
  .title-bar h1 { font-size: 44px; }
  .slide-title { font-size: 52px; }

  .header-inner { height: var(--header-height); }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav li + li::before { display: none; }

  .main-nav a {
    display: block;
    padding: 12px 0;
    color: var(--color-heading);
    font-size: 18px;
  }

  /* Force "white/scrolled" look on homepage at mobile sizes */
  .page-home .site-header {
    background: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  }

  .page-home .site-header:not(.scrolled) .logo {
    background-image: url('/images/logo-dark.png');
  }

  .page-home .site-header:not(.scrolled) .nav-toggle span {
    background: var(--color-heading);
  }

  .page-home .site-header:not(.scrolled) .main-nav a {
    color: var(--color-heading);
  }

  .page-home .site-header:not(.scrolled) .main-nav a:hover,
  .page-home .site-header:not(.scrolled) .main-nav a.active {
    color: var(--color-accent);
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { grid-column: 1 / -1; }

  .faq-grid { grid-template-columns: 1fr; }

  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }

  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Mobile */
@media (max-width: 767px) {
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  .section-title { font-size: 32px; letter-spacing: -0.5px; }
  .title-bar { min-height: 220px; }
  .title-bar h1 { font-size: 36px; }
  .slide-title { font-size: 36px; }
  .slide-subtitle { font-size: 16px; }

  .section-padding { padding: 60px 0; }
  .about-section { padding: 60px 0; }
  .faq-section { padding: 60px 0; }

  .about-features { grid-template-columns: 1fr; }

  .pricing-section { padding: 40px 0 60px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card.featured { transform: none; }

  .contact-cards { grid-template-columns: 1fr; padding: 60px 0; }
  .contact-info-section { padding: 0 0 60px; }
  .contact-info-right { padding: 30px; }

  .map-section iframe { height: 300px; }

  .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
}
