/* ============================================
   Surgeon Website - Dr. Kondratskyi
   Optimized: 2026-01-19
   ============================================ */

/* 1. Variables & Reset */
:root {
    /* Colors */
    --primary-green: #37855C;
    --primary-green-dark: #2A6646;
    --primary-green-light: #4DA574;
    --accent-light-green: #E0F2E9;
    --bg-gradient-start: #F9FAFB;
    --bg-gradient-end: #EFF2F5;
    --white: #FFFFFF;
    --text-dark: #1D2530;
    --text-medium: #627084;
    --text-light: #949BA6;
    --text-nav: #627084;
    --border-light: #E0E0E0;

    /* Typography */
    --font-headings: 'Manrope', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max-width: 1440px;
    --container-padding-desktop: 104px;
    --container-padding-tablet: 40px;
    --container-padding-mobile: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-green-dark);
}

/* 3. Utilities & Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 104px;
    width: 100%;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    font-family: var(--font-headings);
    color: var(--primary-green);
}

.section-title {
    font-family: var(--font-headings);
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 24px;
    color: var(--text-dark);
}

.section-title.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xl);
}

.section-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border: 1px solid var(--primary-green);
    box-shadow: 0 4px 14px rgba(55, 133, 92, 0.25);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    color: var(--white);
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 133, 92, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: #FAFAFA;
    border-color: #D1D5DB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-cta-wrapper {
    display: none;
}

/* 5. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    height: auto;
    gap: 2rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-nav);
    transition: color var(--transition-fast);
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.cta-button:hover {
    color: var(--primary-green-dark);
}

.phone-icon {
    width: 14px;
    height: 14px;
}

.cta-button .phone-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(28%) saturate(1574%) hue-rotate(125deg) brightness(95%) contrast(101%);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
    pointer-events: none;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 6. Hero Section */
.hero {
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 185px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(55, 133, 92, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        /* Balanced grid for smaller desktops */
        gap: 40px;
    }
}

.hero-text {
    max-width: 600px;
    padding-top: 10px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-light-green);
    padding: 12px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    width: fit-content;
    line-height: normal;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: inherit;
    flex-shrink: 0;
}

.mobile-badge {
    display: none;
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--primary-green);
    font-weight: 800;
}

.hero-description {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 600px;
}

.stat-card {
    background: var(--white);
    width: 100%;
    min-width: 100px;
    min-height: 108px;
    height: auto;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 20px;
    height: 20px;
    margin: 0 auto 8px;
    color: var(--primary-green);
    display: block;
}

