body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    background: linear-gradient(145deg, #6a5acd, #7b68ee);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.3);
}

.btn:hover {
    background: linear-gradient(145deg, #7b68ee, #6a5acd);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.4);
}

.btn.large {
    font-size: 1.2em;
    padding: 14px 24px;
}

.navbar {
    background-color: #37474f;
    color: white;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar .logo {
    font-size: 1.8em;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar .logo:hover {
    color: #ddd;
}

/* hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* mobile behavior */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
      /* on mobile, slide the dropdown up 5px to cover the nav’s bottom shadow */
    top: calc(100% - 5px);
    left: 0;
    right: 0;
    background: #37474f;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open {
    max-height: 300px; /* big enough for all links */
  }
}


.hero {
    background-color: #1a73e8;
    color: white;
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.9;
}

.services,
.features,
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 80px auto;
}

.service-card,
.feature-card,
.step {
    flex: 1 1 calc(33.333% - 30px);
    background: linear-gradient(to top right, #f3e8ff, #ece0ff);
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(80, 0, 120, 0.12);
    border: 1px solid #e2d8f7;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 280px;
    max-width: 400px;
}

.service-card:hover,
.feature-card:hover,
.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 32px rgba(80, 0, 120, 0.2);
    background: linear-gradient(to top right, #ebe0ff, #e3d4ff);
}

.service-card h3,
.feature-card h4,
.step h5 {
    margin-bottom: 18px;
    font-weight: 700;
    color: #3e2b5a;
    font-size: 1.2em;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #4b445e;
    font-size: 0.95em;
}

.service-card ul li:last-child {
    border-bottom: none;
}

.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 80vh;
    padding: 40px 20px;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6a5acd;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
}

.page-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.feature-card p,
.step p {
    line-height: 1.6;
    color: #5a536c;
    font-size: 0.96em;
    text-align: center;
}

.testimonials blockquote {
    background-color: #f9f9f9;
    padding: 30px;
    margin: 40px auto;
    border-left: 6px solid #1a73e8;
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 80%;
}

.testimonials blockquote br {
    display: none;
}


.flashes {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.flash-error {
  color: #e53935; /* red */
  background-color: #fdecea;
  border-left: 5px solid #e53935;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
}


.flash-success {
  color: #2e7d32; /* green */
  background-color: #e8f5e9;
  border-left: 5px solid #2e7d32;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
}

.footer {
    background-color: #37474f;
    color: white;
    text-align: center;
    padding: 80px 0 30px;
    margin-top: 0;
    font-size: 0.95em;
}

.footer a {
  color: #90caf9; /* soft light blue for dark bg */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ffffff; /* white on hover */
  text-decoration: none;
}

@media (max-width: 1024px) {
    .service-card,
    .feature-card,
    .step {
        flex: 0 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .navbar .logo {
        margin-bottom: 15px;
    }

    .services,
    .features,
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .feature-card,
    .step {
        flex: 1 1 100%;
    }

    .hero {
        padding: 120px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .btn.large {
        font-size: 1em;
        padding: 12px 20px;
    }

    .testimonials blockquote {
        font-size: 1em;
        padding: 20px;
    }
}

.grecaptcha-badge {
    bottom: 10px !important;
    left: 10px !important;
    right: auto !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none; /* prevents clicking while hidden */
}

body.loaded .grecaptcha-badge {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* visually grey‑out disabled button */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* input error border */
.contact-form .error {
  border-color: #e53935 !important;
}

/* inline field errors */
.field-error {
  color: #e53935;
  font-size: 0.85em;
  margin-top: 4px;
}

/* top‑of‑form messages */
.form-message {
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
}
.form-message.success { background: #e8f5e9; color: #2e7d32; }
.form-message.error   { background: #fdecea; color: #c62828; }

/* spinner */
.spinner {
  border: 2px solid #ccc;
  border-top: 2px solid #6a5acd;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  animation: spin 0.6s linear infinite;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* make the phone hint text a bit smaller/gray */
.form-group input[pattern] {
  font-style: italic;
}

/* ─────────────────────────────────────────
   5. BLOG PAGE HERO (fills viewport between nav & footer)
───────────────────────────────────────── */

/* Make the page a flex column so hero can flex to fill */
html, body {
  height: 100%;
  margin: 0;
}
body.blog-page {
  display: flex;
  flex-direction: column;
}

/* main content area flexes to push footer down */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero section: full‑width tech background */
.blog-hero {
  flex: 1;                                         /* ← fills the gap */
  background: url("/static/images/blog-bg.png")    /* your image */
              center/cover no-repeat;              /* center + cover */
  display: flex;                                   /* center content */
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;                              /* consistent rem units */
  color: #fff;                                     /* ensure contrast */
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Typography inside hero */
.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.blog-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Center all text inside the blog‐hero container */
.blog-hero .container {
  text-align: center;
}


/* ─────────────────────────────────────────
   6. FOOTER
───────────────────────────────────────── */

.footer {
  /* reset any margin so it hugs the bottom */
  margin: 0;
  /* comfortable padding but not huge */
  padding: 3rem 1rem;
  background-color: #37474f;
  color: white;
  text-align: center;
  font-size: 0.95em;
}
.footer a {
  color: #90caf9;
  text-decoration: underline;
}
