/*
Theme Name: My Minimal Theme
Theme URI: https://example.com
Author: Serghei
Author URI: https://example.com
Description: A minimal WordPress theme with styled header and footer.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-minimal-theme
*/

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/InterVariable.woff2') format('woff2');
    font-weight: auto;
    font-style: normal;
    font-display: swap;
}


:root {
    --font-base: 'Montserrat', sans-serif;
    --font-button: "Inter", sans-serif;
    --color-text-dark: #1E1B1B;
    --color-green-dark: #004D38;
    --color-green: #004d40;
    --color-accent: #006650;
    --color-cream-bg: #FFFAF1;
    --color-light-green-bg: #E3E6CA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-weight: 500;
    font-family: var(--font-base), sans-serif;
    font-style: normal;
    line-height: 1.5; /* was 24px, now relative */
    letter-spacing: -0.03rem; /* was -0.48px */
    font-size: 1rem; /* base font size = 16px */
    color: #333;
    background: var(--color-cream-bg);
}

/* Layout wrapper */
.wrapper {
    max-width: 90rem; /* 1440px = 90rem */
    margin: 0 auto;
    padding: 0 2rem; /* Responsive side padding */
}

/* Header */
.site-header {
    background: var(--color-cream-bg);
    border-bottom: 0.0625rem solid #ddd;
    padding: 1rem 2.5rem; /* was 15px 40px */
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem; /* was 20px */
    max-width: 90rem; /* 1440px max width */
    margin: 0 auto;
}

/* Logo */
.site-logo img {
    max-height: 7rem; /* 110px in rem */
    height: auto;
    width: auto;
}

/* Navigation Menu */
.main-menu {
    display: flex;
    justify-content: center;
    gap: 2.5rem; /* was 30px */
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    text-decoration: none;
    color: var(--color-text-dark); /* Updated menu text color */
    font-weight: 500;
    font-size: 1.25rem; /* was 16px */
    letter-spacing: -0.03rem; /* was -0.48px */
}

.main-menu li a:hover {
    color: #00796b;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* was 20px */
    min-width: 15rem;
    flex-direction: row;
    justify-content: center;
}

/* Language Selector */
.language-selector {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 1rem;
}

.language-selector .dropdown-arrow {
    width: 1rem;  /* Adjust size of the arrow */
    height: auto;
    margin-left: 0.375rem;
    display: inline-block;
    vertical-align: middle;
}


