@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Open+Sans:wght@400;600&display=swap');

:root {
  --bg:          #FAFAF8;
  --bg-alt:      #F3F0E8;
  --card-bg:     #FFFFFF;
  --accent:      #C0272D;
  --accent-dark: #991F24;
  --navy:        #1A2744;
  --text:        #1C1C1C;
  --text-muted:  #606060;
  --border:      #E2DDD6;
  --footer-bg:   #1A2744;
  --footer-text: #CCCCCC;
  --success:     #2D6A4F;
  --success-bg:  #D4EDDA;
  --success-bdr: #C3E6CB;

  --font-h:  'Lato', sans-serif;
  --font-b:  'Open Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card:  0 2px 10px rgba(0,0,0,.05);
  --shadow-hover: 0 6px 22px rgba(192,39,45,.10);
  --shadow-btn:   0 4px 14px rgba(192,39,45,.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); font-size: 17px; color: var(--text); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-h); }
h1 { font-weight: 900; font-size: clamp(34px, 5vw, 48px); color: var(--navy); line-height: 1.15; }
h2 { font-weight: 700; font-size: clamp(26px, 3.5vw, 34px); color: var(--accent); line-height: 1.25; }
h3 { font-weight: 600; font-size: 22px; color: var(--navy); }
p  { font-size: 17px; color: var(--text); line-height: 1.75; }

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

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #FFF;
  font-family: var(--font-b); font-size: 16px; font-weight: 600;
  padding: 15px 38px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all .2s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); text-decoration: none; color: #FFF; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--accent);
  font-family: var(--font-b); font-size: 16px; font-weight: 600;
  padding: 14px 36px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent); cursor: pointer;
  transition: all .2s ease; text-decoration: none;
}
.btn-secondary:hover { background: var(--accent); color: #FFF; text-decoration: none; }

.gp-badge { height: 56px; width: auto; }

#site-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFF; box-shadow: 0 1px 6px rgba(0,0,0,.07);
  height: 68px; display: flex; align-items: center;
}
#site-header .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-weight: 900; font-size: 19px;
  color: var(--navy); text-decoration: none;
}
.header-logo img { width: 32px; height: 32px; border-radius: 6px; }
.header-logo:hover { text-decoration: none; color: var(--navy); }

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-family: var(--font-b); font-size: 15px; color: var(--navy);
  text-decoration: none; transition: color .2s;
}
.header-nav a:hover { color: var(--accent); text-decoration: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all .3s;
}

.mobile-drawer {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #FFF; box-shadow: 0 4px 20px rgba(0,0,0,.12);
  z-index: 99; flex-direction: column; padding: 24px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: var(--font-b); font-size: 16px; color: var(--navy);
  padding: 12px 0; border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--accent); }

#hero {
  min-height: 100vh;
  background: url('../images/hero-bg.webp') center center / cover no-repeat;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,39,68,.65) 0%, rgba(26,39,68,.55) 50%, rgba(250,250,248,1) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 780px; padding: 0 24px;
}
.hero-content h1 { color: #FFF; font-size: clamp(34px, 5vw, 52px); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-content .hero-sub {
  font-size: 18px; color: rgba(255,255,255,.9); margin: 20px 0 40px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

#about { background: #FFF; padding: 96px 0; }
.about-grid {
  display: grid; grid-template-columns: 55% 1fr; gap: 64px; align-items: center;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; color: var(--text-muted); font-size: 17px; }
.about-text p:last-child { margin-bottom: 0; }
.about-img img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  width: 100%;
}