.stat-number {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #949BA6;
    line-height: 1.2;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-right: 36px;
    margin-top: -28px;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 544px;
    aspect-ratio: 544 / 672;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-bg {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #24598F 0%, #1A8CB3 100%);
    border-radius: 24px;
    opacity: 0.2;
    filter: blur(40px);
    z-index: 0;
}

.image-wrapper img {
    position: relative;
    width: 512px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    /* Enforce correct proportions */
    object-fit: cover;
    display: block;
    border-radius: 20px;
    z-index: 1;
}

.image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 272px;
    height: 76px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-subtitle {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 2px;
    font-weight: 500;
}

.badge-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* 7. About Section */
.about {
    background-color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: minmax(300px, 480px) 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 480 / 629;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #007B52;
    opacity: 0.2;
    border-radius: 24px;
    filter: blur(40px);
    z-index: 0;
}

.about-image {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 597px;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
    display: block;
}

.about-content {
    max-width: 600px;
}

.about-paragraph {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.value-card {
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.value-icon-box {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon-box img {
    width: 48px;
    height: 48px;
    display: block;
}

.value-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.value-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-medium);
}

/* 8. Services Section */
.services {
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 80px 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 104px;
}

.services-container .section-title {
    grid-column: 1 / -1;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 40px;
    min-height: 267px;
    height: auto;
    width: 100%;
    box-shadow: 0 8px 30px -8px rgba(36, 89, 143, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0);
    text-align: left;
}

.service-icon-box {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-box img {
    width: 56px;
    height: 56px;
    display: block;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-text {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-link {
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 9. Specialization Section */
.specialization {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.specialization-container {
    max-width: 1440px;
    margin: 0 auto;
}

.specialization .section-title {
    margin-bottom: 60px;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 32px;
    max-width: 1232px;
    margin: 0 auto;
}

.spec-card {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 200px;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 30px -8px rgba(36, 89, 143, 0.12);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px);
}

.spec-icon-box {
    flex-shrink: 0;
    margin-bottom: 0;
}

.spec-icon-box img {
    width: 56px;
    height: 56px;
    display: block;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-title {
    font-family: var(--font-headings);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.spec-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-nav);
    margin-bottom: 16px;
    line-height: 1.5;
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.spec-tag {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-nav);
    background-color: #E8EBEE;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* 10. Experience Section */
.experience {
    padding: 100px 0 40px 0;
    background: var(--white);
}

.experience .section-title {
    margin-bottom: 60px;
}

.experience-content {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.timeline-column {
    flex: 1;
    max-width: 584px;
}

.timeline-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon img {
    width: 100%;
    height: 100%;
}

.work-timeline {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 2px;
    height: 100%;
    background-color: #E8EBEE;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: #007B52;
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: #007B52;
    margin-bottom: 4px;
}

.timeline-info h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.timeline-info p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-medium);
}

.international-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intl-card {
    background-color: rgba(232, 235, 238, 0.5);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.intl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.intl-header h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    flex: 1;
    line-height: 1.4;
}

.intl-year {
    display: inline-block;
    background-color: rgba(0, 123, 82, 0.1);
    color: #007B52;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1;
}

.intl-card p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-medium);
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    color: #007B52;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 16px;
    margin-left: -16px;
    touch-action: manipulation;
    min-height: 44px;
}

.btn-show-more:hover {
    text-decoration: underline;
}

/* 11. Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
    width: 100%;
}

.gallery-card {
    position: relative;
    width: 100%;
    aspect-ratio: 604 / 320;
    height: auto;
    border-radius: 24px;
    background: none;
    overflow: visible;
}

.gallery-card .image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    background: none;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 24px;
}

.gallery-badge {
    position: absolute;
    bottom: -23px;
    left: -19px;
    background: var(--white);
    border-radius: 16px;
    padding: 10px 16px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
}

.gallery-card:first-child .gallery-badge {
    width: 210px;
    height: 60px;
}

.gallery-card:last-child .gallery-badge {
    width: 230px;
    height: 80px;
    left: -19px;
    right: auto;
}

.badge-content {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
    width: 100%;
}

/* 12. Memberships */
.memberships-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 16px;
    padding: 40px 48px;
    margin-top: 40px;
    margin-bottom: 0;
    background: linear-gradient(90deg, #007B52 0%, rgba(0, 123, 82, 0.85) 100%);
    color: var(--white);
    box-shadow: 0 8px 30px -8px rgba(36, 89, 143, 0.12);
}

.memberships-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.memberships-icon-img {
    width: 32px;
    height: 32px;
}

.memberships-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
    margin: 0;
}

.memberships-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.membership-tag {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
}

/* 13. Team Section */
.team-section {
    padding: 40px 0;
    background: var(--white);
}

.team {
    margin-top: 0;
}

.team-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    /* Balanced ratio to give text more space */
    gap: 60px;
    align-items: center;
    max-width: 1232px;
    margin: 40px auto 0;
}

.team-text {
    padding-top: 30px;
}

.team-text .section-title {
    margin-bottom: 24px;
}

.team-text p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.team-image img {
    width: 100%;
    max-width: 576px;
    height: auto;
    aspect-ratio: 576 / 384;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px -8px rgba(36, 89, 143, 0.12);
}

/* 14. Reviews */
.reviews {
    padding: 40px 0 var(--spacing-3xl) 0;
    background-color: var(--white);
}

.reviews-content {
    display: grid;
    grid-template-columns: minmax(300px, 576px) 1fr;
    gap: clamp(40px, 6vw, 80px);
    margin-top: 40px;
    align-items: stretch;
}

.reviews-image-col {
    position: relative;
    width: 100%;
    max-width: 576px;
}

.reviews-image-col .image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: visible;
}

.reviews-image-col img {
    width: 100%;
    height: auto;
    min-height: 600px;
    /* Slightly reduced for better balance */
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 30px -8px rgba(36, 89, 143, 0.12);
}

.review-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: #007B52;
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 0 20px 50px -15px rgba(36, 89, 143, 0.2);
    z-index: 2;
    min-width: 180px;
}

.badge-row-1 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 30px;
    color: var(--white);
    line-height: 1.2;
}

.badge-row-2 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--white);
    line-height: 1.4;
}

.reviews-text-col {
    display: flex;
    flex-direction: column;
}

.reviews-text-col .section-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: #007B52;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card {
    background: rgba(232, 235, 238, 0.5);
    padding: 24px;
    border-radius: 16px;
    position: relative;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.stars img {
    width: 20px;
    height: 20px;
}

