/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark: #003b79;
  --blue-primary: #104284;
  --blue-link: #0345bf;
  --teal: #29a3ad;
  --orange: #ff6600;
  --green: #1a993a;
  --gray-bg: #eeeeee;
  --gray-light: #f5f5f5;
  --text: #252525;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-link); text-decoration: none; }
a:hover { color: #044cd0; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: #b80d2e;
  color: var(--white);
}

.btn-lg { padding: 14px 40px; font-size: 18px; }

.btn-light {
  background: var(--blue-primary);
  color: var(--white);
  margin-top: 15px;
  padding: 8px 20px;
  font-size: 14px;
}
.btn-light:hover { background: #0a3570; color: var(--white); }

.btn-submit {
  background: #4585f4;
  color: var(--white);
  width: 100%;
  border-radius: 3px;
  padding: 10px 20px;
}
.btn-submit:hover { background: #3a75e0; color: var(--white); }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a { color: var(--white); margin-left: 20px; }
.top-bar a:hover { opacity: 0.85; }
.top-bar i { margin-right: 6px; }

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav a {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  padding: 10px 15px;
  display: block;
}
.nav a:hover, .nav a.active { color: var(--blue-link); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 150px 0 110px;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.hero .btn { margin-top: 30px; }

/* ===== Section Title Bar ===== */
.section-title-bar {
  background: #000;
  padding: 20px 0;
  text-align: center;
}

.section-title-bar h2 {
  color: #808080;
  font-size: 22px;
  font-weight: 600;
}

/* ===== Pricing ===== */
.section { padding: 50px 0; }

.pricing-section { padding: 23px 0 14px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--gray-bg);
  border: 1px solid #dad6d6;
  border-radius: 21px;
  padding: 30px 20px;
  text-align: center;
}

.pricing-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 36px;
  color: var(--teal);
  margin-bottom: 15px;
  line-height: 1.2;
}

.price-label { font-size: 12pt; font-weight: 700; margin-bottom: 5px; }
.price { font-size: 24pt; color: var(--orange); font-weight: 800; margin-bottom: 15px; }

.pricing-card p { font-size: 14px; margin-bottom: 15px; color: #000; }

.link-info { color: var(--blue-link); }

/* ===== Forms ===== */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: left;
}

/* ===== About ===== */
.about-section { background: var(--gray-bg); padding: 31px 0 50px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-label {
  color: #878787;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: 40px;
  letter-spacing: 5px;
  margin-bottom: 15px;
}

.about-text h3 {
  font-size: 16px;
  font-weight: 400;
  color: #878787;
  line-height: 26px;
  margin-bottom: 15px;
}

.about-image img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}

/* ===== Carousel ===== */
.carousel-section { padding: 25px 0; }

.carousel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px 60px;
}

.carousel-slide {
  display: none;
}
.carousel-slide.active { display: block; }

.carousel-slide h2 { font-size: 28px; margin-bottom: 15px; }
.carousel-slide p { max-width: 800px; margin: 0 auto; font-size: 16px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  opacity: 0.6;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}
.dot.active { background: var(--blue-primary); }

/* ===== Features ===== */
.features-section { background: var(--gray-light); padding-bottom: 100px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.feature i {
  font-size: 42px;
  color: var(--green);
  margin-bottom: 15px;
}

.feature h3 { font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.feature p { font-size: 15px; color: #555; }

/* ===== Services Flip Cards ===== */
.services-section {
  background: #3498db;
  padding: 70px 0 50px;
  color: var(--white);
}

.services-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  padding-top: 20px;
}

.flip-grid, .extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flip-card {
  perspective: 1000px;
  height: 378px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner { transform: rotateX(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  border-radius: 4px;
}

.flip-front {
  background: rgba(0,0,0,0.15);
  color: var(--white);
}

.flip-front i { font-size: 72px; margin-bottom: 10px; }
.flip-front h3 { font-size: 22px; margin-bottom: 10px; }
.flip-front p { font-size: 14px; }

.flip-back {
  background: var(--white);
  color: #3a414b;
  transform: rotateX(180deg);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Extra Section ===== */
.extra-section { padding: 40px 0; }

.extra-headings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e8eb;
}

.extra-headings h4 { font-size: 18px; font-weight: 600; }

.extra-grid {
  grid-template-columns: repeat(4, 1fr);
}

.flip-card-sm { height: 380px; }

.flip-front-red { background: #e74c3c !important; }
.flip-back-orange { background: #f39c12 !important; color: var(--white) !important; }

.feature-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.feature-inline i { font-size: 56px; color: var(--blue-primary); margin-bottom: 15px; }
.feature-inline h3 { font-size: 18px; margin-bottom: 10px; }
.feature-inline p { font-size: 14px; color: #555; text-align: left; }

/* ===== Stat ===== */
.stat-section {
  background: #000;
  padding: 8px 0;
  text-align: center;
}

.stat-section h2 {
  color: #808080;
  font-size: 18pt;
  font-weight: 600;
}

/* ===== Office Banner ===== */
.office-banner {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Cities ===== */
.cities-section {
  background: #000;
  padding: 15px 0 10px;
  text-align: center;
}

.cities-section p {
  color: var(--white);
  font-size: 14pt;
}

/* ===== Funding ===== */
.funding-section {
  padding: 50px 0;
  text-align: center;
}

.funding-section img {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-light);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-col hr {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 20px;
}

.footer-col p, .footer-col li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.footer-col i { margin-right: 8px; color: var(--blue-primary); width: 16px; }

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer-links { list-style: none; }
.footer-links a { color: #333; }
.footer-links a:hover { text-decoration: underline; }
.footer-links i { margin-right: 8px; }

.footer-form { margin-top: 15px; }

.footer-bottom {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* ===== Cookie Bar ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(50, 58, 69, 0.97);
  color: #f1f1f3;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  font-size: 12px;
  flex-wrap: wrap;
}

.cookie-bar.hidden { display: none; }

.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  background: #3b89c7;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.btn-cookie-decline {
  background: #771f1f;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .pricing-grid,
  .about-grid,
  .features-grid,
  .flip-grid,
  .extra-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .extra-headings { grid-template-columns: 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav.open { display: block; }

  .nav ul { flex-direction: column; }

  .menu-toggle { display: flex; }

  .offices-grid { grid-template-columns: 1fr; }

  .hero { padding: 100px 0 70px; background-attachment: scroll; }
  .hero h1 { font-size: 26px; }
  .hero-subtitle { font-size: 18px; }

  .flip-card { height: 320px; }

  .office-banner { background-attachment: scroll; }
}

@media (max-width: 575px) {
  .top-bar-right { display: flex; flex-direction: column; gap: 5px; }
  .top-bar a { margin-left: 0; }
}