/* Appointment Button */
.appointment-btn {
    background-color: var(--color-green);
    color: #fff;
    font-family: var(--font-button), sans-serif; /* Use Inter via variable */
    padding: 2rem 2rem; /* vertical: 12px (0.75rem), horizontal: 24px (1.5rem) */
    height: 3rem; /* keeps button height consistent */
    border-radius: 5rem; /* fully rounded pill shape */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 1.25rem;
    white-space: nowrap; /* prevent text from wrapping */
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.appointment-btn:hover {
    background-color: #00695c;
}

.appointment-btn .arrow {
    margin-left: 0.625rem; /* was 10px → 0.625rem */
    font-size: 1.25rem; /* was 18px → 1.25rem */
}

/* Main Content */
main {
    /*padding: 1.25rem; !* was 20px *!*/
}

.front-page section {
    padding: 4rem 2rem;
}

.container {
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
    padding: 0 2rem;
}


/*HERO*/
.hero {
    /*max-width: 90rem; !* 1440px max width *!*/
    margin: 0 auto;
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(
            to bottom,
            var(--color-cream-bg) 76%, /* light cream for top 2/3 */
            var(--color-light-green-bg) 24%    /* green background starts from bottom 1/3 */
    );
}

.hero-subtitle {
    font-weight: 500; /* SemiBold = 600 */
    font-style: normal; /* SemiBold handled by font-weight */
    font-size: 1rem; /* 14px → rem */
    line-height: 1.2; /* 19.2px / 14px ≈ 1.2 */
    letter-spacing: 0.125rem; /* 2px → rem */
    text-transform: uppercase;
    text-align: center;
    color: var(--color-green); /* Assuming dark green for subtitle */
    vertical-align: middle;
    margin-bottom: 2rem;
}

.hero-title {
    font-weight: 500; /* Medium = 500 */
    font-style: normal; /* Medium handled by font-weight */
    font-size: 4.125rem; /* 66px → rem (66 ÷ 16 = 4.125) */
    line-height: 4.84375rem; /* 77.5px → rem (77.5 ÷ 16 = 4.84375) */
    letter-spacing: 0; /* 0px */
    text-align: center;
    vertical-align: middle;
    color: var(--color-text-dark); /* assuming your design’s title color */
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative; /* needed for stacking */
    z-index: 1; /* keep image above background */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem; /* rounded corners */
}

/*ABOUT*/
.about {
    background-color: var(--color-light-green-bg);
    padding: 4rem 2rem;
}

.about .container {
    max-width: 65rem; /* narrower for better readability */
    margin: 0 auto;
}

.about-subtitle {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* align subtitle + line to the left */
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.about-subtitle .line {
    width: 2rem;
    height: 0.0625rem;
    background-color: var(--color-green); /* decorative line color */
}

.about-subtitle .text {
    font-weight: 500; /* SemiBold */
    font-size: 1rem; /* 14px */
    letter-spacing: 0.125rem; /* 2px */
    text-transform: uppercase;
    color: var(--color-green);
}

.about-text p {
    font-weight: 500; /* Medium = 500 */
    font-style: normal; /* Medium handled by font-weight */
    font-size: 1.5rem; /* 24px → rem (24 ÷ 16 = 1.5rem) */
    line-height: 2.5rem; /* 40px → rem (40 ÷ 16 = 2.5rem) */
    letter-spacing: 0; /* 0px */
    color: var(--color-text-dark); /* Assuming dark gray text */
    vertical-align: middle;
    margin-bottom: 1.5rem;
}


/*INDICATIONS*/
/* ===== Indications Section ===== */
.indications {
    background: var(--color-cream-bg); /* Light cream background */
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.indications .container {
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
}

/* ===== Subtitle ===== */
.indications-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.indications-subtitle .line {
    width: 2rem;
    height: 0.0625rem;
    background-color: var(--color-green); /* Decorative line */
}

.indications-subtitle .text {
    font-weight: 500; /* SemiBold */
    font-size: 1rem; /* 14px */
    letter-spacing: 0.125rem; /* 2px */
    text-transform: uppercase;
    color: var(--color-green);
}

/* ===== Main Title ===== */
.indications-title {
    font-weight: 500; /* Medium */
    font-size: 2.5rem; /* 40px */
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

/* ===== Intro Text ===== */
.indications-intro {
    font-weight: 400;
    font-size: 1.25rem; /* 18px */
    line-height: 1.6;
    color: var(--color-text-dark);
    max-width: 50rem;
    margin: 0 auto 3rem auto;
}

/* ===== Columns Layout ===== */
.indications-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 2rem;
    text-align: left;
}

/* ===== Column Wrapper ===== */
.column {
    margin-bottom: 2rem;
}

/* Column Header: toggle button + line */
.column-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
}

/* Toggle Button */
.toggle-btn {
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 0.5rem 0;
}

.toggle-btn h3 {
    font-family: var(--font-base), sans-serif;
    font-weight: 550; /* SemiBold */
    font-size: 1.25rem; /* 20px */
    margin: 0;
    color: var(--color-text-dark);
}

.toggle-arrow {
    width: 1rem;
    height: auto;
    transition: transform 0.4s ease;
}

.toggle-arrow.rotated {
    transform: rotate(180deg);
}

/* Fixed bottom line under heading */
.column-line {
    width: 100%;
    height: 0.0625rem;
    background-color: #00573F; /* Line color */
    margin: 0.25rem 0 0.75rem 0; /* spacing */
}

/* Collapsible Content */
.collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.collapsible.open {
    opacity: 1;
}

.collapsible ul {
    margin: 0 0 0 1.5rem;
    padding: 0;
    list-style-type: disc;
}

.collapsible ul li {
    font-size: 1.25rem; /* 16px */
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

/* ===== Balancer Section ===== */
.balancer {
    background: var(--color-cream-bg);
    padding: 4rem 2rem;
}

.balancer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start; /* Aligns text block to the top */
    gap: 2rem;
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
}

/* Text Block */
.balancer-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
}

.balancer-text h2 {
    font-weight: 500;
    font-size: 2.5rem; /* 40px */
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    text-align: left;
}

.balancer-text p {
    font-weight: 400;
    font-size: 1.25rem; /* 18px */
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    text-align: left;
}

/* Image Block */
.balancer-image img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

/* ===== Benefits Section ===== */
.benefits {
    position: relative;
    background: linear-gradient(
            to top,
            var(--color-green-dark) 55%,
            var(--color-cream-bg) 45%
    );
    padding: 4rem 2rem 0 2rem;
}

.benefits-box {
    background-color: var(--color-light-green-bg); /* Light green box */
    border-radius: 1.5rem;
    padding: 3rem 3rem;
    max-width: 90rem;
    margin: 0 auto;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);

    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical alignment */
    height: 100%; /* Ensure the box respects vertical alignment */
}