.testimonial-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.testimonial-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.testimonial-author span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-nav);
}

.quote-icon-img {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    opacity: 1;
}

/* 15. Contact Section */
.contacts {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, #F9FAFB 0%, #EFF2F5 100%);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details h4 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-nav);
    margin-bottom: 4px;
}

.contact-details a,
.contact-details p {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
    margin: 0;
}

.map-container {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(29, 37, 48, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: #F9FAFB;
    border: 1px solid #DAE0E7;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9DA7B4;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007B52;
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    margin-top: 8px;
    background-color: #007B52;
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: none;
    touch-action: manipulation;
}

.btn-submit:hover {
    background-color: #006241;
}

.btn-submit img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.form-privacy {
    font-size: 12px;
    color: var(--text-nav);
    text-align: center;
    margin-top: 16px;
}

.form-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* 16. Footer */
.footer {
    background: var(--text-dark);
    padding: 60px 0 24px 0;
    color: #F9FAFB;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-name {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 20px;
    color: #F9FAFB;
    margin-bottom: 4px;
}

.footer-title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: rgba(249, 250, 251, 0.7);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: rgba(249, 250, 251, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: block;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link img {
    width: 100%;
    height: 100%;
}

.footer-divider {
    height: 1px;
    background: rgba(249, 250, 251, 0.2);
    width: 100%;
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
}

.copyright {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: rgba(249, 250, 251, 0.5);
    margin: 0;
}

/* 17. Utilities & Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media print {

    .header,
    .mobile-menu-toggle,
    .carousel-controls,
    .btn {
        display: none !important;
    }
}

/* ============================================
   18. CONSOLIDATED RESPONSIVE QUERIES
   ============================================ */

/* Max Width 1300px */
@media (max-width: 1300px) {
    .spec-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 229px;
    }

    .spec-tags {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .tag {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: var(--accent-light-green);
        color: var(--text-dark);
        border-radius: var(--radius-full);
        font-size: 0.875rem;
        font-weight: var(--font-weight-medium);
    }
}

/* Max Width 1200px */
@media (max-width: 1200px) {
    .reviews-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .reviews-image-col {
        width: 100%;
        max-width: 576px;
        margin: 0 auto;
    }

    .review-badge {
        right: -10px;
        bottom: -20px;
    }
}

/* Tablet/Mobile Breakpoint merge: 1024px and 992px blocks removed */



/* Max Width 768px */
/* Max Width 1023px (Mobile/Tablet switch below 1024px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 20px;
    }

    /* Header & Nav */
    .nav {
        position: fixed;
        top: 0;
        left: auto;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 100px 32px 32px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav.active {
        right: 0;
        left: auto;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav-link {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 100px 0 30px;
        padding-top: 100px !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        display: contents;
    }

    .hero-title {
        order: 1;
        width: 100%;
        text-align: left;
        font-size: 36px;
        margin-bottom: 12px;
    }

    .badge {
        order: 4;
        margin: 16px 0 8px;
        align-self: flex-start;
        width: auto;
        max-width: none;
        display: flex !important;
        /* Ensure it's visible on mobile */
    }

    .hero-image {
        order: 2;
        margin: 0 0 16px 0;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        max-width: 340px;
        display: flex;
        justify-content: center;
        position: relative;
    }

    .hero-ctas {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-bottom: 8px;
    }

    .hero-description {
        order: 5;
        margin-top: 0;
        text-align: left;
        max-width: none;
        font-size: 16px;
        margin-bottom: 24px;
    }

    .stats {
        order: 6;
        margin-top: 16px;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        min-height: 90px;
        padding: 16px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .image-wrapper {
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        position: relative;
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .gradient-bg {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        filter: blur(20px);
        opacity: 0.3;
    }

    .image-badge {
        left: 0;
        bottom: 0;
        right: auto;
        width: max-content;
        max-width: 85%;
        text-align: left;
        transform: none;
        padding: 20px 24px;
        background: #FFFFFF;
        backdrop-filter: none;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        border-radius: 20px;
    }

    .image-badge .badge-subtitle {
        font-size: 14px;
        color: #64748B;
        margin-bottom: 4px;
        font-weight: 500;
    }

    .image-badge .badge-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.2;
    }

    /* About */
    .about {
        padding: 60px 0;
        text-align: left;
    }

    .about .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto;
        display: block;
        margin: 0;
        position: relative;
        line-height: 0;
        aspect-ratio: auto !important;
    }

    .about-image {
        width: 100% !important;
        max-width: none !important;
        height: auto;
        border-radius: 16px;
        position: relative;
        z-index: 2;
    }

    .about-gradient-bg {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        object-fit: cover;
    }

    .about-image-wrapper img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .values-grid {
        display: none;
    }

    /* Services & Specialization */
    .services {
        padding: 40px 0;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 24px;
    }

    .specialization {
        padding: 60px 0;
    }

    .specialization-grid {
        grid-template-columns: 1fr;
    }

    .specialization .section-title {
        font-size: 32px;
        margin-bottom: 32px;
        text-align: center;
    }

    .spec-card {
        flex-direction: column;
        padding: 24px;
    }

    /* Experience */
    .experience {
        padding: 60px 0 40px;
    }

    .experience .section-title {
        font-size: 32px;
        margin-bottom: 32px;
        text-align: center;
    }

    .experience-content {
        flex-direction: column;
        align-items: stretch !important;
    }

    .timeline-column {
        max-width: 100% !important;
        width: 100% !important;
    }

    .timeline-column:first-child {
        order: 1;
    }

    .timeline-column:last-child {
        order: 2;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .gallery-card {
        aspect-ratio: 3 / 2;
    }

    .gallery-card .image-wrapper img {
        max-width: none;
    }

    .gallery-badge {
        width: auto;
        left: -10px !important;
        right: auto !important;
        bottom: -20px !important;
        transform: none;
        max-width: 85%;
    }

    /* Team & Memberships */
    .memberships-card {
        padding: 24px;
    }

    .mobile-cta-wrapper {
        display: block;
        padding: 60px 0 0px 0;
        width: 100%;
    }

    .mobile-cta-wrapper .btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .memberships-list {
        grid-template-columns: 1fr;
    }

    .team-section {
        padding: 40px 0;
    }

    .team-content {
        grid-template-columns: 1fr;
        margin-top: 24px;
        gap: 32px;
    }

    .team-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 16px 0;
    }

    .team-image img {
        margin: 0 auto;
    }

    .team-text {
        padding-top: 0;
    }

    /* Reviews */
    .reviews {
        padding: 40px 0 60px;
    }

    .reviews .section-title {
        text-align: center;
    }

    .reviews-content {
        grid-template-columns: 1fr;
    }

    .reviews-image-col {
        max-width: 100%;
        margin-bottom: 80px;
    }

    .reviews-image-col .image-wrapper {
        max-width: 540px;
        /* Reduced slightly to allow badge overlap within container */
        margin: 0 auto;
    }

    .reviews-image-col img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        display: block;
    }

    .review-badge {
        right: -10px;
        bottom: -20px;
        min-width: 140px;
        padding: 14px 18px;
    }

    .badge-row-1 {
        font-size: 24px;
    }

    .badge-row-2 {
        font-size: 13px;
    }

    /* Contact */
    .contacts {
        padding: 60px 0;
    }

    .contacts-content {
        display: flex;
        flex-direction: column;
    }

    .contact-form-wrapper {
        order: 2;
        /* Form Second */
        padding: 24px;
    }

    .contact-info {
        order: 1;
        /* Info First */
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* Max Width 425px */
@media (max-width: 425px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        min-height: 80px;
        padding: 10px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
    }

    .spec-card {
        padding: 20px;
    }

    .section-title,
    .about .section-title,
    .reviews-text-col .section-title,
    .experience .section-title,
    .specialization .section-title {
        font-size: 26px;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 14px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .review-badge {
        padding: 14px;
        min-width: 130px;
    }

    .badge-row-1 {
        font-size: 22px;
    }

    .badge-row-2 {
        font-size: 12px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }

    .footer-socials {
        gap: 12px;
    }
}

/* Max Width 390px */
@media (max-width: 390px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }

    .badge {
        padding: 8px 12px;
        font-size: 11px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 13px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 8px;
    }

    .image-badge {
        width: 90%;
    }

    .section-title,
    .about .section-title,
    .reviews-text-col .section-title {
        font-size: 24px;
    }

    .footer {
        padding: 32px 0 16px;
    }

    .footer-top {
        gap: 20px;
    }

    .footer-name {
        font-size: 16px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Max Width 320px */
@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 90px 0 30px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 13px;
    }

    .stat-card {
        min-height: 70px;
        padding: 8px;
    }

    .stat-number {
        font-size: 13px;
    }

    .stat-label {
        font-size: 7px;
    }

    .spec-card,
    .service-card {
        padding: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .testimonial-card {
        padding: 16px;
    }

    .contact-form-wrapper {
        padding: 16px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-name {
        font-size: 18px;
    }
}