/*
Theme Name: BOBAMİD
Theme URI: https://bobamid.org.tr
Author: BOBAMİD Web Team
Author URI: https://bobamid.org.tr
Description: BOBAMİD - Bornova Bayraklı Müteahhitler ve İş İnsanları Derneği için özel tasarlanmış WordPress teması. Elementor ile tam uyumlu, yönetilebilir ve modern tasarım.
Version: 17.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bobamid
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor
*/

/* ============================================
   BOBAMİD WordPress Theme - Core Styles
   ============================================ */

/* --- CSS Variables (Tema Renkleri - Logo Bazlı) --- */
:root {
    --bobamid-primary: #011d8a;
    --bobamid-primary-light: #0228b0;
    --bobamid-primary-dark: #001570;
    --bobamid-accent: #c9a84c;
    --bobamid-accent-light: #dfc06e;
    --bobamid-white: #ffffff;
    --bobamid-gray-50: #f9fafb;
    --bobamid-gray-100: #f3f4f6;
    --bobamid-gray-200: #e5e7eb;
    --bobamid-gray-300: #d1d5db;
    --bobamid-gray-400: #9ca3af;
    --bobamid-gray-500: #6b7280;
    --bobamid-gray-600: #4b5563;
    --bobamid-gray-700: #374151;
    --bobamid-gray-800: #1f2937;
    --bobamid-gray-900: #111827;
    --bobamid-text-light: #ffffff;
    --bobamid-text-dark: #1f2937;
    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --container-max: 1280px;
    --section-padding: 5rem;
    --border-radius: 0.75rem;
    --transition-base: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bobamid-gray-600);
    background-color: var(--bobamid-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bobamid-navy);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--bobamid-gold);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--bobamid-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

p {
    margin-bottom: 1rem;
}

/* --- Container --- */
.bobamid-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .bobamid-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* --- Section --- */
.bobamid-section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.bobamid-section--gray {
    background-color: var(--bobamid-gray-50);
}

.bobamid-section--navy {
    background-color: var(--bobamid-navy);
    color: var(--bobamid-white);
}

.bobamid-section--navy h2,
.bobamid-section--navy h3,
.bobamid-section--navy h4 {
    color: var(--bobamid-white);
}

/* --- Section Header --- */
.bobamid-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(26, 39, 68, 0.05);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bobamid-navy);
    margin-bottom: 1rem;
}

.bobamid-section--navy .bobamid-section-label {
    background-color: rgba(201, 168, 76, 0.2);
    color: var(--bobamid-gold);
}

.bobamid-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--bobamid-navy);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .bobamid-section-title {
        font-size: 2.5rem;
    }
}

.bobamid-section--navy .bobamid-section-title {
    color: var(--bobamid-white);
}

/* --- Buttons --- */
.bobamid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.5;
}

.bobamid-btn--primary {
    background-color: var(--bobamid-gold);
    color: var(--bobamid-navy);
    border-color: var(--bobamid-gold);
}