.benefits-title {
    font-weight: 500;
    font-size: 2rem; /* 32px */
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    text-align: left;
}

.benefits-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr));
    gap: 2rem;
    align-items: center; /* Align columns vertically center */
}

.benefit {
    position: relative;
    padding: 0 1rem;
}

.benefit:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 0.0625rem;
    background-color: var(--color-green-dark);
}

/* Apply your font settings to benefit text */
.benefit p {
    font-weight: 400; /* Regular */
    font-style: normal; /* Regular handled by font-weight */
    font-size: 1.4375rem; /* 23px -> rem (23/16) */
    line-height: 2.3125rem; /* 37px -> rem (37/16) */
    letter-spacing: 0; /* 0% */
    color: var(--color-text-dark);
    margin: 0;
    text-align: left;
}

/* ===== Treatment Steps Section ===== */
.treatment-steps {
    background: var(--color-green-dark); /* Dark green background */
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.treatment-title {
    font-weight: 500;
    font-size: 2.5rem; /* 40px */
    margin-bottom: 3rem;
}

.treatment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, 19rem);
    justify-items: center;
    justify-content: center;
    gap: 4rem;
}

/* ===== Feature Box ===== */
.feature-box {
    background: var(--color-light-green-bg); /* Light green box */
    border-radius: 1.5rem;
    color: var(--color-text-dark);
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 20rem;
}

/* Feature Number */
.feature-number {
    font-weight: 550;
    font-size: 1rem; /* 16px */
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
}

/* Feature Header (Title) */
.feature-title {
    font-weight: 500; /* Medium */
    font-style: normal; /* Medium handled by font-weight */
    font-size: 2rem; /* 32px -> rem (32 / 16 = 2rem) */
    line-height: 1.5; /* 150% */
    letter-spacing: 0; /* 0% */
    margin-bottom: 0.75rem;
}

/* Feature Text */
.feature-text {
    font-weight: 400; /* Regular */
    font-style: normal;
    font-size: 1.25rem; /* 20px -> rem (20 / 16 = 1.25rem) */
    line-height: 1.5; /* 150% */
    letter-spacing: 0; /* 0px */
    vertical-align: middle;
}

.treatment-footer {
    font-weight: 400;
    font-size: 1.25rem; /* 16px */
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Expert Section ===== */
.expert {
    background: var(--color-cream-bg); /* light cream background */
    padding: 4rem 2rem;
}

.expert .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start; /* Align text block to the top */
    gap: 4rem; /* ⬅️ Increased gap between photo and text */
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
}

