/* ===================================
   Allan Levin & Associates - Stylesheet
   =================================== */

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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2C2C2C;
    --secondary-color: #6B6B6B;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --accent-color: #3D3D3D;
    --white: #ffffff;
    --gray-light: #E8E8E8;
    --gray-medium: #CCCCCC;
    --gray-dark: #4A4A4A;

    --font-primary: 'Kazimir Text', sans-serif;
    --font-secondary: 'Kazimir Text', sans-serif;

    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Load Kazimir Text font family - All weights */
/* Light weight (300) */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Regular weight (400) - for body text */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Book weight (450) */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-Book.ttf') format('truetype');
    font-weight: 450;
    font-style: normal;
}

/* Medium weight (500) */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Semibold weight (600) - for headings */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Bold weight (700) */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ExtraBold weight (800) */
@font-face {
    font-family: 'Kazimir Text';
    src: url('../fonts/KazimirText-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

body {
    font-family: var(--font-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.header-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gray-dark);
    border-bottom-color: var(--gray-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: url('../images/Hero_Home.jpg') center/cover no-repeat;
    min-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    position: relative;
}

.hero-content {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    line-height: 1.6;
    font-weight: 400;
    text-shadow:
        0 0 15px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 0, 0, 0.7),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

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

.lead-text {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Divider */
.divider {
    width: 100px;
    height: 2px;
    background-color: var(--gray-dark);
    margin: 1.5rem auto;
}

.divider.center {
    margin: 1.5rem auto;
}

/* Content Block */
.content-block {
    max-width: 900px;
    margin: 0 auto;
}

/* Approach List */
.approach-list {
    max-width: 900px;
    margin: 0 auto;
}

.approach-list ul {
    list-style: disc;
    padding-left: 2rem;
    text-align: left;
}

.approach-list li {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Practice Cards */
.practice-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    max-width: 500px;
    margin: 0 auto;
}

.practice-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.practice-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.practice-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.practice-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.practice-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Practice Preview */
.practice-preview {
    background-color: var(--gray-light);
}

/* Team Section */
.team-member {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 3rem;
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 0.25rem;
}

.team-image {
    width: 100%;
    border-radius: 4px;
}

.team-info h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-info .team-description {
    margin-bottom: 0;
}

.team-role {
    font-family: var(--font-primary);
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted var(--gray-dark);
}

.team-credentials {
    margin: 1rem 0 0.25rem 0;
}

.team-credentials {
    list-style: none;
}

.team-credentials li {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
}

/* Benefits List - Careers Section */
.benefits-list {
    list-style: none;
    margin: 1rem 0 0.25rem 0;
}

.benefits-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
}

.benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--gray-dark);
}

.team-description {
    text-align: left;
    line-height: 1.7;
}

.team-description p {
    margin-bottom: 0.75rem;
}

/* Flip Cards for Practice Areas */
.flip-card {
    background-color: transparent;
    min-height: 250px;
    perspective: 1500px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 250px;
    backface-visibility: hidden;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2.5rem;
    border-radius: 8px;
}

.flip-card-front {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flip-card-back {
    background-color: var(--accent-color);
    color: var(--text-light);
    transform: rotateY(180deg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.flip-card-back p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gray-dark);
}

/* Approach Highlights Grid - Contact Section */
.approach-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.approach-box {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.approach-box:hover {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.approach-box h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-col p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Gallery Scroll Section */
.gallery-scroll-section {
    padding: 4rem 0;
    background-color: var(--gray-light);
    overflow: hidden;
}

.gallery-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-scroll-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    /* Animation removed - now controlled by JavaScript */
}

.gallery-scroll-item {
    flex: 0 0 auto;
    width: 400px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-scroll-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.gallery-scroll-item:hover img {
    filter: grayscale(0%);
}

/* Keyframes removed - gallery scroll now controlled by JavaScript for seamless looping */

/* Footer Logo Styling */
.footer-logo {
    filter: invert(1) brightness(5) contrast(1);
    display: inline-block;
}

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

.footer-col a {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--gray-medium);
}

.footer-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--gray-medium);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 250px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: none;
    }

    .hero {
        min-height: 400px;
        justify-content: center;
        background-position: center center;
        background-size: cover;
    }

    /* Hide the Get in Touch button on mobile */
    .hero-content {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .team-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Fix grid-2 for Our Approach section on mobile */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Make practice cards smaller and centered */
    .practice-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    /* Flip cards mobile adjustments */
    .flip-card {
        height: auto;
        min-height: 250px;
    }

    .flip-card-inner {
        height: 100%;
    }

    /* Team/Partner section mobile */
    .team-image {
        max-width: 100%;
        height: auto;
    }

    .team-info h2 {
        font-size: 1.5rem;
    }

    /* Content blocks should use full width on mobile */
    .content-block {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Approach highlights grid mobile - stack vertically */
    .approach-highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .approach-box {
        padding: 1.5rem 1rem;
    }

    /* Gallery scroll mobile adjustments */
    .gallery-scroll-section {
        padding: 2rem 0;
    }

    .gallery-scroll-item {
        width: 300px;
        height: 225px;
    }

    .gallery-scroll-track {
        gap: 1rem;
    }

    /* Approach list mobile */
    .approach-list {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Benefits list mobile */
    .benefits-list li {
        font-size: 1rem;
    }

    /* Footer mobile adjustments */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-col {
        text-align: center;
    }

    /* Contact form mobile */
    .contact-form {
        max-width: 100%;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Container padding on mobile */
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 2rem 0;
    }

    .hero {
        min-height: 300px;
        background-position: center center;
    }

    /* Smaller button on very small screens */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Logo smaller on small phones */
    .logo-image {
        height: 45px;
    }

    /* Flip cards even smaller */
    .flip-card {
        min-height: 200px;
    }

    /* Team credentials smaller */
    .team-credentials li {
        font-size: 0.9rem;
    }

    /* Approach list smaller */
    .approach-list li {
        font-size: 1rem;
    }

    /* Divider smaller */
    .divider {
        width: 60px;
    }

    /* Section title smaller */
    .section-title {
        font-size: 1.75rem;
    }

    /* Lead text smaller */
    .lead-text {
        font-size: 1rem;
    }
}