.bobamid-btn--primary:hover {
    background-color: var(--bobamid-gold-light);
    border-color: var(--bobamid-gold-light);
    color: var(--bobamid-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}

.bobamid-btn--secondary {
    background-color: var(--bobamid-white);
    color: var(--bobamid-navy);
    border-color: var(--bobamid-white);
}

.bobamid-btn--secondary:hover {
    background-color: var(--bobamid-gray-50);
    border-color: var(--bobamid-gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bobamid-btn--outline {
    background-color: transparent;
    color: var(--bobamid-white);
    border-color: var(--bobamid-white);
}

.bobamid-btn--outline:hover {
    background-color: var(--bobamid-white);
    color: var(--bobamid-navy);
    transform: translateY(-2px);
}

.bobamid-btn--gold-outline {
    background-color: transparent;
    color: var(--bobamid-gold);
    border-color: var(--bobamid-gold);
}

.bobamid-btn--gold-outline:hover {
    background-color: var(--bobamid-gold);
    color: var(--bobamid-navy);
    transform: translateY(-2px);
}

/* --- Cards --- */
.bobamid-card {
    background-color: var(--bobamid-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-base);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bobamid-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.bobamid-card--navy {
    background-color: var(--bobamid-navy-light);
    color: var(--bobamid-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bobamid-card--navy:hover {
    background-color: var(--bobamid-navy);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.bobamid-card--navy h4 {
    color: var(--bobamid-white);
}

/* --- Grid System --- */
.bobamid-grid {
    display: grid;
    gap: 1.5rem;
}

.bobamid-grid--2 {
    grid-template-columns: 1fr;
}

.bobamid-grid--3 {
    grid-template-columns: 1fr;
}

.bobamid-grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bobamid-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bobamid-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bobamid-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bobamid-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .bobamid-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Badge --- */
.bobamid-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bobamid-badge--navy {
    background-color: var(--bobamid-navy);
    color: var(--bobamid-white);
}

.bobamid-badge--gold {
    background-color: var(--bobamid-gold);
    color: var(--bobamid-navy);
}

.bobamid-badge--green {
    background-color: #dcfce7;
    color: #15803d;
}

.bobamid-badge--blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.bobamid-badge--orange {
    background-color: #ffedd5;
    color: #c2410c;
}

/* --- Page Header --- */
.bobamid-page-header {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--bobamid-navy-dark), var(--bobamid-navy), var(--bobamid-navy-light));
    padding: 5rem 0 4rem;
    overflow: hidden;
    text-align: left;
}

.bobamid-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
    filter: blur(60px);
}

.bobamid-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    filter: blur(80px);
}

.bobamid-page-header h1 {
    color: var(--bobamid-white);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.bobamid-page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 48rem;
    position: relative;
    z-index: 1;
}

/* --- Breadcrumbs --- */
.bobamid-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.bobamid-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
}

.bobamid-breadcrumbs a:hover {
    color: var(--bobamid-gold);
}

.bobamid-breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.4);
}

.bobamid-breadcrumbs .current {
    color: var(--bobamid-gold);
    font-weight: 500;
}

/* --- Elementor Widget Defaults --- */
.bobamid-services-grid {
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
}

.service-title {
    margin-bottom: 0.75rem;
}

.service-description,
.why-us-desc {
    font-size: 0.875rem;
    line-height: 1.6;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
}

.bobamid-stats-inline .stat-value {
    font-size: 2.5rem;
}

.stat-label {
    font-size: 0.875rem;
}

.mvv-card {
    border-radius: 1rem;
    padding: 2rem;
}

.mvv-icon-wrap {
    border-radius: 0.75rem;
}

.mvv-text {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.why-us-card {
    padding: 2rem;
}

.bobamid-hero-overlay {
    background: linear-gradient(135deg, #111b30, #1a2744, #243354);
}

.bobamid-hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
}

.hero-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.875rem;
}

.bobamid-cta-section {
    background-color: #1a2744;
}

.bobamid-cta-container {
    padding: 5rem 1rem;
}

.bobamid-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(201, 168, 76, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.bobamid-cta-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bobamid-gold);
    animation: bobamid-pulse 2s ease-in-out infinite;
}

.bobamid-cta-badge-text {
    color: var(--bobamid-gold);
    font-size: 0.875rem;
    font-weight: 600;
}

.bobamid-cta-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bobamid-cta-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.bobamid-topbar {
    background-color: var(--bobamid-primary);
}

.bobamid-header-main {
    background-color: var(--bobamid-white);
}

.bobamid-header-inner {
    padding: 0 1rem;
}

.bobamid-header-logo img {
    width: 56px;
    height: 56px;
}