.expert-photo img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

.expert-text h2,
.expert-text .expert-name {
    font-weight: 500; /* Medium */
    font-style: normal;
    font-size: 2.875rem; /* 46px → rem */
    line-height: 3.875rem; /* 62px → rem */
    letter-spacing: 0;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem 0;
}

.expert-text .expert-name {
    /* Same styles as header */
}

/* ===== Body Text ===== */
.expert-text p {
    font-weight: 400; /* Regular */
    font-style: normal;
    font-size: 1.25rem; /* 20px → rem (20 / 16 = 1.25rem) */
    line-height: 1.5; /* 150% */
    letter-spacing: 0; /* 0px */
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    vertical-align: middle;
}

/* ===== Button ===== */
.expert-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-green-dark);
    color: #fff;
    font-family: var(--font-button), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
    letter-spacing: 1px;
}

.expert-button:hover {
    background-color: var(--color-accent);
}

.expert-button .arrow {
    margin-left: 0.5rem;
    font-size: 1.25rem;
}

/* ===== Section Two ===== */
.section-two {
    background: var(--color-cream-bg); /* light cream background */
    padding: 4rem 2rem;
}

.section-two .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start; /* Align text block to the top */
    gap: 4rem; /* ⬅️ Increased gap between photo and text */
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
}

.section-two-photo img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

.section-two-text h2,
.section-two-text .section-two-name {
    font-weight: 500; /* Medium */
    font-style: normal;
    font-size: 2.875rem; /* 46px → rem */
    line-height: 3.875rem; /* 62px → rem */
    letter-spacing: 0;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem 0;
}

.section-two-text .section-two-name {
    /* Same styles as header */
}

/* ===== Body Text ===== */
.section-two-text p {
    font-weight: 400; /* Regular */
    font-style: normal;
    font-size: 1.25rem; /* 20px → rem (20 / 16 = 1.25rem) */
    line-height: 1.5; /* 150% */
    letter-spacing: 0; /* 0px */
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    vertical-align: middle;
}

/* ===== Button ===== */
.section-two-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-green-dark);
    color: #fff;
    font-family: var(--font-button), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
    letter-spacing: 1px;
}

.section-two-button:hover {
    background-color: var(--color-accent);
}

.section-two-button .arrow {
    margin-left: 0.5rem;
    font-size: 1.25rem;
}


/* ===== FAQ Section ===== */
.faq {
    background: var(--color-cream-bg);
    padding: 4rem 2rem;
}

/* FAQ Section Layout */
.faq .container {
    display: grid;
    grid-template-columns: 40% 60%; /* Left = 40%, Right = 60% */
    gap: 3rem;
    max-width: 90rem;
    margin: 0 auto;
    align-items: start;
}

/* Left Column */
.faq-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.faq-subtitle .line {
    width: 2rem;
    height: 0.0625rem;
    background-color: var(--color-green-dark);
}

.faq-subtitle .text {
    font-weight: 500;
    font-size: 1rem; /* 14px */
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    color: var(--color-green-dark);
}

.faq-title {
    font-weight: 500;
    font-size: 2.5rem; /* 40px */
    margin-bottom: 2rem;
    color: var(--color-text-dark);
}

.faq-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-green-dark);
    color: #fff;
    font-family: var(--font-button), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 62.4375rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.faq-button:hover {
    background-color: var(--color-accent);
}

.faq-button .arrow {
    margin-left: 0.5rem;
    font-size: 1.25rem;
}

.faq-content {
    font-weight: 400;
}

.faq-content .arrow {
    font-family: var(--font-button), 'sans-serif';
    margin-left: 0.5rem;
    font-size: 1.125rem;
}

