@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/**
 * Regal Law Centre — Global Stylesheet
 * File: public_html/assets/css/style.css
 */

/* Premium Custom Variables */
:root {
    /* Baseline Dark Theme (Brand Cyan & Gold) */
    --bg-canvas: #061A21;
    --bg-card: #0b232c;
    --bg-card-hover: #12303b;
    --bg-expanded: #081e26;
    --bg-expanded-content: #0a242f;
    --bg-nested-card: #0e2a36;
    --bg-header: rgba(6, 26, 33, 0.95);
    --bg-footer: #061A21;
    --text-header-footer: #FFFFFF;
    --border-header-footer: #A9865C;
    
    --bg-input: #0b232c;
    --bg-inner-box: #081e26;
    
    --border-color: rgba(169, 134, 92, 0.25);
    --border-hover: rgba(169, 134, 92, 0.5);
    --border-sharp: rgba(169, 134, 92, 0.85);
    
    --text-primary: #FFFFFF;
    --text-secondary: #C5D3D6;
    --text-muted: #7E8F91;
    
    /* Brand Accents */
    --gold: #A9865C;
    --gold-hover: #c5a37a;
    --gold-glow: rgba(169, 134, 92, 0.25);
    --whatsapp-green: #25D366;
    
    --font-family: 'Verdana', sans-serif;
    --shadow-premium: 0 4px 15px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Overrides - High Contrast White & Gold */
body.light-mode {
    --bg-canvas: #F8F5F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-expanded: #FFFFFF;
    --bg-expanded-content: #FFFFFF;
    --bg-nested-card: #F8F5F0;
    --bg-header: #F8F5F0; /* Light cream header in Light Mode globally */
    --bg-footer: #061A21; /* Brand Cyan Footer in Light Mode */
    --text-header-footer: #061A21; /* Dark text on cream navbar */
    --border-header-footer: rgba(6, 26, 33, 0.06);
    
    --bg-input: #FFFFFF;
    --bg-inner-box: #F8F5F0;
    
    --border-color: rgba(6, 26, 33, 0.35);
    --border-hover: rgba(169, 134, 92, 0.4);
    --border-sharp: #061A21;
    
    --text-primary: #061A21;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    --gold: #A9865C;
    --gold-hover: #c5a37a;
    --gold-glow: rgba(169, 134, 92, 0.15);
    --shadow-premium: 0 4px 20px rgba(6, 26, 33, 0.04);
}

/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition-smooth);
    font-size: 17px;
}

hr {
    border: none;
    border-top: 4px solid var(--border-sharp);
    margin: 1.5rem 0;
}


/* Ambient Background Glow (Dark Mode Only) */
.ambient-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(169, 134, 92, 0.01) 0%, rgba(5, 11, 13, 0) 70%);
    top: -200px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}
body.light-mode .ambient-glow {
    display: none;
}

/* Header / Navigation */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--border-header-footer);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
    color: var(--text-header-footer);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.header-nav a {
    color: var(--text-header-footer);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    font-family: Arial, sans-serif;
    margin-left: 24px;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.header-nav a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle-btn {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background-color: var(--gold);
    color: var(--bg-canvas);
    border-color: var(--gold);
}

.theme-toggle-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke: currentColor;
}

.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: block;
}

body.light-mode .theme-toggle-btn .sun-icon {
    display: block;
}

body.light-mode .theme-toggle-btn .moon-icon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-header-footer);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    z-index: 101;
}

.mobile-menu-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-menu-toggle svg {
    fill: currentColor;
}

