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

/* CSS Custom Properties / Design Tokens */
:root {
    --primary: #14453d;
    --primary-light: #225c52;
    --primary-dark: #0a2924;
    --accent: #c5a265;
    --accent-hover: #b28e53;
    --accent-light: #e3d2b4;
    
    --bg-light: #ffffff;
    --bg-alt: #f8faf9;
    --bg-dark: #0c1412;
    
    --text-dark: #1f2725;
    --text-muted: #73827f;
    --text-light: #ffffff;
    
    --border: #e6ecea;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 8px rgba(20, 69, 61, 0.04);
    --shadow-md: 0 12px 30px rgba(20, 69, 61, 0.06);
    --shadow-lg: 0 24px 50px rgba(20, 69, 61, 0.1);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: normal; /* Questrial only has normal/400 weight on Google Fonts */
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

/* SVG Icon Base Styling */
.svg-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

/* Section Header */
.section-header {
    max-width: 650px;
    margin: 0 auto 70px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(20, 69, 61, 0.15);
}

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(197, 162, 101, 0.25);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-1px);
}

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

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(197, 162, 101, 0.2);
}

.btn-portal {
    background-color: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-portal:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(197, 162, 101, 0.15);
}

.btn-portal .svg-icon {
    stroke: var(--accent);
    width: 18px;
    height: 18px;
}

.btn-portal:hover .svg-icon {
    stroke: var(--primary-dark);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 96px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 76px;
}

/* Logo Design - SVG Logo 2A with Text */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-svg {
    height: 50px;
    width: auto;
    max-width: 65px;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    transition: var(--transition);
}

.logo-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.logo-sub {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
}

/* Scrolled Header Adjustments */
.header.scrolled .logo-svg {
    height: 42px;
    width: auto;
}

.header.scrolled .logo-brand {
    font-size: 1.15rem;
}

.header.scrolled .logo-sub {
    font-size: 0.62rem;
}

/* Footer Logo Adjustments */
.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-brand .logo-brand {
    color: var(--text-light);
}

.footer-brand .logo-sub {
    color: var(--accent);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Burger Button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 75% 25%, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

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

.hero-tagline {
    font-family: var(--font-body);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Badge */
.hero-badge-container {
    display: flex;
    justify-content: center;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
}

.badge-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.badge-item:last-child {
    margin-bottom: 0;
}

.badge-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon .svg-icon {
    stroke: var(--accent);
}

.badge-title {
    font-family: var(--font-heading);
    font-weight: normal;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.badge-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
}

/* Services / Leistungen Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1020px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 0 0 3px 3px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(20, 69, 61, 0.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-icon .svg-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    stroke: var(--text-muted);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
}

.service-card:hover .service-icon .svg-icon {
    stroke: var(--accent);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card ul {
    margin-bottom: 0;
    flex-grow: 1;
}

.service-card li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 11px;
    padding-left: 22px;
    position: relative;
    font-weight: 300;
    line-height: 1.5;
    word-break: break-word;
}

.service-card li:last-child {
    margin-bottom: 0;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Team Section Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
}

.team-img-wrapper {
    background-color: var(--bg-alt);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Gold overlay tint for matching different photo styles */
.team-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    mix-blend-mode: color;
    z-index: 2;
}

.team-card:hover .team-img-wrapper::after {
    opacity: 0.35;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.team-card:hover .team-img {
    transform: scale(1.04);
    filter: grayscale(100%) contrast(1.08) brightness(1.02);
}

.team-placeholder-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.15;
    letter-spacing: 4px;
}

.team-info {
    padding: 34px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-role {
    color: var(--accent);
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    font-weight: 300;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.team-tag {
    font-size: 0.75rem;
    background-color: var(--bg-alt);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 500;
}

.team-contact {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.team-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.team-contact-item:last-child {
    margin-bottom: 0;
}

.team-contact-item .svg-icon {
    stroke: var(--accent);
    width: 16px;
    height: 16px;
}

/* Kanzlei / Vorteile Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-us-card {
    text-align: center;
    padding: 30px 10px;
}

.why-icon {
    width: 54px;
    height: 54px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.why-icon .svg-icon {
    stroke: var(--accent);
}

.why-us-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.why-us-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Kundenportal Call-to-Action Section */
.portal-cta {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 90px 0;
    text-align: center;
    position: relative;
}

.portal-cta-content {
    max-width: 680px;
    margin: 0 auto;
}

.portal-cta h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.portal-cta h2 span {
    color: var(--accent);
}

.portal-cta p {
    font-size: 1.05rem;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

/* Contact / Kontakt Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-intro {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 300;
}

.contact-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-alt);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.highlight-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.highlight-text strong {
    color: var(--primary);
    font-weight: 500;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon .svg-icon {
    stroke: var(--primary);
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: normal;
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.contact-map-placeholder {
    height: 220px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 69, 61, 0.9);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.map-overlay .svg-icon {
    stroke: var(--accent);
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.map-overlay h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.map-overlay p {
    font-size: 0.85rem;
    margin-bottom: 20px;
    opacity: 0.8;
    font-weight: 300;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: var(--bg-alt);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-weight: 300;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 90px 0 30px 0;
    border-top: 2px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-title {
    color: var(--text-light);
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 20px;
    max-width: 320px;
    line-height: 1.6;
    font-weight: 300;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.social-link:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.footer-title {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1.5px;
    background-color: var(--accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 300;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badge-container {
        display: none;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 90px 0;
    }
    
    .logo-title {
        font-size: 1.25rem;
    }
    
    .burger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 96px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 96px);
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: var(--transition);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    
    .header.scrolled .nav-menu {
        top: 76px;
        height: calc(100vh - 76px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .btn {
        margin-top: 10px;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ===================================================
   Partner Section
   =================================================== */

.partner-section {
    background-color: var(--bg-alt);
}

.partner-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}

/* subtle top border accent line */
.partner-card::before {
    display: none;
}

.partner-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-right: 1px solid var(--border);
    padding-right: 32px;
}

/* Real logo – displayed small for crispness */
.partner-logo-img {
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Small external link below logo */
.partner-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.partner-ext-link:hover {
    color: var(--accent);
}

.partner-info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.partner-description {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-dark);
}

/* Simple bullet list replacing the heavy chip grid */
.partner-detail-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.partner-detail-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.partner-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

/* Hide truly unused old classes */
.partner-badge,
.partner-benefits,
.partner-benefit-item {
    display: none;
}

@media (max-width: 860px) {
    .partner-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }

    .partner-logo-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 20px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
    }
}

