/* Nick Consultancy - Design System & Styles */

:root {
    --primary-color: #0A1128; /* Deep Navy */
    --secondary-color: #C5A059; /* Pale Gold */
    --accent-color: #3E4E50; /* Slate Grey */
    --text-color: #1A1A1A;
    --light-text: #F8F9FA;
    --bg-color: #FFFFFF;
    --section-bg: #F4F7F6;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(10, 17, 40, 0.85);
}

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

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Typography Utilities */
.text-gold { color: var(--secondary-color); }
.text-center { text-align: center; }

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 5%;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 2rem; /* Adjusted for top bar */
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

nav.scrolled {
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    color: var(--light-text);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 17, 40, 0.6), rgba(10, 17, 40, 0.6)), url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 10%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #b08d4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    background: var(--section-bg);
    border-top: 4px solid transparent;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-top: 4px solid var(--secondary-color);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-10px);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Team Section */
.team-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.lawyer-img {
    flex: 1;
    min-width: 300px;
    height: 500px;
    background: url('assets/images/nick_1.jpg');
    background-size: cover;
    background-position: center;
    border: 15px solid white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.lawyer-info {
    flex: 1.5;
    min-width: 300px;
}

.lawyer-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.lawyer-info .subtitle {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.location-item {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 3rem;
}

.location-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.location-item p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 60px 10% 20px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
}

.sra-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-top: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .team-container { gap: 2rem; }
}

@media (max-width: 768px) {
    .top-bar-content { justify-content: center; font-size: 0.7rem; gap: 1rem; }
    
    nav { padding: 1rem 5%; }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--light-text);
        transition: var(--transition-smooth);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    section { padding: 60px 5%; }
    .section-title { font-size: 2rem; }
    
    .locations-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .lawyer-img { height: 400px; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .sra-badge { margin: 1rem auto; display: block; width: fit-content; }
}

/* Top Bar Styling */
.top-bar-content a {
    color: var(--primary-color); /* Explicitly set to brand navy, avoiding default blue */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.top-bar-content a:hover {
    color: rgba(10, 17, 40, 0.7); /* Subtle fade on hover */
}

@media (max-width: 768px) {
    .top-bar { display: block; padding: 0.5rem 5%; }
    .top-bar-content { justify-content: flex-end; }
    .contact-text { display: none; } /* Hide text, show only icons */
    .top-bar-content i { font-size: 1.2rem; }
    
    nav { top: 2.2rem; background: var(--primary-color); }
    .nav-links { top: 6.2rem; } /* Adjusted for visible top bar */
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.8rem; }
}