.mobile-nav-overlay {
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    height: calc(100vh - 54px);
    background-color: var(--bg-canvas);
    z-index: 90;
    display: none;
    flex-direction: column;
    padding: 2.5rem 8%;
    gap: 2rem;
    box-shadow: var(--shadow-premium);
    animation: slideDown 0.25s ease-out;
    box-sizing: border-box;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.mobile-nav-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Footer Section */
footer {
    background-color: var(--bg-footer);
    border-top: 2px solid var(--border-header-footer);
    padding: 1.8rem 5% 1.2rem 5%;
    color: var(--text-header-footer);
    font-size: 0.7rem;
    transition: var(--transition-smooth);
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 400px;
}

.footer-logo {
    height: 60px;
    width: auto;
    align-self: flex-start;
}

.footer-brand p {
    line-height: 1.4;
    font-size: 0.68rem;
    color: var(--text-header-footer);
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-column h5 {
    color: #A9865C;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.3rem;
}

.footer-column a {
    color: var(--text-header-footer);
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.68rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: #A9865C;
    opacity: 1;
}

.footer-bottom {
    max-width: 1250px;
    margin: 1.2rem auto 0 auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-header-footer);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.68rem;
    color: var(--text-header-footer);
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 1.2rem;
}

.footer-bottom-links a {
    color: var(--text-header-footer);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: #A9865C;
}

/* Common Typography & Layout elements */
main {
    flex: 1;
    padding: 3rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes contentCardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card {
    max-width: 850px;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-premium);
    animation: contentCardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bold Headings as per requirement */
h1 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--border-sharp);
    padding-bottom: 0.8rem;
}

h2 {
    color: var(--gold);
    font-size: 1.05rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--gold-hover);
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Media Queries for Layout Adaptability */
@media (max-width: 768px) {
    .header-nav, .header-controls .contact-email {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .content-card {
        padding: 2rem 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .footer-links {
        gap: 2rem;
        width: 100%;
        justify-content: space-between;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Shared Accordion System (Index & CSR & Get Involved) */
details.dept-accordion {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
}

details.dept-accordion:hover {
    border-color: var(--border-hover);
}

details.dept-accordion[open] {
    border: 1.5px solid var(--border-sharp);
    background-color: var(--bg-expanded);
}

details.dept-accordion > summary {
    padding: 1.4rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    color: var(--text-primary);
    outline: none;
    text-align: left;
}

details.dept-accordion > summary::-webkit-details-marker {
    display: none;
}

.summary-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-right: 1.5rem;
}

.summary-content svg {
    width: 32px;
    height: 32px;
    fill: var(--gold);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.summary-title {
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.35;
}

.summary-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

details.dept-accordion[open] > summary .summary-arrow {
    transform: rotate(45deg);
}

.expanded-content {
    padding: 1.5rem 1.2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-expanded-content);
    animation: fadeIn 0.4s ease-out;
    font-size: 0.85rem;
}

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

/* Floating WhatsApp Chat Widget */
.wa-chat-container {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 1010 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

.wa-tooltip {
    position: absolute !important;
    bottom: 160px !important;
    right: 0 !important;
    background-color: var(--bg-card) !important;
    border: 1.5px solid var(--gold) !important;
    color: var(--text-secondary) !important;
    font-size: 0.62rem !important;
    padding: 0.7rem 0.9rem !important;
    border-radius: 4px !important;
    width: 260px !important;
    max-width: 260px !important;
    box-shadow: var(--shadow-premium) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: var(--transition-smooth) !important;
    text-align: right !important;
    line-height: 1.4 !important;
    pointer-events: none !important;
}

.wa-floating-link:hover ~ .wa-tooltip,
.wa-tooltip:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.wa-floating-link {
    background-color: var(--whatsapp-green) !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    text-decoration: none !important;
    pointer-events: auto !important;
}

.wa-floating-link:hover {
    transform: scale(1.05) !important;
}

.wa-floating-link svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
}

/* Floating Email Link */
.email-floating-link {
    background-color: var(--gold) !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
    pointer-events: auto !important;
}

.email-floating-link:hover {
    transform: scale(1.05) !important;
}

.email-floating-link svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
}

/* Scoped Typography and Layout Overrides in Light Mode per Specifications */
body.light-mode header {
    background: #F8F5F0;
    border-bottom: 3px solid #061A21;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.light-mode .header-nav a {
    color: #5A4E3C;
}
body.light-mode .header-nav a:hover {
    color: #C9A84C;
    border-bottom-color: #C9A84C;
}
body.light-mode .logo-img {
    height: 60px;
}

/* Small Footer Styling */
.footer {
    background: #061A21;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(169, 134, 92, 0.25);
}
.footer-copy {
    font-size: 10px;
    color: #9A8C78;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a, .footer-links span {
    font-size: 10px;
    color: #9A8C78;
    font-family: Arial, sans-serif;
    margin-left: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.footer-links a:hover, .footer-links span:hover {
    color: #C9A84C;
}
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }
    .footer-links {
        justify-content: center;
        gap: 16px;
    }
    .footer-links a, .footer-links span {
        margin-left: 0;
    }
}
