/*
Theme Name: SKM Chambers
Author: SKM Chambers
Version: 1.0
*/

:root {
    --background: #FAFAF7;
    --card-bg: #FFFFFF;
    --text: #1C1C1C;
    --accent: #0D1B2A;
    --light-text: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* ==================== */
/* DISCLAIMER OVERLAY */
/* ==================== */

#disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.website-content {
    display: none;
}

.disclaimer-content {
    max-width: 560px;
    background-color: var(--card-bg);
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    animation: fadeIn 0.5s ease;
}

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

.disclaimer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text);
}

.disclaimer-text {
    margin-bottom: 32px;
    line-height: 1.6;
    color: var(--light-text);
}

.disclaimer-text p {
    margin-bottom: 16px;
}

.disclaimer-text ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.disclaimer-text li {
    margin-bottom: 8px;
}

.disclaimer-divider {
    height: 1px;
    background-color: var(--border);
    margin: 24px 0;
}

.disclaimer-actions {
    text-align: center;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 4px;
    min-width: 160px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ==================== */
/* CLEAN HEADER FIX */
/* ==================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.chamber-name {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.chamber-name-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

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

.mobile-nav-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ==================== */
/* MAIN CONTENT */
/* ==================== */

.main-content {
    padding-top: 80px;
}

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

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text);
}

.section-divider {
    width: 40px;
    height: 1px;
    background-color: var(--accent);
    margin: 0 auto 32px;
}

/* ==================== */
/* HERO SECTION */
/* ==================== */

.hero {
    text-align: center;
    padding-bottom: 0;
    max-width: 780px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--light-text);
    max-width: 500px;
    margin: 0 auto 24px;
}

.chamber-info {
    color: var(--light-text);
    font-size: 14px;
    margin-top: 32px;
}

/* ==================== */
/* LAWYERS SECTION */
/* ==================== */

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
    max-width: 780px;
    margin: 0 auto;
}

.lawyer-card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lawyer-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 500;
}

.lawyer-title {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.lawyer-bio {
    color: var(--light-text);
    font-weight: 300;
    line-height: 1.6;
}

/* ==================== */
/* FORMS SECTION */
/* ==================== */

.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.form-divider {
    height: 1px;
    background-color: var(--accent);
    margin: 0 0 24px;
    width: 40px;
    align-self: center;
}

/* ==================== */
/* WPForms Styling */
/* ==================== */

.wpforms-container {
    margin-top: 10px;
}

.wpforms-form .wpforms-field {
    margin-bottom: 15px;
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="date"],
.wpforms-form select,
.wpforms-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #000;
    background-color: white;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.wpforms-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpforms-form .wpforms-submit {
    background-color: #000;
    color: white;
    border: 1px solid #000;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    border-radius: 0;
}

.wpforms-form .wpforms-submit:hover {
    background-color: #222;
    border-color: #222;
}

/* Success/Error Messages */
.wpforms-confirmation-container {
    background-color: #f1f8e9;
    color: #33691e;
    padding: 15px;
    border-radius: 0;
    margin-top: 15px;
    border: 1px solid #c5e1a5;
    text-align: center;
}

.wpforms-error-container {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px;
    border-radius: 0;
    margin-bottom: 15px;
    border: 1px solid #ffcdd2;
}

/* ==================== */
/* ASSOCIATED CHAMBERS */
/* ==================== */

.associated-list {
    max-width: 600px;
    margin: 0 auto;
}

.associated-item {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.associated-item:last-child {
    border-bottom: none;
}

.associated-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 18px;
}

.associated-specialty {
    color: var(--light-text);
    font-size: 14px;
    font-weight: 300;
}

/* ==================== */
/* FOOTER */
/* ==================== */

.footer {
    padding: 64px 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.footer-address {
    color: var(--light-text);
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 300;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

.footer-divider {
    width: 20px;
    height: 1px;
    background-color: var(--accent);
    margin: 32px auto;
}

.footer-legal {
    color: var(--light-text);
    font-size: 12px;
    font-weight: 300;
}

.disclaimer-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    margin-left: 16px;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: var(--accent);
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

@media (max-width: 1024px) {
    .forms-container {
        gap: 30px;
    }
    
    .form-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-container {
        padding: 12px 20px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo {
        height: 36px;
        width: 36px;
    }
    
    .chamber-name-text {
        font-size: 20px;
    }
    
    /* Content */
    .section {
        padding: 48px 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .disclaimer-content {
        padding: 32px 24px;
    }
    
    .disclaimer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Forms */
    .forms-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 500px;
    }
    
    /* Lawyers */
    .lawyers-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    /* Header */
    .header-container {
        padding: 10px 15px;
    }
    
    .chamber-name-text {
        font-size: 18px;
    }
    
    .logo {
        height: 32px;
        width: 32px;
    }
    
    /* Content */
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .associated-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .forms-container {
        max-width: 100%;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .lawyer-card {
        padding: 24px;
    }
}