.bobamid-header-nav a {
    color: var(--bobamid-primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
}

.bobamid-header-nav .active > a {
    color: var(--bobamid-accent);
}

.bobamid-header-cta-btn {
    background-color: var(--bobamid-accent);
    color: var(--bobamid-primary-dark);
}

.bobamid-footer {
    background-color: var(--bobamid-primary);
    color: rgba(255, 255, 255, 0.7);
}

.bobamid-footer a,
.bobamid-footer-description {
    color: rgba(255, 255, 255, 0.7);
}

.bobamid-footer h4 {
    color: var(--bobamid-accent);
}

.bobamid-footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* --- Contact Form 7 Integration --- */
.bobamid-cf7-form .wpcf7-form {
    display: grid;
    gap: 1rem;
}

.bobamid-cf7-form .wpcf7,
.bobamid-cf7-form .wpcf7-form,
.bobamid-cf7-form .wpcf7-form p,
.bobamid-cf7-form .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.bobamid-cf7-form .wpcf7-form p {
    margin: 0;
}

.bobamid-cf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.bobamid-cf7-grid > * {
    min-width: 0;
}

.bobamid-cf7-full,
.bobamid-cf7-grid .bobamid-cf7-full {
    grid-column: 1 / -1;
}

.bobamid-cf7-form label {
    display: block;
    width: 100%;
    color: var(--bobamid-gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.bobamid-cf7-form input[type="text"],
.bobamid-cf7-form input[type="email"],
.bobamid-cf7-form input[type="tel"],
.bobamid-cf7-form input[type="url"],
.bobamid-cf7-form textarea,
.bobamid-cf7-form select {
    width: 100% !important;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--bobamid-gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: var(--bobamid-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bobamid-cf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bobamid-cf7-form input:focus,
.bobamid-cf7-form textarea:focus,
.bobamid-cf7-form select:focus {
    outline: none;
    border-color: var(--bobamid-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.bobamid-cf7-form .wpcf7-submit {
    width: 100% !important;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.bobamid-cf7-form .wpcf7-spinner {
    margin: 0 auto;
}

.bobamid-cf7-form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.bobamid-cf7-form .wpcf7-not-valid-tip {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.bobamid-form .bobamid-cf7-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bobamid-primary-dark);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bobamid-accent);
}

.bobamid-form .bobamid-cf7-form h3:first-child {
    margin-top: 0;
}

.bobamid-form .bobamid-cf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bobamid-gray-50);
    border: 1px solid var(--bobamid-gray-200);
    border-radius: 0.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.bobamid-form .bobamid-cf7-form .wpcf7-acceptance input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--bobamid-primary-dark);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .bobamid-cf7-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Gold Accent Line --- */
.bobamid-gold-line {
    width: 60px;
    height: 3px;
    background-color: var(--bobamid-gold);
    margin: 1rem auto;
}

/* --- Icon Circle --- */
.bobamid-icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--bobamid-gold);
    transition: var(--transition-base);
}

.bobamid-card:hover .bobamid-icon-circle {
    background-color: var(--bobamid-gold);
    color: var(--bobamid-white);
}

.bobamid-section--navy .bobamid-icon-circle {
    background-color: rgba(201, 168, 76, 0.15);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bobamid-navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bobamid-navy-light);
}

/* --- Elementor Compatibility --- */
.elementor-widget-bobamid-hero,
.elementor-widget-bobamid-stats,
.elementor-widget-bobamid-services,
.elementor-widget-bobamid-chairman-message,
.elementor-widget-bobamid-featured-projects,
.elementor-widget-bobamid-why-us,
.elementor-widget-bobamid-news,
.elementor-widget-bobamid-cta,
.elementor-widget-bobamid-social,
.elementor-widget-bobamid-board-members,
.elementor-widget-bobamid-projects-list,
.elementor-widget-bobamid-contact-form,
.elementor-widget-bobamid-hakkimizda-content,
.elementor-widget-bobamid-mvv-cards {
    width: 100%;
}

/* Override Elementor defaults - full-width sections span the viewport */
.elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100%;
    width: 100%;
}

