/* Biohax Website Clone - CSS */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --color-primary: #FF8900;
    --color-dark: #1E1E1E;
    --color-text: #282828;
    --color-white: #FFFFFF;
    --color-border: #DAD6E6;
    --font-inter: 'Inter', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-inter);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    z-index: 1100;
    padding: 0.6875rem 0;
}

@media (min-width: 900px) {
    .header {
        padding: 0.75rem 0;
    }
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    max-width: 85px;
}

.header__logo img {
    width: 100%;
    height: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.header__phone {
    color: var(--color-dark);
    font-size: 1rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5625rem 1.75rem;
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    text-align: center;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--color-text);
    background: var(--color-white);
    color: var(--color-text);
}

.btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn--dark {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn--dark:hover {
    opacity: 0.9;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-dark);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn--lg {
    padding: 0.75rem 1.75rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 66px;
}

@media (min-width: 900px) {
    .hero {
        padding-top: 9.8125rem;
        padding-bottom: 10.5rem;
    }
}

.hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__video {
    width: 100%;
    height: calc(100% + 4px);
    margin-top: -2px;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__logo {
    max-width: 652px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.hero__logo img {
    width: 100%;
    height: auto;
}

.hero__title {
    font-family: var(--font-poppins);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .hero__title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
}

.hero__subtitle {
    font-family: var(--font-poppins);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.9px;
    margin-bottom: 0.5rem;
}

.hero__description {
    color: var(--color-dark);
    line-height: 1.6875rem;
    opacity: 0.9;
    max-width: 300px;
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .hero__description {
        max-width: unset;
        margin-bottom: 2.125rem;
    }
}

/* Clinic Section */
.clinic {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
}

.clinic__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
    .clinic__header {
        margin-bottom: 4.25rem;
    }
}

.clinic__label {
    font-family: var(--font-poppins);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

@media (min-width: 900px) {
    .clinic__label {
        font-size: 1rem;
        letter-spacing: 0.8px;
        margin-bottom: 1rem;
    }
}

.clinic__title {
    font-family: var(--font-poppins);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 2.25rem;
    max-width: 870px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .clinic__title {
        font-size: 2.25rem;
        line-height: 3rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.service-card {
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card__title {
    font-family: var(--font-poppins);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.service-card__description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Features Section */
.features {
    padding: 4.5rem 0 2.5rem;
}

@media (min-width: 900px) {
    .features {
        padding: 4.375rem 0 5.4375rem;
    }
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    max-width: 1060px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.75rem;
    }
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature__icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .feature__icon-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 2.25rem;
    }
}

.feature__icon-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.feature__icon {
    position: relative;
    width: 72px;
    height: auto;
    z-index: 1;
}

@media (min-width: 900px) {
    .feature__icon {
        width: 92px;
    }
}

.feature__title {
    font-family: var(--font-poppins);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.25rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
    .feature__title {
        font-size: 1.625rem;
    }
}

.feature__description {
    font-family: var(--font-poppins);
    line-height: normal;
}

/* Testimonials Section */
.testimonials {
    padding: 3rem 0 5.5625rem;
    overflow: hidden;
}

@media (min-width: 900px) {
    .testimonials {
        padding: 5rem 0 9.25rem;
    }
}

.testimonials__title {
    font-family: var(--font-poppins);
    font-size: 2rem;
    font-weight: 500;
    line-height: 2.625rem;
    text-align: center;
    max-width: 300px;
    margin: 0 auto 1rem;
}

@media (min-width: 900px) {
    .testimonials__title {
        max-width: unset;
        margin-bottom: 4.1875rem;
    }
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .testimonials__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testimonial {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 1.375rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.testimonial__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.testimonial__stars {
    display: flex;
    gap: 2px;
    color: #faaf00;
}

.testimonial__star {
    width: 1.5rem;
    height: 1.5rem;
}

.testimonial__google {
    width: 24px;
    height: 24px;
}

.testimonial__text {
    color: var(--color-dark);
    text-align: center;
    line-height: normal;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.testimonial__link {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.testimonial__name {
    color: var(--color-dark);
    line-height: normal;
    opacity: 0.9;
}

/* FAQ Section */
.faq {
    position: relative;
    padding: 3.5625rem 0 1.5rem;
    overflow: hidden;
}

@media (min-width: 900px) {
    .faq {
        padding: 8.5625rem 0 5.625rem;
    }
}

.faq__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.faq__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.faq__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq__title {
    font-family: var(--font-poppins);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2.25rem;
}

@media (min-width: 900px) {
    .faq__title {
        margin-bottom: 3.875rem;
    }
}

.faq__list {
    max-width: 680px;
    width: 100%;
}

.faq__item {
    padding: 1.5rem 0 1.75rem;
    border-bottom: 1px solid rgba(30, 30, 30, 0.4);
}

.faq__item:first-of-type {
    padding-top: 0;
}

.faq__item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq__question-text {
    font-family: var(--font-poppins);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 2rem;
    letter-spacing: -0.18px;
    flex: 1;
    margin-right: 1rem;
}

@media (min-width: 900px) {
    .faq__question-text {
        font-size: 1.3125rem;
        letter-spacing: -0.21px;
    }
}

.faq__toggle {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq__item.active .faq__toggle {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 60px;
}

.faq__item.active .faq__answer {
    max-height: 200px;
    margin-top: 1rem;
}

/* Subscribe Section */
.subscribe {
    padding-top: 7.0625rem;
}

@media (min-width: 900px) {
    .subscribe {
        padding-top: 8.6875rem;
    }
}

.subscribe__card {
    border-radius: 12px;
    background: linear-gradient(181deg, rgba(0, 0, 0, 0.9) 5.76%, rgba(30, 30, 30, 0.32) 279.62%);
    padding: 3.5rem 0.75rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 900px) {
    .subscribe__card {
        padding: 4rem 2.5rem 5rem;
    }
}

.subscribe__title {
    color: var(--color-white);
    font-family: var(--font-poppins);
    font-size: 2rem;
    font-weight: 500;
    line-height: 2.625rem;
    max-width: 630px;
    opacity: 0.9;
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .subscribe__title {
        line-height: normal;
        margin-bottom: 1.5rem;
    }
}

.subscribe__description {
    color: var(--color-white);
    line-height: 1.6875rem;
    max-width: 630px;
    opacity: 0.9;
    margin-bottom: 2.75rem;
}

@media (max-width: 899px) {
    .subscribe__description {
        margin-bottom: 5.5rem;
    }
}

.subscribe__form {
    border-radius: 46px;
    background: #000000;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 523px;
}

.subscribe__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 1rem;
    padding: 4px 8px;
}

.subscribe__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 599px) {
    .subscribe__input {
        font-size: 0.875rem;
    }
}

/* Footer */
.footer {
    background: var(--color-dark);
    padding-top: 3.375rem;
    overflow: hidden;
}

@media (min-width: 900px) {
    .footer {
        padding-top: 8.3125rem;
    }
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__title {
    color: var(--color-white);
    font-family: var(--font-poppins);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3.375rem;
    line-height: 2.625rem;
}

@media (min-width: 900px) {
    .footer__title {
        line-height: normal;
        margin-bottom: 4.75rem;
    }
}

.footer__form {
    max-width: 630px;
    width: 100%;
}

.footer__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .footer__form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer__input-group {
    display: flex;
    flex-direction: column;
}

.footer__input-group.full-width {
    grid-column: 1 / -1;
}

.footer__label {
    color: var(--color-white);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer__input,
.footer__textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 1rem;
    color: var(--color-white);
    font-family: var(--font-inter);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer__input:focus,
.footer__textarea:focus {
    border-color: var(--color-white);
}

.footer__input::placeholder,
.footer__textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer__textarea {
    min-height: 120px;
    resize: vertical;
}

.footer__submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-white);
    color: var(--color-text);
    border: none;
    border-radius: 100px;
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer__submit:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.footer__bottom {
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer__links {
    margin-bottom: 1rem;
}

.footer__link {
    color: var(--color-white);
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 1;
}

.footer__copyright {
    color: var(--color-white);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Helpers */
@media (max-width: 599px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 600px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Honeypot spam protection */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
  }
  /* Honeypot spam protection */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
  }
  
  /* Inline form messages */
  .form-msg {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.3;
    padding: 10px 12px;
    border-radius: 10px;
    display: none;
  }
  
  .form-msg.is-success {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #0f5132;
  }
  
  .form-msg.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #7f1d1d;
  }
  
  .form-msg--footer {
    margin-top: 14px;
  }
  
  button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  /* =========================
   FIXES: spacing + consent
   ========================= */

/* Give breathing room between subscribe section and footer */
.subscribe-section{
    padding-bottom: 90px;
  }
  
  .footer{
    padding-top: 90px;
  }
  
  /* If your footer already has padding, keep it, but ensure separation */
  .subscribe-section + .footer{
    margin-top: 80px;
  }
  
  /* ---- SMS consent visibility + layout ---- */
  .footer__consent{
    margin: 18px 0 18px;
    max-width: 720px;
  }
  
  .footer__consent-label{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
  }
  
  .footer__consent-checkbox{
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: #ffffff; /* makes checkbox visible on dark bg */
  }
  
  .footer__consent a{
    color: rgba(255,255,255,0.95);
    text-decoration: underline;
  }
  
  /* Ensure the submit button isn't overlapping the consent */
  .footer__submit{
    margin-top: 18px;
  }
  