/* ==========================================================================
   Morning Star Legal Services - Design System & Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #0f172a;        /* Deep Slate Navy */
    --primary-light: #1e293b;  /* Medium Slate */
    --accent: #c5a880;         /* Soft Legal Gold */
    --accent-dark: #a88a62;    /* Deep Gold/Bronze */
    --accent-light: #f7f3eb;   /* Light Cream Gold */
    --text: #475569;           /* Slate Text */
    --text-dark: #0f172a;      /* Navy Black */
    --text-light: #f8fafc;     /* Ice White */
    --bg-light: #fdfdfc;       /* Warm Stone Background */
    --bg-card: #ffffff;
    --bg-section-alt: #f8f6f2; /* Cream Section Background */
    --border: #e2e8f0;         /* Slate Border */
    --success: #059669;        /* Emerald Success */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-section-alt);
}

.hidden {
    display: none !important;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Top Bar Styling */
.top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
}

.top-contact a:hover {
    opacity: 1;
    color: var(--accent);
}

.top-contact svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.top-contact .separator {
    color: rgba(255, 255, 255, 0.2);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* Main Navigation Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-star svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.6rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 1.5px;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section Styling */
.hero {
    position: relative;
    padding: 10rem 0 8rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_banner.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.02);
    transition: transform 10s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 750px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Values Bar Styling */
.values-bar {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 3rem 0;
    border-bottom: 4px solid var(--accent);
}

.values-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-item {
    text-align: center;
}

.value-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.value-item h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.value-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Sections Global Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 1.5rem auto;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text);
}

/* Services Section Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(197, 168, 128, 0.4);
}

.service-icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 38px;
    height: 38px;
    fill: var(--accent-dark);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text);
}

/* About Us Section Styling */
.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.sub-heading {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.highlight-item .hl-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.highlight-item .hl-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-top: 0.4rem;
}

.about-image-card {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vector-art {
    width: 250px;
    height: 250px;
}

.visual-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(197, 168, 128, 0.4);
}

/* Solicitors Section Grid */
.solicitors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.solicitors-grid.single-solicitor {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
}

.solicitor-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.solicitor-card:hover {
    box-shadow: var(--shadow-lg);
}

.solicitor-image-container {
    height: 380px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.solicitor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solicitor-card:hover .solicitor-img {
    transform: scale(1.03);
}

.solicitor-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.solicitor-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.solicitor-role {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.solicitor-info p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.solicitor-credentials {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

.solicitor-credentials li {
    margin-bottom: 0.6rem;
}

.solicitor-credentials li:last-child {
    margin-bottom: 0;
}

/* Enquiries Section Grid & Form */
.enquiries-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: flex-start;
}

.enquiries-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.enquiries-info p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.enq-contact-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.enq-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.eci-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: var(--accent-light);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.eci-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-dark);
}

.enq-contact-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.enq-contact-item p {
    font-size: 0.9rem;
    margin: 0;
}

.enquiries-form-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-dark);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.form-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #d1fae5;
    border-radius: 50%;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.form-success-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-success-card p {
    color: var(--text);
    font-size: 1rem;
}

/* Footer Section Styling */
.footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 5rem 0 3rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.logo-white {
    margin-bottom: 1.5rem;
}

.logo-white .logo-title {
    color: var(--text-light);
}

#footer-tagline {
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.copyright {
    font-size: 0.8rem;
    color: #64748b;
}

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

.footer-links strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.2rem;
}

.mara-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.mara-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.mara-badge:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solicitors-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .solicitor-image-container {
        height: 400px;
    }
    
    .enquiries-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .main-header {
        padding: 0.8rem 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-card);
        z-index: 99;
        transition: var(--transition);
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 8rem 0 6rem 0;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .values-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-card {
        order: -1;
    }
    
    .enquiries-form-card {
        padding: 2rem;
    }
    
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
