/* ===================
   DR. FAWZY ISSA WEBSITE - COMMON STYLES
   Include this file in every HTML page: <link rel="stylesheet" href="styles.css">
   =================== */

/* ===================
   GLOBAL RESET & BASE STYLES
   =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   UNIFIED HEADER STYLES - MODIFIED FOR LOGO INTEGRATION
   =================== */
header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0.75rem 0;
    min-height: 90px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 65px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Legacy logo styles - keeping for any fallback scenarios */
.logo-icon {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    color: #20b2aa;
    font-size: 1.4rem;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: #ff6b6b;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    position: relative;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.nav-links > li > a:hover {
    color: #20b2aa;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #20b2aa;
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after {
    width: 100%;
}

.nav-links .active {
    color: #20b2aa;
}

.nav-links .active::after {
    width: 100%;
}

/* Desktop non-clickable parent items */
.nav-parent {
    display: block;
    padding: 10px 5px;
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-parent:hover {
    color: #20b2aa;
}

.nav-parent .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.nav-parent:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #20b2aa;
}

/* Dropdown arrow indicator for regular links */
.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.nav-links li:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #20b2aa;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 3px solid #20b2aa;
    overflow: hidden;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 10px 0;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu a:hover {
    background: rgba(32, 178, 170, 0.1);
    color: #20b2aa;
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Special highlight item in dropdown */
.dropdown-highlight {
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-highlight a {
    color: white !important;
    border: none !important;
    font-weight: 600;
    text-align: center;
}

.dropdown-highlight a:hover {
    background: rgba(255,255,255,0.1) !important;
    padding-left: 20px !important;
    transform: scale(1.02);
}

/* Contact dropdown with multiple sections */
.contact-dropdown {
    min-width: 320px;
    padding: 20px 0;
}

.contact-section {
    padding: 0 20px;
    margin-bottom: 15px;
}

.contact-section h4 {
    color: #20b2aa;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-section a {
    padding: 8px 0 !important;
    border: none !important;
    font-size: 0.95rem;
}

.contact-section a:hover {
    padding-left: 0 !important;
    color: #20b2aa !important;
    background: none !important;
}

.contact-divider {
    height: 1px;
    background: #e9ecef;
    margin: 10px 20px;
}

.cta-button {
    background: linear-gradient(135deg, #20b2aa, #17a2b8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

/* Mobile hamburger button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Styles */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav.active {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav > ul > li > a {
    display: block;
    padding: 18px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav > ul > li > a:hover {
    background: rgba(32, 178, 170, 0.1);
    color: #20b2aa;
}

/* Mobile non-clickable parent items */
.nav-parent-mobile-clickable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    color: #2c3e50;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;

    font-weight: 500;    /* Same as original nav-parent-mobile */
    font-size: inherit;  /* This is key - inherits parent font size */
    font-family: inherit; /* Uses your website's font, not button default */
    line-height: normal; /* Prevents button's compressed line height */

    /* ADD THESE TO FORCE EXACT HEIGHT MATCH */
    min-height: 54px;        /* Forces minimum height */
    box-sizing: border-box;  /* Ensures padding is included in height */
    margin: 0;              /* Removes any default button margins */
    vertical-align: top;    /* Prevents baseline alignment issues */
}

.nav-parent-mobile-clickable:hover {
    background: rgba(32, 178, 170, 0.1);
    color: #20b2aa;
}

.nav-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.nav-parent-mobile-clickable.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #20b2aa;
}

/* Make regular nav links and dropdown buttons have same height */
.mobile-nav > ul > li > a,
.nav-parent-mobile-clickable {
    min-height: 62px;
    box-sizing: border-box;
}

/* Mobile submenu styles */
.mobile-submenu {
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-submenu.active {
    max-height: 400px;
}

.mobile-submenu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-submenu a {
    display: block;
    padding: 12px 40px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-submenu a:hover {
    background: rgba(32, 178, 170, 0.1);
    color: #20b2aa;
}


/* ===================
   MOBILE RESPONSIVE HEADER
   =================== */
@media (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo-image {
        height: 55px;
    }
    
    header {
        padding: 0.6rem 0;
        min-height: 75px;
    }
    
    nav {
        min-height: 55px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 48px;
    }
    
    header {
        padding: 0.5rem 0;
        min-height: 65px;
    }
    
    nav {
        min-height: 48px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ===================
   COMMON BUTTON STYLES
   Use these consistently across all pages
   =================== */
.btn-primary {
    background: linear-gradient(135deg, #20b2aa, #17a2b8);
    color: white;
    padding: 18px 36px;   /* was 15px 30px */
    font-size: 1.3rem;    /* add this line */
    border-radius: 35px;  /* was 30px */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(32, 178, 170, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2c3e50;
    padding: 18px 36px;   /* was 15px 30px */
    font-size: 1.3rem;    /* add this line */
    border: 2px solid #20b2aa;
    border-radius: 35px;  /* was 30px */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #20b2aa;
    color: white;
}

.btn-white {
    background: white;
    color: #20b2aa;
    padding: 18px 36px;   /* was 15px 30px */
    font-size: 1.3rem;    /* add this line */
    border-radius: 35px;  /* was 30px */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: #f8f9fa;
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 18px 36px;   /* was 15px 30px */
    font-size: 1.3rem;    /* add this line */
    border: 2px solid #20b2aa;
    border-radius: 35px;  /* was 30px */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: white;
    color: #20b2aa;
}

.btn-whatsapp {
    background: #ff6b6b; /* Your coral red */
    color: white;
    padding: 18px 36px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-whatsapp:hover {
    background: #e55555;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.btn-whatsapp.outlined {
    border: 2px solid white;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
    transform: translateY(-2px);
}

.whatsapp-icon-nav {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline,
.btn-whatsapp {
    /* existing styles... */
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ===================
   COMMON SECTION STYLES
   =================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================
   UNIFIED FOOTER STYLES
   =================== */
.contact-footer {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.contact-footer .section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-footer .section-subtitle {
    color: #bdc3c7;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item-icon {
    font-size: 2rem;
    color: #20b2aa;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #bdc3c7;
    margin: 0;
}

.contact-item small {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Fix for footer contact item alignment */
.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    
    /* ADD THESE LINES TO FIX ALIGNMENT */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Ensures all boxes have same minimum height */
}

.contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

/* Wrap the content above the button */
.contact-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 1.5rem; /* This adds space between content and button */
}

/* WhatsApp icon styling for footer */
.footer-whatsapp-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1); /* Makes it white if the PNG isn't already white */
}

/* Ensure button stays at bottom */
.contact-link-footer {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 12px 20px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    align-self: center;
    
    /* ADD THESE LINES FOR CONSISTENT WIDTH */
    width: 160px;        /* Fixed width - adjust as needed */
    text-align: center;  /* Centers the text within the button */
}

.contact-link-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* ===================
   COMMON UTILITY CLASSES
   Use these for consistent spacing and styling
   =================== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline,
    .btn-whatsapp {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .whatsapp-icon {
    width: 20px;
    height: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* ===================
   COMMON ANIMATIONS
   =================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}