/*
Theme Name: Legal Staging Theme Pro
Author: Custom Build
Description: A dynamic staging theme for legal.allowancecalculator.in
Version: 3.0
*/

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background: #fbfbfb;
    margin: 0;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
}

/* Custom Logo */
.custom-logo {
    max-width: 250px;
    height: auto;
}

/* Header */
.site-header {
    background: var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding h1 {
    margin: 0;
    font-size: 24px;
}
.site-header a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}
.site-header a:hover {
    color: var(--accent-color);
}
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

/* Header Search */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.2);
}
.header-search .search-field {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    width: 150px;
    transition: width 0.3s ease;
}
.header-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.header-search .search-field:focus {
    outline: none;
    width: 200px;
    background: rgba(255, 255, 255, 0.15);
}
.header-search .search-submit {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
}
.header-search .search-submit:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
    color: white;
}
.hero h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}
.hero .tagline {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 300;
}
.btn-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
    background: #a88d66;
    transform: translateY(-2px);
    color: white;
}

/* Practice Areas Grid */
.practice-areas {
    padding: 80px 0;
    background: #fff;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: #fff;
    border-top: 4px solid var(--accent-color);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.service-card h4 {
    font-size: 1.4rem;
    margin-top: 0;
}
.service-card .read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.3s;
}
.service-card:hover .read-more {
    color: var(--accent-color);
}

/* Page Content */
.page-content {
    padding: 60px 5%;
    min-height: 40vh;
}

/* Footer Layout */
.site-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 40px;
}
.footer-column {
    flex: 1;
    min-width: 250px;
}
.footer-column h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Scroll Animations */
.fade-in-section, .service-card {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.is-visible, .service-card.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}