/* =========================================
   Steuerkanzlei Bürger – Modern Website
   ========================================= */

/* --- CSS Variables --- */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0f2440;
    --accent: #c8963e;
    --accent-light: #dbb06a;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #e8ecf1;
    --border: #d1d9e6;
    --success: #2d8a4e;
    --error: #c0392b;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --max-width: 1200px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Header --- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.header-top {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.header-top a { color: #fff; opacity: 0.9; }
.header-top a:hover { opacity: 1; color: var(--accent-light); }
.header-top-left, .header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-top-left span, .header-top-right a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-main {
    padding: 16px 0;
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg { width: 30px; height: 30px; }
.logo-text h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.2;
}
.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
    font-family: var(--font-main);
}

/* --- Navigation --- */
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-light);
    color: var(--primary);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: var(--transition);
}
.nav-dropdown:hover > a::after,
.nav-dropdown.open > a::after {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 8px 0;
    z-index: 100;
    list-style: none;
    flex-direction: column;
}
/* Invisible hover bridge – prevents dropdown from closing when mouse moves from link to menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: var(--bg-light);
}
.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu { display: block; }

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 150, 62, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 0.4em;
}
.hero-content .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image .content-image {
    max-height: 400px;
    width: auto;
    object-fit: contain;
}
.hero-image-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
}
.hero-image-placeholder svg { width: 80px; height: 80px; opacity: 0.6; }
.hero-image-placeholder span { font-size: 0.9rem; opacity: 0.6; text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-main);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200,150,62,0.4);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}
.btn-secondary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Sections --- */
.section {
    padding: 80px 0;
}
.section-light {
    background: var(--bg-light);
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.section-header h2 { margin-bottom: 0.3em; }
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}
.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 20px;
    border-radius: 2px;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-card-icon svg { width: 28px; height: 28px; color: var(--primary); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6em; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1em; }
.service-card .card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-card .card-link:hover { gap: 10px; }

/* --- Info Box / Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item {
    text-align: center;
    padding: 30px 20px;
}
.feature-item .icon-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.feature-item .icon-circle svg { width: 32px; height: 32px; color: #fff; }
.feature-item h4 { margin-bottom: 0.4em; }
.feature-item p { color: var(--text-light); font-size: 0.9rem; }

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0 40px;
    text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.2rem; margin-bottom: 0.2em; }
.page-header p { opacity: 0.85; font-size: 1.05rem; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
}
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent-light); }

/* --- Content Pages --- */
.content-section { padding: 60px 0; }
.content-wrapper {
    max-width: 860px;
    margin: 0 auto;
}
.content-wrapper h2 { margin-top: 2rem; }
.content-wrapper h2:first-child { margin-top: 0; }
.content-wrapper p { font-size: 1.05rem; line-height: 1.8; }
.content-wrapper ul {
    margin: 1em 0;
    padding-left: 1.5em;
}
.content-wrapper li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-info-card {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 1em; }
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.contact-info-item .icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item .details h4 {
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-main);
    margin-bottom: 4px;
}
.contact-info-item .details p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.contact-info-item .details a { color: var(--accent-light); }

.contact-form-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form-card h3 { margin-bottom: 1.2em; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group label.required::after {
    content: ' *';
    color: var(--error);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: var(--bg);
    transition: var(--transition);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(42, 90, 140, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error-text {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--error);
}
.form-group.has-error .error-text { display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group { margin-bottom: 20px; }
.checkbox-group legend {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text);
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-item label {
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
}

.form-submit { margin-top: 24px; }
.form-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-top: 16px;
    display: none;
    font-size: 0.9rem;
}
.form-message.success {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #c8e6c9;
    display: block;
}
.form-message.error {
    background: #fde8e8;
    color: var(--error);
    border: 1px solid #f5c6cb;
    display: block;
}

/* Privacy checkbox */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.privacy-check input { margin-top: 3px; }
.privacy-check a { color: var(--primary-light); text-decoration: underline; }

/* --- Google Maps Placeholder --- */
.map-container {
    width: 100%;
    height: 350px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer-col p {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    color: #fff;
    opacity: 0.8;
    font-size: 0.9rem;
}
.footer-col ul a:hover { opacity: 1; color: var(--accent-light); }
.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #fff; }
.footer-bottom-links a:hover { color: var(--accent-light); }

/* --- DATEV Navigation Button --- */
.datev-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}
.datev-nav-btn:hover {
    border-color: var(--accent);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(200,150,62,0.12);
}
.datev-nav-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.datev-nav-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #a07830 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.4em; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.5em; }
.cta-banner .btn {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.cta-banner .btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* --- Impressum / Legal --- */
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border);
}
.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* --- Kanzlei page --- */
.kanzlei-highlight {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
}
.kanzlei-highlight p { margin-bottom: 0; }

.team-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 2rem 0;
}
.team-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: var(--radius);
    min-height: 52px;
}
.team-feature svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.team-feature span { font-weight: 500; font-size: 0.95rem; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }

/* --- Leistungen overview --- */
.leistungen-list {
    list-style: none;
    padding: 0;
}
.leistungen-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.leistungen-list li:last-child { border-bottom: none; }
.leistungen-list li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-image { display: none; }
    .hero-buttons { justify-content: center; }
    .hero { padding: 60px 0; }
    .hero-content h1 { font-size: 2.2rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header-top { display: none; }

    .menu-toggle { display: block; }

    /* DATEV Button: compact on mobile, before hamburger */
    .header-main .container { flex-wrap: wrap; }
    .datev-nav-btn {
        margin-left: auto;
        margin-right: 10px;
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    .datev-nav-logo { width: 18px; height: 18px; }
    .datev-nav-label { font-size: 0.8rem; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 16px; }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
        background: var(--bg-light);
        border-radius: var(--radius);
        margin: 4px 0;
    }
    .dropdown-menu::before { display: none; }
    .nav-dropdown.open > .dropdown-menu { display: block; }
    .nav-dropdown:hover > .dropdown-menu { display: none; }
    .nav-dropdown.open:hover > .dropdown-menu { display: block; }

    .section { padding: 50px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .page-header { padding: 35px 0 30px; }
    .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .team-features { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
    .container { padding: 0 16px; }
    .contact-form-card, .contact-info-card { padding: 24px; }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}



/* --- Content Images --- */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 32px;
}
.content-with-image .text-col { order: 1; }
.content-with-image .image-col { order: 2; }
.content-with-image.image-left .text-col { order: 2; }
.content-with-image.image-left .image-col { order: 1; }

.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    object-fit: cover;
}
.content-image.rounded { border-radius: 50%; max-width: 280px; margin: 0 auto; display: block; }

.profile-section {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    margin-bottom: 32px;
}
.profile-image-wrap {
    flex-shrink: 0;
    width: 220px;
}
.profile-image-wrap img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.profile-text { flex: 1; }

.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-section .hero-content { position: relative; z-index: 1; }

.page-header-with-bg {
    position: relative;
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 0;
}
.page-header-with-bg .container { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .content-with-image {
        grid-template-columns: 1fr;
    }
    .content-with-image .text-col,
    .content-with-image .image-col,
    .content-with-image.image-left .text-col,
    .content-with-image.image-left .image-col {
        order: unset;
    }
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-image-wrap { width: 180px; }
}
