/* ============================================
   Gordon Rome Law Firm - Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a365d;
    --secondary: #2c5282;
    --accent: #c9a227;
    --text-dark: #1a202c;
    --text-light: #718096;
    --white: #ffffff;
    --bg-light: #f7fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    /*background: rgba(255,255,255,0.95);*/
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /*backdrop-filter: blur(10px);*/
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    max-width: 1200px;
    margin: 0 auto;

}

.logo img {
    height: 35px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-left: 10px;
    position: relative;
    top:-0.5rem
}

.nav-links {
    display: flex;
    list-style: none;
    background: rgba(255, 255, 255, 0.8);
    height: 3.5rem;
    align-items: center;
    justify-content: center;
}

.nav-links li {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.nav-links li.active {
    color: var(--white);
    border-bottom-color: var(--white);
    background: rgba(0, 0, 0, 0.8);
}
.nav-links li:hover {
    color: var(--white);
    border-bottom-color: var(--white);
    background: rgba(0, 0, 0, 0.4);
}

.mobile-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

/* ============================================
   Video Background
   ============================================ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(26, 54, 93, 0.75);*/
}

/* Overlay variants */
.video-overlay.blue { /*background: rgba(26, 54, 93, 0.75);*/
}

.video-overlay.dark { /*background: rgba(15, 36, 65, 0.80);*/
}

.video-overlay.light { /*background: rgba(44, 82, 130, 0.70);*/
}

/* ============================================
   Hero Sections
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.home-section {
    max-width: 1200px;
    margin: 5% auto;
    padding-top: 50px;
}

.hero-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 60px;
    position: relative;
    z-index: 1;
}

.hero-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 28rem;
    max-width: 80%;
    height: 28rem;
    aspect-ratio: 1/1;
    margin-bottom: 120px;
    position: relative;
}

.clock-gif {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    position: absolute;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.clock-icon {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
}

.hero-logo-center {
    aspect-ratio: 1/1;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-center img {
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
}

/* Logo Row */
.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.logo-row img {
    height: 90px;
    width: auto;
}

/* Hero Text */
.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 980px;
    text-align: center;
    color: var(--white);
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 20px;
}

.hero-description p {
    margin-bottom: 20px;
}

/* ============================================
   Page Hero (smaller version)
   ============================================ */
.page-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 20px 60px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    max-width: 800px;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ============================================
   Content Sections
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    /*background: var(--white);*/
    background: rgba(0, 0, 0, 0.6);
    color: white;


    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.content-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.content-card p {
    color: var(--white);
    line-height: 1.7;
}

/* White background section */
.section-white {
    /*background: rgba(255,255,255,0.97);*/
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   Service Cards Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--white);
    line-height: 1.7;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-item a {
    color: var(--white);
    opacity: 0.9;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--accent);
    color: var(--white);
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #b8922a;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #0f2441;
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 100px;
    width: auto;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    /*background: rgba(247, 250, 252, 0.98);*/
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    padding-top: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    max-width: 55%;
    /*aspect-ratio: 1 / 1;*/
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
    text-align: center;
}

.team-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Modals
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-body h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.modal-body ul {
    color: var(--text-light);
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 8px;
}

/* ============================================
   Floating Social Links (Screen Center)
   ============================================ */
.floating-social {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(26, 54, 93, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.floating-social a:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.floating-social a svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* Floating Call-to-Action Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.floating-cta a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    transition: all 0.3s ease;
}

.floating-cta a:hover {
    background: #b8922a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .logo img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        height: auto;
    }

    .nav-links.active {
        display: flex;

    }

    .nav-links>li{
        width: 100%;
        padding: 0.8rem 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero-section,
    .hero-centered,
    .hero-split,
    .page-hero {
        padding: 100px 20px 40px;
        min-height: auto;
    }

    .clock-icon {
        /*width: 120px;*/
        /*height: 120px;*/
    }

    .hero-logo-center {
        width: 180px;
        height: 180px;
        margin-bottom: 30px;
    }

    .logo-row img {
        height: 60px;
    }

    .hero-title {
        font-size: 18px;
        letter-spacing: 0.1em;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-description {
        font-size: 14px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 20px;
    }
}