/* Right Column: FAQ Items */
.faq-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 0.0625rem solid var(--color-green-dark);
    padding: 0.75rem 0;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.25rem; /* 20px */
    cursor: pointer;
    color: var(--color-text-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Toggle Arrow Icon */
.faq-item .toggle-icon {
    width: 1rem;
    height: auto;
    transition: transform 0.3s ease;
}

.faq-item[open] .toggle-icon {
    transform: rotate(180deg); /* Rotate arrow when open */
}

.faq-content {
    margin-top: 0.5rem;
    font-size: 1.125rem; /* 16px */
    line-height: 1.5;
    color: var(--color-text-dark);
}

.faq-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.125rem; /* 16px */
    font-weight: 500;
    color: var(--color-green-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-read-more:hover {
    color: var(--color-accent);
}

.contact {
    background: var(--color-cream-bg);
    padding: 4rem 2rem;
}

/* === Contact Section Header === */
.contact-header {
    margin-bottom: 1.875rem;
}

.contact .link {
    text-decoration: none;
    font-weight: 500;
    color: black;
}

.contact-label {
    display: inline-flex;
    align-items: center;
    color: var(--color-green); /* Green accent color */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.contact-label::before {
    width: 2rem;
    height: 0.0625rem;
    background-color: var(--color-green-dark);
}

.contact-title {
    font-weight: 500;
    font-size: 2.5rem; /* 40px */
    margin-bottom: 2rem;
    color: var(--color-text-dark);
}

.contact-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-subtitle .line {
    width: 2rem;
    height: 0.0625rem;
    background-color: var(--color-green-dark);
}

.contact-subtitle .text {
    font-weight: 500;
    font-size: 1rem; /* 14px */
    letter-spacing: 0.125rem;
    color: var(--color-green-dark);
}

/* === Contact Form Grid === */
.contact-form-grid {
    display: grid;
    grid-template-columns: 25% 25% 50%; /* Left two columns + right message column */
    grid-template-rows: auto auto auto auto; /* 4 rows for inputs */
    grid-template-areas:
    "dropdown name message"
    "email email message"
    "telephone telephone message"
    "checkbox checkbox submit";
    gap: 1.25rem;
    background-color: var(--color-cream-bg);
    border-radius: 0.75rem;
}

/* Assign grid areas */
#dropdown {
    grid-area: dropdown;
}

#name {
    grid-area: name;
}

#email {
    grid-area: email;
}

#telephone {
    grid-area: telephone;
}

#message {
    grid-area: message;
}

#checkbox {
    grid-area: checkbox;
}

#contact-form-submit-button {
    grid-area: submit;
    justify-self: end; /* aligns submit button right */
}

#contact-form-submit-button p {
    display: flex;
    flex-direction: column;
}

/* Inputs & textarea styling */
.contact-form-grid select,
.contact-form-grid #name input,
.contact-form-grid #email input,
.contact-form-grid #telephone input,
.contact-form-grid textarea {
    width: 100%;
    padding: 0.625rem;
    font-size: 1rem;
    border: none;
    border-bottom: 0.0625rem solid #64575A;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form-grid textarea {
    border: 0.0625rem solid #64575A;
    border-radius: 0.5rem;
    min-height: 12.5rem;
    resize: vertical;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
    border-color: var(--color-green);
}

/* Container: display flex to align checkbox and label */
#checkbox .wpcf7-list-item > label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

/* Checkbox itself */
#checkbox input[type="checkbox"] {
    width: 1.4375rem;
    height: 1.4375rem;
    margin: 0;
    flex-shrink: 0;
    border: 0.0625rem solid #a89f9a;
    border-radius: 0.0625rem;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    cursor: pointer;
    margin-top: 0.125rem; /* aligns better with top of text */
}

/* Checkmark when checked */
#checkbox input[type="checkbox"]:checked::before {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--color-green);
}

/* Text label next to checkbox */
#checkbox .wpcf7-list-item-label {
    display: block;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
}



