/* --- CSS VARIABLES & GLOBAL RESET --- */
:root {
    /* Brand Colors based on Logo */
    --color-primary: #0a2342;   /* Deep Navy from 'Diamond Advisory' */
    --color-secondary: #717c89; /* Cool Grey from 'Company Limited' and lines */
    --color-accent: #1e4c8c;    /* A slightly brighter navy for hover states */

    /* Backgrounds & Text */
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;        /* Very light grey for section contrast */
    --text-dark: #0a2342;       /* Primary text color */
    --text-muted: #55606e;      /* Secondary text color */
    --border-color: rgba(10, 35, 66, 0.1);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --section-padding: 6rem 0;
    
    /* Shadows & Radius */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(10, 35, 66, 0.08);
    --radius-sm: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.75rem;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

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

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

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

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

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--bg-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-img {
    height: 60px; /* Adjust based on actual logo aspect ratio */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-bottom: 0;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-primary);
}

/* --- PAGE HEROS --- */
.hero-section {
    padding: 8rem 0 6rem;
    background-color: var(--bg-white);
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* --- HOME: ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.practice-areas-box {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.practice-areas-box ul {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--color-primary);
}

/* --- HOME: SERVICES OVERVIEW --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
    transform: translateY(-5px);
}

.service-card p {
    flex-grow: 1; /* Pushes button to bottom */
}

/* --- HOME: WHY CHOOSE US --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.feature-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-secondary);
}

/* --- STANDALONE SERVICE PAGES --- */
.service-page-intro {
    font-size: 1.1rem;
    max-width: 800px;
}

.key-practices-list {
    list-style: none;
    margin-top: 2rem;
}

.key-practices-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.key-practices-list li::before {
    content: '¥';
    color: var(--color-secondary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
    line-height: 1;
}

.key-practices-list strong {
    color: var(--color-primary);
}

.related-services-block {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-sm);
    margin: 4rem 0;
}

.related-services-block h3, 
.related-services-block p {
    color: white;
}

.related-services-block a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 5rem 0 2rem;
    text-align: center;
}

.footer-cta h2 {
    color: white;
}

.footer-cta a.email-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-secondary);
    display: block;
    margin: 1.5rem 0 3rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--color-secondary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    margin-left: 1.5rem;
    color: var(--color-secondary);
}

.footer-links a:hover {
    color: white;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px; /* Adjust based on header height */
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
    }

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

    .nav-item {
        margin: 16px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-links a {
        margin: 0 0.75rem;
    }
}