#features { background: var(--bg-alt); padding: 96px 0; }
.section-heading { text-align: center; margin-bottom: 56px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-icon { margin-bottom: 16px; }
.feature-icon i { font-size: 44px; color: var(--accent); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

#gallery { background: #FFF; padding: 96px 0; }
.gallery-caption { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

.swiper { padding-bottom: 48px !important; }
.swiper-slide { border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.swiper-slide img { width: 100%; height: 360px; object-fit: cover; cursor: zoom-in; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }
.swiper-button-prev, .swiper-button-next { color: var(--accent) !important; }

.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.88); align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: fixed; top: 24px; right: 32px;
  font-size: 36px; color: #FFF; cursor: pointer; line-height: 1;
  background: none; border: none;
}

#download-cta { background: var(--bg-alt); padding: 96px 0; }
.download-inner { text-align: center; max-width: 740px; margin: 0 auto; padding: 0 24px; }
.download-inner h2 { margin-bottom: 16px; }
.download-inner p { color: var(--text-muted); margin-bottom: 40px; }
.download-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

#newsletter { background: #FFF; padding: 96px 0; }
.newsletter-inner { max-width: 540px; margin: 0 auto; text-align: center; padding: 0 24px; }
.newsletter-inner h2 { margin-bottom: 16px; }
.newsletter-inner > p { color: var(--text-muted); margin-bottom: 36px; }

.nl-form { display: flex; flex-direction: column; gap: 14px; }
.nl-input-wrap { position: relative; }
.nl-input {
  width: 100%; height: 52px; padding: 0 16px;
  font-family: var(--font-b); font-size: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #FFF; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.nl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,39,45,.12); }
.nl-input.error { border-color: var(--accent); }
.field-error { font-size: 13px; color: var(--accent); text-align: left; margin-top: 4px; display: none; }
.field-error.show { display: block; }

.checkbox-wrap { display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.custom-checkbox { display: none; }
.checkbox-label {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-muted); cursor: pointer;
}
.checkbox-box {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  border: 1.5px solid #CCCCCC; border-radius: 4px; background: #FFF;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.custom-checkbox:checked + .checkbox-label .checkbox-box {
  background: var(--accent); border-color: var(--accent);
}
.custom-checkbox:checked + .checkbox-label .checkbox-box::after {
  content: ''; display: block; width: 5px; height: 9px;
  border: 2px solid #FFF; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checkbox-label a { color: var(--accent); text-decoration: underline; }

.btn-subscribe {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #FFF;
  font-family: var(--font-b); font-size: 16px; font-weight: 600;
  padding: 14px 32px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; box-shadow: var(--shadow-btn);
  transition: all .2s ease;
}
.btn-subscribe:hover { background: var(--accent-dark); transform: translateY(-2px); }

.success-block {
  display: none; background: var(--success-bg);
  border: 1px solid var(--success-bdr); color: var(--success);
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-size: 15px; text-align: center;
}
.success-block.show { display: block; }

#site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.footer-brand-name {
  font-family: var(--font-h); font-weight: 900; font-size: 18px;
  color: #FFF; margin-bottom: 10px;
}
.footer-tagline { font-size: 14px; color: var(--footer-text); line-height: 1.6; }
.footer-col h4 { color: #FFF; font-family: var(--font-h); font-size: 15px; font-weight: 700; margin-bottom: 18px; letter-spacing: .5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--footer-text); transition: color .2s; }
.footer-col ul a:hover { color: #FFF; text-decoration: none; }
.footer-address { font-size: 14px; line-height: 1.8; }
.footer-address a { color: var(--footer-text); }
.footer-address a:hover { color: #FFF; }
.footer-bar {
  border-top: 1px solid #2E3F6E; margin-top: 48px;
  padding: 24px 0; font-size: 13px; color: var(--footer-text); line-height: 1.6;
}

.legal-content { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.legal-content h1 { margin-bottom: 8px; }
.date-line { font-size: 14px; color: var(--text-muted); margin-bottom: 48px; }
.legal-content h2 { font-size: 22px; color: var(--navy); margin: 40px 0 12px; }
.legal-content p { margin-bottom: 16px; color: var(--text-muted); }
.legal-content ul { list-style: disc; padding-left: 20px; color: var(--text-muted); }
.legal-content ul li { margin-bottom: 6px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-input {
  width: 100%; padding: 13px 16px;
  font-family: var(--font-b); font-size: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #FFF; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,39,45,.12); }
textarea.form-input { resize: vertical; min-height: 140px; }

@media (max-width: 1279px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  #site-header { height: 56px; }
  .mobile-drawer { top: 56px; }
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  body { font-size: 15px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }

  #about, #features, #gallery, #download-cta, #newsletter { padding: 72px 0; }
  #site-footer { padding: 48px 0 0; }

  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero-btns, .download-btns {
    flex-direction: column; align-items: center;
  }
  .btn-primary, .btn-secondary { width: 100%; max-width: 380px; justify-content: center; }
  .gp-badge { height: 48px; max-width: 380px; width: 100%; }

  .swiper-slide img { height: 260px; }
}
@media (max-width: 479px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 30px; }
}