/* Ensure Elementor pages are full-width with no container constraints */
.elementor-page .site-main,
body.elementor-page .site-main {
    max-width: 100% !important;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Elementor Header Footer template - full width */
body.page-template-elementor_header_footer .site-main {
    max-width: 100% !important;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Full-width sections: no side padding */
.elementor-section.elementor-section-full_width {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Widgets inside full-width sections handle their own max-width via .bobamid-container */
.elementor-section-full_width .bobamid-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom logo in header - constrain size */
.custom-logo-link {
    display: flex !important;
    align-items: center;
}

.custom-logo {
    max-height: 48px !important;
    width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 50%;
}

/* --- WordPress Alignment --- */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* --- WordPress Captions --- */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--bobamid-gray-500);
    text-align: center;
    padding: 0.5rem 0;
}

/* --- Screen Reader Text --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --- Selection --- */
::selection {
    background-color: var(--bobamid-gold);
    color: var(--bobamid-navy);
}

/* --- Animations --- */
@keyframes bobamid-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bobamid-animate-fadeInUp {
    animation: bobamid-fadeInUp 0.6s ease-out;
}

@keyframes bobamid-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bobamid-animate-pulse {
    animation: bobamid-pulse 2s ease-in-out infinite;
}

/* --- Default Header (when Elementor Pro header not assigned) --- */
.bobamid-header {
    background-color: var(--bobamid-white);
    border-bottom: 1px solid var(--bobamid-gray-200);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bobamid-header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bobamid-header__logo {
    flex-shrink: 0;
}

.bobamid-header__site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bobamid-navy);
    text-decoration: none;
}

.bobamid-header__site-title:hover {
    color: var(--bobamid-gold);
}

.bobamid-header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .bobamid-header__nav {
        display: flex;
        align-items: center;
    }
}

.bobamid-nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.bobamid-nav-menu > li {
    position: relative;
}

.bobamid-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bobamid-gray-700);
    border-radius: 0.5rem;
    transition: var(--transition-base);
    text-decoration: none;
}

.bobamid-nav-menu > li > a:hover {
    color: var(--bobamid-navy);
    background-color: var(--bobamid-gray-50);
}

.bobamid-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bobamid-white);
    border: 1px solid var(--bobamid-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem;
    list-style: none;
    z-index: 10000;
}

.bobamid-nav-menu .has-dropdown:hover > .sub-menu,
.bobamid-nav-menu .has-dropdown:focus-within > .sub-menu {
    display: block;
}

.bobamid-nav-menu .sub-menu li a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--bobamid-gray-700);
    border-radius: 0.375rem;
    transition: var(--transition-base);
    text-decoration: none;
}

.bobamid-nav-menu .sub-menu li a:hover {
    background-color: var(--bobamid-gray-50);
    color: var(--bobamid-navy);
}

/* Mobile Toggle Button */
.bobamid-header__mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 1024px) {
    .bobamid-header__mobile-toggle {
        display: none;
    }
}

.bobamid-header__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--bobamid-navy);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* --- Default Footer (when Elementor Pro footer not assigned) --- */
.bobamid-footer {
    background-color: var(--bobamid-navy);
    color: rgba(255,255,255,0.8);
    padding: 2rem 0;
}

.bobamid-footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.bobamid-footer__info {
    text-align: center;
    font-size: 0.875rem;
}

.bobamid-footer__info p {
    margin: 0;
}

/* --- Admin Bar Fix --- */
body.admin-bar {
    margin-top: -32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        margin-top: -46px;
    }
}

/* --- HFE Header/Footer Styles --- */
/* When HFE plugin is active, style the Elementor-rendered header/footer */

/* HFE Header: sticky main header section */
.hfe-header .bobamid-main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* HFE Header: nav dropdown hover */
.hfe-header .bobamid-nav-dropdown:hover > .sub-menu,
.hfe-header .bobamid-nav-dropdown:focus-within > .sub-menu {
    display: block !important;
}

/* HFE Header: topbar hidden on mobile */
@media (max-width: 1023px) {
    .hfe-header .bobamid-topbar-section {
        display: none;
    }
    .hfe-header .bobamid-main-header .bobamid-header-nav {
        display: none;
    }
}

/* HFE Footer: link hover color */
.hfe-footer a:hover {
    color: #c9a84c !important;
}

/* HFE Footer: responsive grid */
@media (min-width: 768px) {
    .hfe-footer .bobamid-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (min-width: 1024px) {
    .hfe-footer .bobamid-footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Ensure HFE templates use full width */
.hfe-header .elementor-section,
.hfe-footer .elementor-section {
    max-width: 100% !important;
}

/* HFE header dropdown menu styles */
.hfe-header .bobamid-nav-dropdown .sub-menu a:hover {
    color: #1a2744;
    background: #f3f4f6;
    border-radius: 0.375rem;
}