/* === Inputs, Selects, and Textareas === */
.contact-form-grid #name input,
.contact-form-grid #email input,
.contact-form-grid #telephone input,
.contact-form-grid select,
.contact-form-grid textarea {
    font-family: var(--font-base), 'sans-serif';
    font-weight: 500; /* SemiBold */
    font-style: normal; /* SemiBold is handled by font-weight */
    font-size: 0.875rem;
    line-height: 1.2rem;
    letter-spacing: 0.125rem;
    /*color: #000; !* Text color *!*/
}

.contact-form-grid select {
    text-transform: uppercase;
}

/* === Placeholder Styling === */
.contact-form-grid #name input::placeholder,
.contact-form-grid #email input::placeholder,
.contact-form-grid #telephone input::placeholder,
.contact-form-grid select::placeholder,
.contact-form-grid textarea::placeholder {
    font-family: var(--font-base), 'sans-serif';
    font-weight: 500; /* SemiBold */
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.2rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    color: #8C7C7F; /* Placeholder color */
    opacity: 1; /* Ensure placeholder is visible */
}

#dropdown select {
    color: #8C7C7F; /* default to placeholder color */
}

#dropdown select:has(option:not(:first-child):checked) {
    color: #000; /* user selected a real value */
}

.contact-submit-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-green-dark);
    color: #fff;
    font-family: var(--font-button), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 62.4375rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
    line-height: 1.5;
}

.contact-submit-button:hover {
    background-color: var(--color-accent);
}

.wpcf7-list-item-label {
    vertical-align: top;
}

.wpcf7-list-item {
    margin: 0;
}


/*FOOTER*/

.footer-container {
    max-width: 90rem;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.footer-line {
    border: none;
    border-top: 0.0625rem solid #eee;
    margin: 2rem 0;
}

#site-footer {
    background: #004D38;
    color: #fff;
    padding: 2.5rem 1.25rem;
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 90rem;
    margin: 3rem auto;
}

.footer-column {
    flex: 1;
    min-width: 12.5rem;
    margin-bottom: 1.25rem;
}

.logo-column img {
    max-width: 15.625rem;
}

.links-column a,
.footer-bottom a {
    display: block;
    color: #fff;
    margin-bottom: 0.625rem;
    text-decoration: none;
}

