/* 🎨 CSS Variables & Fonts */
:root {
  --primary: #00ff88;
  --primary-hover: #66ffd8;
  --dark: #0c1020;
  --white: #ffffff;
  --gray-100: #f9f9f9;
  --gray-200: #aaaaaa;
  --gray-800: #222222;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 2rem;
  --line-height-base: 1.6;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --transition-base: 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Font paths are adjusted assuming the CSS file is inside the /css folder. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF, U+0100-024F, U+1E00-1EFF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF, U+0100-024F, U+1E00-1EFF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'IBM Plex Sans', sans-serif; /* Global font */
  font-size: 16px;
  color: var(--dark);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: var(--line-height-base);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  /* Defined base padding for fixed header and banner on desktop */
  padding-top: 150px; 
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--spacing-sm);
}

h1, h2, h3, p, li {
  line-height: 1.6;
}

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

/* Header & Navigation */

/* SEO Banner / Top Bar */
.seo-banner {
  background: #0051cc;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1001; 
}

.seo-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space out elements */
  gap: 20px;
  padding: 10px 20px; /* Added padding */
}

.seo-banner-text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-banner-cta {
  background: #fff;
  color: #0051cc;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.seo-banner-cta:hover {
  transform: translateY(-1px);
}

/* Lang Switch */
.lang-switch {
  font-size: 14px;
  color: #fff;
  display: flex;
  gap: 10px;
  margin-left: auto; /* Pushed to the right on desktop */
}

.lang-switch a {
  color: var(--primary); /* #00ff88 */
  text-decoration: none;
}

.lang-switch a.active {
  color: var(--white);
  font-weight: bold;
}

/* Main Header Wrapper */
.header-wrapper {
  background: var(--dark); /* #0c1020 */
  padding: 20px 0;
  position: fixed;
  top: 40px; /* Height of the SEO Banner */
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.logo img {
  height: 70px;
  display: block;
}

nav#main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end; /* Push menu to the right */
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-base);
  padding: 8px 14px; 
  border-radius: var(--radius-sm); 
}

.menu li a:hover {
  color: var(--primary-hover);
  background: rgba(0, 102, 214, 0.1); 
}

.simple-menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 30px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    line-height: 1;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 80%; max-width: 280px;
  height: 100vh;
  background: #f8f8f8;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  z-index: 2000;
}

.mobile-nav.open { display: flex; }

.mobile-close-btn {
  align-self: flex-end;
  font-size: 24px;
  background: none;
  border: none;
  margin-bottom: 20px;
  cursor: pointer;
}

.mobile-link {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: url('../img/hero-bg.webp') center center/cover no-repeat;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* General Links and Buttons */
.btn {
  display: inline-block;
  background-color: #0066d6; 
  color: #ffffff;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 214, 0.3);
  border: 2px solid transparent;
}

.btn:hover {
  background-color: #004bb8; 
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 214, 0.4);
  text-decoration: none;
}

a {
  color: #0066d6;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #004bb8;
  text-decoration: none;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #00ff88;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Forms */
form {
  background: #f4f7fb;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 650px;
  margin: 0 auto;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

form input, form textarea, form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-family: inherit;
}

form button {
  margin-top: 20px;
  background: #0051cc;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: bold;
}

/* Footer Styles */
.main-footer {
    background: var(--dark);
    color: var(--gray-200);
    padding: var(--spacing-lg) 0;
}
.footer-inner {
    text-align: center;
}
.copyright-text {
    margin-bottom: 20px;
    font-size: 14px;
}
.copyright-text strong {
    color: var(--white);
}
.social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}
.social a {
    color: var(--gray-200);
    font-size: 20px;
    transition: color 0.3s;
}
.social a:hover {
    color: var(--primary);
}
.legal-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0;
    margin: 18px 0 0;
    font-size: 14px;
}
.legal-links a {
    color: var(--gray-200);
    text-decoration: none;
    transition: color 0.3s;
}
.legal-links a:hover {
    color: var(--white);
}
.phone-number {
    color: var(--gray-200);
}

/* CTA Section Styles */
.contact-cta {
    padding: 60px 0; 
    background: linear-gradient(135deg, #0066d6, #0084ff); 
    color: var(--white);
    text-align: center;
}
.contact-cta h2, .contact-cta h3 {
    font-size: 30px; 
    font-weight: 700; 
    margin-bottom: var(--spacing-md);
}
.contact-cta p {
    font-size: var(--font-size-lg); 
    margin-bottom: var(--spacing-lg); 
    max-width: 700px; 
    margin-inline:auto;
}
.contact-cta a.btn {
    margin-top: 0;
}


/* Media Queries - Critical adjustments are here */
@media (max-width: 992px) {
  .desktop-menu { display: none; }
  .simple-menu-toggle { display: block; } /* Mobile menu button is visible */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  p, li { font-size: 1rem; }
  .logo img {
      height: 50px; 
  }
}

@media (max-width: 768px) {
  /* Set a calculated padding for the body based on the header's new size/position on mobile */
  body { 
    /* SEO Banner height + adjusted Header height (approx 40px + 60px padding) */
    padding-top: 100px; 
  }
  
  /* Optimize the top section of the header for mobile size */
  .seo-banner-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px 15px;
  }
  .seo-banner-text {
    flex-direction: column;
    font-size: 14px;
    align-items: center;
  }
  .seo-banner-cta { width: 100%; }

  /* Lift the header wrapper to the top in mobile mode, as the top banner is now static in the flow */
  .seo-banner {
      position: static; /* Removes banner from fixed position */
  }

  .header-wrapper {
      /* Header is pulled up, as the fixed top banner is now removed. */
      position: static; /* Use static positioning to flow after the banner */
      top: auto;
      padding: 10px 0; /* Reduced padding */
  }

  /* Re-arrange all SEO banner elements */
  .lang-switch {
      margin-left: 0; /* Centered */
  }
}

@media (max-width: 576px) {
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  p { font-size: 14px; }
  .container { padding: 0 10px; }
}
