/* =============================================
   PORTAL BASE STYLES
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   HEADER - White Style (Matching React)
   ============================================ */

.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo Styles */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo .logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Fallback Logo (when no image) */
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

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

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.05em;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: lowercase;
}

.logo-tagline {
    font-size: 0.6rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Navigation */
.header-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

.nav-link {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .header-phone {
        display: flex;
    }
}

.header-phone:hover {
    color: var(--primary-color, #f97316);
}

.header-phone i {
    font-size: 1.1rem;
}

/* CTA Button - Green */
.btn-cta {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .btn-cta {
        display: flex;
    }
}

.btn-cta:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #374151;
    font-size: 1.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    color: var(--primary-color, #f97316);
}

/* Header Bottom Border - Gradient Line */
.header-border {
    height: 2px;
    background: red;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f3f4f6;
    color: var(--primary-color, #f97316);
}

.mobile-nav-link i {
    font-size: 1.25rem;
}

.mobile-phone {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-cta-btn:hover {
    background-color: #16a34a;
}

/* WhatsApp Button - Optional (if you want to keep it) */
.btn-whatsapp {
    display: none; /* Hidden by default, enable if needed */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #25D366;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-whatsapp i {
    font-size: 1.25rem;
}

.whatsapp-text {
    display: none;
}

@media (min-width: 640px) {
    .whatsapp-text {
        display: inline;
    }
}

/* =============================================
   FOOTER STYLES - CORRECTED
   ============================================= */
.site-footer {
    background-color: white;
    color: #000;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Footer Brand Section */
.footer-brand {
    text-align: left;
}

.footer-logo-wrapper {
    display: flex;
    justify-content: flex-start;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo-fallback {
    text-align: left;
}

.logo-text {
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: #000;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: left;
}

/* Footer Columns */
.footer-column {
    text-align: left;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
    text-align: left;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
    text-align: left;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #000;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #000;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li,
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #000;
    margin-bottom: 0.75rem;
}

.contact-item-address {
    text-align: left;
}

.footer-contact li i {
    color: var(--primary-color);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-icon-top {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.address-text {
    text-align: left;
}

/* Social Media */
.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1f2937;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #000;
    font-size: 0.875rem;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
