/* Amita Wellness Hub brand layer on top of the template CSS (kept small so the layout stays identical). */

/* Palette from the logo: deep teal, teal, soft teal, sand/gold ring. The template's purples map onto these. */
:root {
    --e-global-color-secondary: #1b5e6b;
    --e-global-color-desaturated-magenta: #12333f;
    --e-global-color-very-dark-desaturated-magenta: #134252;
    --e-global-color-mostly-desaturated-magenta: #5f9aa3;
    --e-global-color-soft-orange: #e3cfa4;
    --e-global-color-accent: #12333f;
}
.sub-banner-section .banner-section .btn_wrapper { background-color: #1b5e6b; }

/* Horizontal logo is wider than the template's square logo. */
.navbar-brand img { max-width: 230px; height: auto; }
.footer_logo img { max-width: 220px; }

.awh-alert { max-width: 1140px; margin: 20px auto 0; }
.awh-hp { position: absolute; left: -9999px; }
.page-content, .builder-generic { padding: 60px 0; }
.page-content img, .builder-generic img { max-width: 100%; height: auto; }
.page-content h2, .builder-generic h2 { font-size: 32px; line-height: 42px; margin: 30px 0 12px; }
.page-content p, .builder-generic p, .page-content li, .builder-generic li { color: var(--e-global-color-text); font-size: 17px; line-height: 28px; }
.pagination-wrapper { text-align: center; margin-top: 20px; }


/* Instagram feed */
.instagram_section { padding: 100px 0; text-align: center; }
.instagram_section h5 { color: var(--e-global-color-secondary); letter-spacing: 2px; text-transform: uppercase; }
.instagram_section .instagram_grid { display: grid; gap: 12px; margin: 40px 0 30px; }
.instagram_section .instagram_grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; }
.instagram_section .instagram_grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.instagram_section .instagram_grid a:hover img { transform: scale(1.06); }
.instagram_section .instagram_grid a::after { content: "\f16d"; font-family: "Font Awesome 6 Brands"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: rgb(18 51 63 / 45%); opacity: 0; transition: opacity .3s; }
.instagram_section .instagram_grid a:hover::after { opacity: 1; }
.instagram_section .follow_btn { display: inline-block; padding: 16px 36px; border-radius: 30px; background: var(--e-global-color-secondary); color: #fff; font-weight: 600; text-decoration: none; }
.instagram_section .follow_btn:hover { background: var(--e-global-color-desaturated-magenta); color: #fff; }
@media (max-width: 767px) { .instagram_section .instagram_grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* Floating WhatsApp + mobile sticky CTA */
.awh-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 24px rgb(0 0 0 / 20%); text-decoration: none; }
.awh-whatsapp:hover { color: #fff; transform: scale(1.05); }
.awh-mobile-cta { display: none; }
@media (max-width: 767px) {
    .awh-mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; background: #12333f; }
    .awh-mobile-cta a { flex: 1; min-width: 0; text-align: center; padding: 14px 6px; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
    .awh-mobile-cta a + a { background: #25d366; }
    .awh-whatsapp { display: none; }
    body { padding-bottom: 52px; }
}

/* Cookie consent */
.awh-consent { position: fixed; left: 20px; bottom: 20px; z-index: 1000; max-width: 420px; padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 10px 40px rgb(0 0 0 / 18%); font-size: 15px; line-height: 22px; color: #242424; }
.awh-consent p { margin-bottom: 14px; }
.awh-consent a { color: var(--e-global-color-secondary); }
.awh-consent button { border: 0; border-radius: 24px; padding: 10px 20px; font-weight: 600; margin-right: 8px; }
.awh-consent .accept { background: #12333f; color: #fff; }
.awh-consent .reject { background: #eef2f3; color: #12333f; }
@media (max-width: 767px) { .awh-consent { left: 10px; right: 10px; bottom: 62px; max-width: none; } }
.awh-legal-links { margin-top: 6px; font-size: 14px; }
.awh-legal-links a { color: inherit; text-decoration: none; opacity: .85; }
.awh-legal-links a:hover { opacity: 1; text-decoration: underline; }
.navbar-nav .nav-item .contact_us { white-space: nowrap; padding: 18px 30px; }
/* Text prices ("On enquiry") need a smaller size than the template's numeric prices. */
.pricing_plans_box_lower_portion .pricing_plans_span_wrapper .price.price-text { font-size: 30px; line-height: 40px; }

/* Home banner typed words: own line, height reserved by the longest word (prevents layout shift while typing). */
.banner-section-content h1 .typed-line { display: grid; }
.banner-section-content h1 .typed-line > .typed-sizer,
.banner-section-content h1 .typed-line > .typed-live { grid-area: 1 / 1; }
.banner-section-content h1 .typed-sizer { visibility: hidden; }

/* Footer: the template's column offsets were tuned for its small 125px logo; even spacing for the Amita logo. */
.footer-section .middle-portion .row { row-gap: 30px; }
.footer-section .middle-portion .row > div { padding-left: 15px; padding-right: 15px; }
.footer-section .footer_logo { padding: 0 !important; margin: 0 !important; text-align: center; }
.footer-section .footer_logo img { width: 100%; max-width: 160px; height: auto; }
.footer-section .about_col, .footer-section .links_col, .footer-section .contact_col { margin-left: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
@media (min-width: 992px) {
    .footer-section .about_col { padding-left: 20px !important; }
    .footer-section .links_col { padding-left: 40px !important; }
}

/* Share buttons block + copy-link feedback */
.awh-share { padding: 30px 0 60px; text-align: center; }
.awh-share .awh-share-label { display: block; margin-bottom: 14px; font-weight: 600; color: var(--e-global-color-primary); }
.awh-share ul { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.awh-share a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: #eef4f5; color: #12333f; text-decoration: none; transition: background .2s, color .2s; }
.awh-share a:hover { background: #12333f; color: #fff; }
[data-copy-link].copied i::before { content: "\f00c"; }

/*
 * Section spacing.
 * The template footer always pulls itself up (-218px) under the newsletter card; on pages without
 * that card (legal pages, thank-you) it covered the end of the content. Only overlap when the card exists.
 */
.footer-section { margin-top: 0; padding-top: 100px; }
body:has(.subscribe_section) .footer-section { margin-top: -218px; padding-top: 308px; }
/* The newsletter card has no top spacing of its own; give it room under full-colour sections. */
:is(.get_in_touch_section, .message_section, .discount_section, .testimonial_section) + .subscribe_section { margin-top: 100px; }
/* Text pages (policies, thank-you): comfortable spacing before the footer. */
.builder-generic:last-child, .page-content:last-child { padding-bottom: 100px; }

/* Text pages (policies, thank-you): readable links, lists, tables and buttons. */
.builder-generic a:not(.awh-btn), .page-content a:not(.awh-btn) { color: var(--e-global-color-secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.builder-generic a:not(.awh-btn):hover, .page-content a:not(.awh-btn):hover { color: var(--e-global-color-desaturated-magenta); }
.builder-generic h3, .page-content h3 { font-size: 22px; line-height: 32px; margin: 22px 0 8px; }
.builder-generic ul, .builder-generic ol { padding-left: 22px; margin-bottom: 16px; }
.builder-generic table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.builder-generic th, .builder-generic td { border: 1px solid #dfe7e9; padding: 10px 12px; text-align: left; vertical-align: top; }
.builder-generic th { background: #eef4f5; color: #12333f; }
.builder-generic .legal-meta { font-size: 14px; color: #6b6b6b; border-left: 3px solid var(--e-global-color-soft-orange); padding-left: 12px; }
.awh-btn { display: inline-block; margin: 6px 10px 6px 0; padding: 14px 28px; border-radius: 30px; font-weight: 600; text-decoration: none !important; color: #fff !important; background: var(--e-global-color-secondary); }
.awh-btn:hover { background: var(--e-global-color-desaturated-magenta); }
.awh-btn.whatsapp { background: #1f9d55; }
.awh-btn.instagram { background: #b1307a; }
.awh-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.awh-steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 16px; }
.awh-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #12333f; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/*
 * Card titles: the template's 55px line-height suits one-line demo titles; longer titles
 * ("Hormone Balance Support") wrapped with huge gaps. Normal spacing + two lines reserved keeps cards aligned.
 */
.services_box_lower_portion h3,
.pricing_plans_box_lower_portion h3,
.our_team_box_lower_portion h3 { line-height: 1.3; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: inherit; margin-bottom: 12px; }
.pricing_plans_box_lower_portion h3 { justify-content: center; }
@media (max-width: 767px) {
    .services_box_lower_portion h3,
    .pricing_plans_box_lower_portion h3,
    .our_team_box_lower_portion h3 { min-height: 0; }
}
.services_box_lower_portion h3 + p,
.our_team_box_lower_portion h3 + p { margin-top: 12px; }

/* Equal-height cards: price/button (programmes) and arrow (services) line up across a row. */
.pricing_plans_section .row > [class*="col-"], .services_section .row > [class*="col-"] { display: flex; }
.pricing_plans_box_content, .services_box_content { display: flex; flex-direction: column; width: 100%; }
.pricing_plans_box_lower_portion, .services_box_lower_portion { flex: 1; display: flex; flex-direction: column; }
.pricing_plans_box_lower_portion .pricing_plans_span_wrapper { margin-top: auto; }
.services_box_lower_portion .btn_wrapper { margin-top: auto; }
.pricing_plans_section .row[data-aos] > [class*="col-"], .services_section .row[data-aos] > [class*="col-"] { margin-bottom: 30px; }

/*
 * News-feed cards: the template's title box is pinned to the image bottom and grows upward. With real
 * photos and longer titles it rode over the section heading on tablets/phones. Keep the template's image
 * proportions and cap the title length so the box always fits inside the image.
 */
.blog_posts_image figure img { width: 100%; aspect-ratio: 540 / 385; object-fit: cover; border-radius: 30px; }
.blog_posts_image_content { right: 20px; }
.blog_posts_image_content h4 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1199px) {
    .blog_posts_image_content { left: 24px; bottom: 16px; }
    .blog_posts_image_content h4 { font-size: 20px; line-height: 28px; margin-bottom: 14px; -webkit-line-clamp: 2; }
    .blog_posts_image_content span { margin-bottom: 10px; }
}
@media (max-width: 575px) {
    .blog_posts_image_content h4 { font-size: 18px; line-height: 24px; }
}

/* Contact detail boxes: template h3 line-height (55px) made the titles collide with the text below. */
.message_section .box .box_wrapper h3 { line-height: 1.3; margin-bottom: 6px; }
/* Readability: the demo images had darkening baked in; real photos get a teal gradient behind the text. */
.blog_posts_image figure { position: relative; }
.blog_posts_image figure::after { content: ""; position: absolute; inset: 0; border-radius: 30px; pointer-events: none; background: linear-gradient(to top, rgb(18 51 63 / 88%) 0%, rgb(18 51 63 / 40%) 45%, rgb(18 51 63 / 0%) 72%); }

/* Single post share row: round buttons like the Share block (template sized old square icons at 30px). */
.post-meta-share ul { display: flex; gap: 8px; flex-wrap: wrap; }
.post-meta-share li { margin: 0 !important; }
.post-meta-share a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #eef4f5; color: #12333f !important; text-decoration: none; }
.post-meta-share a i { font-size: 15px !important; line-height: 1 !important; color: inherit !important; margin: 0 !important; }
.post-meta-share a:hover { background: #12333f; color: #fff !important; }
@media (max-width: 767px) {
    .post-meta-share { float: none !important; width: 100%; margin-top: 12px; }
}

/* Phones: card titles follow the template's centred mobile layout. */
@media (max-width: 767px) {
    .services_box_lower_portion h3, .our_team_box_lower_portion h3 { display: block; }
}
/* Phones: the promo top bar scrolls away with the page and stays on one compact line. */
@media (max-width: 767px) {
    .promotional-topbar { position: relative !important; top: auto !important; padding: 8px 12px !important; gap: 10px; flex-wrap: nowrap !important; justify-content: center; }
    .promotional-topbar .promotional-topbar-icon .topbar-icon { display: none; }
    .promotional-topbar p { font-size: 12px !important; line-height: 16px !important; margin: 0 !important; }
    .promotional-topbar .buy_now { flex-shrink: 0; padding: 4px 12px !important; font-size: 12px !important; }
}

/* Medium screens (small laptops, iPad landscape): tighter menu so 7 links + button always fit. */
@media (min-width: 992px) and (max-width: 1299px) {
    .navbar-brand img { max-width: 170px; }
    .navbar-nav .nav-item { margin-left: 6px !important; margin-right: 6px !important; }
    .navbar-nav .nav-item .contact_us { padding: 14px 20px; }
}
/* Smallest phones (320px): the template gives the newsletter photo a fixed 330px width. */
.subscribe_image img { max-width: 100%; height: auto; }

/* 404 page */
.awh-error { padding: 90px 0 110px; text-align: center; }
.awh-error-code { font-family: 'Playfair Display', serif; font-size: clamp(90px, 18vw, 170px); line-height: 1; color: var(--e-global-color-secondary); opacity: .15; font-weight: 700; }
.awh-error h2 { margin-top: -30px; }
.awh-error p { max-width: 560px; margin: 12px auto 26px; color: var(--e-global-color-text); font-size: 18px; line-height: 28px; }
.awh-error-search { display: flex; max-width: 460px; margin: 0 auto 26px; }
.awh-error-search input { height: 54px; border-radius: 30px 0 0 30px; border: 1px solid #d7e3e5; padding: 0 22px; }
.awh-error-search button { width: 64px; border: 0; border-radius: 0 30px 30px 0; background: #12333f; color: #fff; }
.awh-error-actions { margin-bottom: 30px; }
.awh-error-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.awh-error-links a { color: var(--e-global-color-secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