.contact-column {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.email-link {
    display: block;
    background: #0D5642;
    padding: 0.625rem;
    border-radius: 0.3125rem;
    max-width: fit-content;
    text-decoration: none;
    color: #fff;
}

.email-link .arrow {
    font-family: var(--font-button), 'sans-serif';
}

.social-icons-box {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.625rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #195E4C;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #147155;
}

.footer-bottom {
    display: flex;
    justify-content: flex-start;
    gap: 1.875rem;
    font-size: 1rem;
}

.footer-bottom a {
    color: #CCCCCC;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    max-width: fit-content;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
}

.mobile-menu,
.mobile-menu-toggle
{
    display: none; /* hidden on desktop */
}


/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {

    html {
        font-size: 0.875rem;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
    }

    .header-controls {
        display: none;
    }

    .site-header {
        padding: 1rem;
    }

    .site-logo img {
        max-height: 5rem;
    }

    .main-menu {
        flex-direction: column;
        gap: 1rem;
        display: none;
        align-items: center;
    }

    .main-menu.active {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 2rem;
        margin-left: auto;
        cursor: pointer;
    }

    .front-page section {
        padding: 2rem 1rem;
    }

    .hero-subtitle {
        text-align: left;
    }

    .hero-title {
        font-size: 2rem;
        text-align: left;
        line-height: 2.5rem;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 100%;
        height: 16rem;
        border-radius: 1.5rem;
        object-fit: cover;
    }

    .container {
        padding: 0 1rem;
        text-align: left;
    }

    .indications-subtitle {
        justify-content: left;
    }

    .indications-title {
        font-size: 1.5rem;
    }

    .column {
        margin-bottom: 0;
    }

    .balancer .container {
        display: flex;
        flex-direction: column-reverse;
    }

    .balancer-text h2
    {
        font-size: 1.5rem;
    }

    .benefits-box {
        padding: 2rem 2rem;
    }

    .benefit {
        padding: 0;
    }

    .benefit:not(:last-child)::after {
        content: "";
        display: block;
        width: 50%;
        height: 0.0625rem;
        background-color: #195E4C;
        margin-top: 2rem;
        position: relative;
    }

    .feature-box {
        width: 100%;
        min-height: 20rem;
    }

    .treatment-features {
        grid-template-columns: repeat(auto-fit, minmax(18.25rem, 1fr));
    }

    .treatment-title {
        font-size: 2rem;
    }

    .expert .container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .expert-text h2
    {
        font-size: 1.5rem;
        line-height: 1.5;
        margin: 0;
    }

    .expert-text .expert-name {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 1rem
    }

    .section-two .container {
        display: flex;
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .section-two-text h2
    {
        font-size: 1.5rem;
        line-height: 1.5;
        margin: 0;
    }

    .section-two-text .section-two-name {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 1rem
    }

    .faq .container {
        display: flex;
        flex-direction: column;
        position: relative;
        gap: 0;
    }

    .faq-left {
        display: flex;
        flex-direction: column;
    }

    .faq-subtitle {
        order: 1;
    }

    .faq-title {
        order: 2;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .faq-button {
        order: 4;
        position: absolute;
        bottom: -0.9375rem;
        left: 0.9375rem;
        width: auto;

    }

    .faq-right {
        order: 3;
        margin-bottom: 4rem; /* leave room for absolutely positioned button */
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-form-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #contact-form-submit-button p {
        align-items: center;
    }

    .contact-submit-button {
        width: fit-content;
    }

    .footer-container {
        margin: 0 auto;
    }

    .footer-wrapper {
        margin: 0 auto;
    }

    .logo-column img {
        max-width: 12rem;
    }

    /* === Hamburger Icon === */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 1.5625rem;
        height: 1.125rem;
        cursor: pointer;
        top: 1.875rem;
        right: 1.5625rem;
        z-index: 10001;
        margin: 1rem;
    }

    .mobile-menu-toggle .bar {
        height: 0.1875rem;
        background-color: #000;
        transition: all 0.3s ease;
        border-radius: 0.125rem;
    }

    /* Transform to X when active */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
    }

    /* === Sliding Menu === */
    .mobile-menu {
        position: absolute;
        top: 7.5rem; /* under the header */
        left: 0;
        right: 0;
        background: var(--color-cream-bg);
        padding: 0 1.5rem 1.5rem 1.5rem;
        display: none;
        flex-direction: column;
        z-index: 10000;
        box-shadow: 0 0.9375rem 0.9375rem rgba(0, 0, 0, 0.15);
    }

    .mobile-menu.show {
        display: flex;
    }

    .mobile-menu-items {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-items a {
        font-size: 1.25rem;
        padding: 2rem 0;
        text-decoration: none;
        color: #000;
    }

    .mobile-menu-items hr {
        border: none;
        border-top: 0.0625rem solid #888;
        margin: 0;
    }

    .mobile-menu-lang {
        display: flex;
        justify-content: flex-end;
        gap: 2rem;
        font-size: 1rem;
        margin-top: 1.25rem;
    }

    .mobile-menu-lang a {
        color: #000;
        text-decoration: none;
    }

    .mobile-menu-lang a.active {
        text-decoration: underline;
        font-weight: 600;
    }

}

@media (max-width: 930px) {
    #menu-top-menu {
        justify-content: flex-start;
    }

    .header-controls {
        /*grid-area: header-controls;*/
        flex-direction: row-reverse;
        min-width: 0;
    }

}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    img,
    video {
        max-width: 100%;
        height: auto;
    }
}

