:root {
    --primary: #0f8b6d;
    --primary-dark: #0a6b54;
    --primary-light: #2bcba0;
    --secondary: #2b6ef0;
    --secondary-light: #5b8ef5;
    --accent: #3b82f6;
    --dark: #1e293b;
    --gray: #334155;
    --light: #f8fafc;
    --text: #475569;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .nav-link, .case-title, .section-title {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 10px rgba(15, 139, 109, 0.3);
}

.logo-main {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section - Clean Responsive Grid */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 100px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 550px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2; 
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-title .line1,
.hero-title .line2,
.hero-title .line3 {
    display: block;
    white-space: normal;
    word-break: keep-all;
}

/* Prevent the second line from breaking */
.hero-title .line2 {
    white-space: normal;
}

.hero-title .line3 {
    white-space: nowrap;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
    color: #475569;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 14px rgba(15, 139, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 139, 109, 0.4);
}

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

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.cases-grid,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.case-card,
.post-card,
.tool-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card:hover,
.post-card:hover,
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(15, 139, 109, 0.2);
    border-color: var(--primary);
}

.case-icon,
.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(15, 139, 109, 0.1), rgba(43, 110, 240, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(15, 139, 109, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    align-self: flex-start;
}

.case-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.feature i {
    color: var(--success);
}

.case-card .learn-more-link {
    margin-top: auto;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.case-card .learn-more-link i {
    transition: transform 0.2s;
}

.case-card .learn-more-link:hover i {
    transform: translateX(4px);
}

/* Services Tabs */
.services-tabs {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.tabs-header {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 40px;
    padding-bottom: 12px;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.tab-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 139, 109, 0.3);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.feature-card {
    padding: 28px;
    border-radius: 24px;
    background: #f8fafc;
    transition: all 0.3s;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 16px;
    flex: 1;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

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

.tool-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.tool-card p {
    flex: 1;
}

.tool-card .btn {
    margin-top: 12px;
}

/* Newsletter */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    color: white;
}

.newsletter-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 24px auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    font-size: 0.9rem;
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: none;
    white-space: nowrap;
}

/* Consultation */
.consultation-section {
    background: #f1f5f9;
    padding: 80px 0;
}

.consultation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 32px;
    padding: 48px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.consultation-info h2 {
    color: white;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.benefit-item i {
    font-size: 1.2rem;
    color: var(--primary-light);
    width: 24px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.booking-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: #94a3b8;
}

.booking-form select option {
    background: #1e293b;
    color: white;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.privacy-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.privacy-checkbox label {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.contact-link {
    color: var(--primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 48px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-links-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo .logo-main {
    color: white;
}

.link-group h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 8px;
}

.link-group a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 16px 24px;
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

/* Calendar Overlay */
.calendar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

#calendarContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 24px;
    z-index: 2001;
    width: 90%;
    max-width: 450px;
    padding: 24px;
    text-align: center;
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================ */

/* Desktop (992px and above) */
@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 550px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-image img {
        max-width: 450px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-container {
        display: none;
    }

    .hero-title .line2 {
        white-space: normal;  /* Allow wrapping on tablet */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-container.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-container.active .nav-link {
        white-space: normal;
        padding: 8px 0;
    }
    
    .nav-container.active .language-switcher {
        margin-top: 12px;
        justify-content: center;
    }
    
    /* Hero - Stack vertically */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Other sections */
    .consultation-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .partner-logos span {
        white-space: normal;
        text-align: center;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-title .line1,
    .hero-title .line2,
    .hero-title .line3 {
        white-space: normal;  /* Allow all lines to wrap naturally */
    }
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .btn {
        white-space: normal;
        text-align: center;
    }
    
    .link-group a {
        white-space: normal;
    }
    
    .contact-link {
        white-space: normal;
    }
    
    .partner-logos {
        gap: 16px;
    }
    
    .partner-logos span {
        font-size: 0.9rem;
    }
    
    .newsletter-box {
        padding: 32px 20px;
    }
    
    .newsletter-box h3 {
        font-size: 1.4rem;
    }
    
    .consultation-wrapper {
        padding: 28px;
    }
    
    .services-tabs {
        padding: 20px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .cases-grid,
    .posts-grid,
    .tool-grid {
        gap: 20px;
    }
}

/* Mobile Small (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cases-grid,
    .posts-grid,
    .tool-grid {
        gap: 16px;
    }
    
    .case-card,
    .post-card,
    .tool-card {
        padding: 20px;
    }
    
    .hero-image img {
        max-width: 100%;
    }
}