/* ----- Corporate Color Palette (from Website 2) ----- */
:root {
    --primary: #0d1b2a;
    /* Dark Navy Blue */
    --secondary: #1b263b;
    /* Slightly lighter Navy */
    --accent: #778da9;
    /* Muted Blue-Grey */
    --text: #e0e1dd;
    /* Off-white for general text */
    --light: #f5f5f5;
    /* Pure white for contrasts */
    --gold: #c8a97e;
    /* The primary gold color */
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ----- Base Styles ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    /* From Website 2 */
    background-color: var(--primary);
    /* From Website 2 */
    color: var(--text);
    /* From Website 2 */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll due to mobile menu */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant', serif;
    /* From Website 2 */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--gold);
    /* Headings typically gold in Website 2's aesthetic */
}

p {
    font-family: 'Lato', sans-serif;
    /* From Website 2 */
    font-weight: 300;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Common Section Wrapper */
.section-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    /* Responsive padding */
}

section {
    padding: 4rem 0;
    /* Vertical padding */
    overflow: hidden;
    position: relative;
    /* For section specific backgrounds/overlays */
    /* scroll-margin-top will be dynamically set by JS */
}

/* --- Section Titles --- */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
    font-size: 2.8rem;
    color: var(--gold);
    text-align: left;
    /* Default alignment */
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
    transform: translateX(0);
}

/* Adjustments for centered section titles (like in Hero, Expertise, Insights intro) */
.section-content-wrapper.text-center .section-title {
    text-align: center;
}

.section-content-wrapper.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}


/* ----- Header (Navbar) ----- */
.header {
    background: rgba(13, 27, 42, 0.95);
    /* Semi-transparent primary */
    padding: 1rem 0;
    /* Adjusted padding for a taller header */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(200, 169, 126, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo-group {
    display: flex;
    flex-direction: column;
    /* Stack logo and tagline vertically */
    align-items: flex-start;
    /* Align items to the left within the group */
    height: 100%;
    /* Make it fill available height in header-container */
    justify-content: center;
    /* Vertically center content */
}

.logo {
    font-size: 2.2rem;
    /* Made logo bigger */
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.3s ease;
    line-height: 1;
    /* Remove extra line height for tight fit */
    margin-bottom: 5px;
    /* Space between logo and tagline */
    position: relative;
    /* For positioning tagline */
}

.logo:hover {
    transform: scale(1.05);
}

.tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    /* Made tagline slightly larger */
    color: var(--text);
    opacity: 0.8;
    /* Increased opacity for better readability */
    white-space: nowrap;
    /* Prevent breaking */
    display: block;
    /* Default to block display */
    margin-left: 0;
    /* Remove previous margin */
    /* Adjust tagline position relative to 'RightSide' for centering */
    transform: translateX(-8%);
    /* Adjust manually for visual centering with "RightSide" */
}


/* Desktop Navigation Links */
.desktop-nav {
    display: flex;
    /* Show by default on desktop */
    align-items: center;
    gap: 2.5rem;
}

.desktop-nav a {
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.desktop-nav a:hover {
    color: var(--gold);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.nav-icon {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Dropdown Menu (Expertise) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--secondary);
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 100;
    border: 1px solid rgba(200, 169, 126, 0.2);
    top: calc(100% + 10px);
    /* Position below the toggle */
    left: 0;
    border-radius: 4px;
    /* Consistent border radius */
    overflow: hidden;
    /* For inner items */
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 300;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--gold);
    color: var(--primary);
}

.dropdown-menu a::after {
    /* Remove underline from dropdown menu items */
    display: none;
}


/* Utility Group - General Styles */
.utility-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Desktop Specific Utility Group */
.utility-group.desktop-utility-group {
    display: flex;
    /* Always show on desktop */
}

/* Mobile Specific Utility Group */
.utility-group.mobile-utility-group {
    display: none;
    /* Hidden by default, shown in media query */
}


.social-icons-header a {
    color: var(--text);
    font-size: 1.1rem;
    margin-left: 10px;
    transition: var(--transition);
}

.social-icons-header a:hover {
    color: var(--gold);
}

/* Language Switcher */
.language-switcher {
    /* Common styles for both desktop and mobile versions */
    display: flex;
    border: 1px solid rgba(200, 169, 126, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.lang-button {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content in button */
    flex-grow: 1;
    /* Allow buttons to expand in mobile switcher */
    min-width: 50px;
    /* Give some min-width for shorter language codes */
}

.lang-button.active {
    /* Active language button style */
    background: var(--gold);
    color: var(--primary);
    font-weight: 700;
}

.lang-button:not(.active):hover {
    background: rgba(200, 169, 126, 0.1);
    color: var(--gold);
}


/* Mobile Menu Toggle (Hamburger) */
.hamburger-menu {
    display: none;
    /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    /* Width of the icon */
    height: 24px;
    /* Height of the icon (3 lines + 2 gaps) */
    cursor: pointer;
    z-index: 1001;
    /* Ensure it's clickable above other content */
    position: relative;
    margin-left: 1rem;
    /* Space from other utility items */
}

.hamburger-menu .line {
    width: 100%;
    height: 3px;
    /* Thickness of each line */
    background: var(--gold);
    /* Color of the lines */
    border-radius: 2px;
    transition: all 0.3s ease;
    /* Smooth transition for animation */
}

/* Animation when menu is active (transforms into an 'X') */
.hamburger-menu.active .line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Menu (Legal Dropdown) */
.legal-dropdown {
    position: fixed;
    top: 0;
    right: -300px;
    /* Off-screen by default */
    width: 300px;
    /* Fixed width for mobile menu */
    height: 100vh;
    background: var(--primary);
    border-left: 1px solid rgba(200, 169, 126, 0.2);
    padding: 6rem 2rem 2rem;
    /* Top padding to clear header */
    transition: right 0.3s ease-out;
    /* Slide in/out transition */
    z-index: 999;
    /* Below hamburger, above content */
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    /* Set to flex so 'right' transition works correctly */
    flex-direction: column;
    /* Stack menu items vertically */
}

.legal-dropdown.active {
    right: 0;
    /* Slide into view */
}

/* Overlay for mobile menu (dim background) */
body.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    /* Below menu, above content */
}

.legal-dropdown a {
    display: block;
    color: var(--text);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(200, 169, 126, 0.1);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
    transition: var(--transition);
}

.legal-dropdown a:hover {
    color: var(--gold);
    padding-left: 10px;
}


/* ----- Hero Section ----- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8vh 5% 0;
    /* Offset for fixed header */
    background:
        linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)),
        /* Overlay */
        url('https://i.postimg.cc/KzcMSBGT/image.png');
    /* Use local image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--text);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--gold);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--text);
    opacity: 0.8;
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ----- Buttons (Universal Styling) ----- */
.btn {
    padding: 1rem 2.5rem;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 2px;
}

.btn.primary-btn {
    background: var(--gold);
    color: var(--primary);
    border: 1px solid var(--gold);
}

.btn.primary-btn:hover {
    background: var(--light);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(200, 169, 126, 0.3);
}

.btn.secondary-btn,
.btn.outline-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn.secondary-btn:hover,
.btn.outline-btn:hover {
    background: var(--gold);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(200, 169, 126, 0.3);
}


/* ----- About Section ----- */
.about-section {
    background-color: var(--primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text-content {
    color: var(--text);
}

.about-subtitle {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.about-text-content p {
    margin-bottom: 1.5rem;
}

.about-image {
    border: 10px solid var(--secondary);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}


/* ----- Expertise Section (Main Page) ----- */
.expertise-section {
    background-color: var(--secondary);
}

.expertise-intro {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 800px;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--gold);
}

.expertise-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: var(--primary);
    padding: 2rem;
    border-left: 3px solid var(--gold);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.expertise-card .card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.expertise-card .card-title {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.expertise-card .card-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.expertise-card .card-link {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.expertise-card .card-link:hover {
    color: var(--text);
    padding-left: 5px;
}

.expertise-card .card-link:hover .fa-arrow-right {
    transform: translateX(5px);
}


/* ----- Cross Border Solutions Section (Main Page) ----- */
.cross-border-section {
    background-color: var(--primary);
}

.cross-border-intro {
    font-style: italic;
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text);
}

.cross-border-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cross-border-card {
    background: var(--secondary);
    padding: 2rem;
    border: 1px solid rgba(200, 169, 126, 0.2);
    border-radius: 4px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cross-border-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cross-border-card .card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.cross-border-card .card-title-dynamic {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0;
}


/* ----- Insights Section ----- */
.insights-section {
    background-color: var(--secondary);
}

.insights-intro {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 800px;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--text);
}

.insights-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.insight-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--gold);
}

.insight-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-date {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.insight-title {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.insight-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.insight-read-more {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.insight-read-more:hover {
    color: var(--text);
    padding-left: 5px;
}

.insight-read-more:hover .fa-arrow-right {
    transform: translateX(5px);
}

.button-container {
    margin-top: 3rem;
    text-align: center;
}


/* ----- Contact Section (from Website 2) ----- */
.creative-contact {
    position: relative;
    background: var(--primary);
    padding: 5rem 0;
    /* Vertical padding, horizontal handled by container */
    overflow: hidden;
    border-top: 1px solid rgba(200, 169, 126, 0.1);
    border-bottom: 1px solid rgba(200, 169, 126, 0.1);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(200, 169, 126, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Visual panel slightly wider now */
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    align-items: start;
    padding: 0 5%;
    /* Apply padding here for the grid columns */
}

/* Contact Visual Panel */
.contact-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.visual-content {
    width: 100%;
}

.visual-title {
    color: var(--text);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: left;
    padding-bottom: 15px;
    position: relative;
    display: block;
}

.visual-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
}

/* Method Cards Container */
.method-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Individual Method Card */
.method-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(200, 169, 126, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    text-decoration: none;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.method-card .card-icon {
    color: var(--gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.method-card .method-name {
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

.card-arrow {
    color: var(--gold);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    margin-left: auto;
}

.method-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Form Panel */
.contact-form-panel {
    background: var(--secondary);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 169, 126, 0.1);
}

.contact-form-panel .form-header .form-title {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-align: left;
}

.contact-form-panel .form-header .form-subtitle {
    font-family: 'Lato', sans-serif;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: var(--text);
    text-align: left;
}

/* Form Inputs */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    /* Ensure full width */
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(224, 225, 221, 0.4);
    border-radius: 0;
    color: var(--text);
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    font-size: 1rem;
    appearance: none;
    /* Remove default select arrow */
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    width: 100%;
    /* Ensure full width for message box */
}

.input-group.textarea-group .input-label {
    top: 10px;
    font-size: 1rem;
    opacity: 0.8;
    /* Position labels above inputs always */
    left: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    color: rgba(224, 225, 221, 0.6);
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    /* Smaller font size for always-above labels */
    color: var(--gold);
    /* Always show in gold */
}

/* Input decoration (the animating bottom line) */
.input-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.form-input:focus~.input-decoration,
.form-input.has-content~.input-decoration,
.form-textarea:focus~.input-decoration,
.form-textarea.has-content~.input-decoration,
.form-select:focus~.input-decoration,
.form-select.has-content~.input-decoration {
    width: 100%;
}

.form-input:focus,
.form-input.has-content,
.form-textarea:focus,
.form-textarea.has-content,
.form-select:focus,
.form-select.has-content {
    border-bottom-color: var(--gold);
}

.input-group.textarea-group .input-label {
    top: 0.2rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* Submit button specific styling */
.send-message-btn {
    /* Specific class for send message button */
    width: 100%;
    /* Full width */
    margin-top: 2rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1rem 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.send-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.send-message-btn:hover {
    color: var(--primary);
    box-shadow: 0 0 12px rgba(200, 169, 126, 0.2);
    transform: translateY(-1px);
}

.send-message-btn:hover::before {
    left: 0;
}

.send-message-btn .icon {
    font-size: 1.1rem;
    color: inherit;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.send-message-btn:hover .icon {
    transform: translateX(2px) rotate(10deg);
}

/* Contact Info Panel (right side of contact section) */
.contact-info-panel {
    background: var(--primary);
    /* Darker background for consistency */
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 169, 126, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-title {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.info-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--gold);
    border-radius: 1px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.info-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 3px;
}

.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 15px;
}

.hours-grid span {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.hours-grid span:nth-child(odd) {
    color: var(--text);
    opacity: 0.8;
}

.hours-grid span:nth-child(even) {
    font-weight: bold;
    color: var(--text);
}

.emergency-text {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

.emergency-phone {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gold);
}


/* ----- Footer ----- */
.footer {
    background: var(--secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(200, 169, 126, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Updated footer grid to remove the newsletter column */
.footer-grid {
    display: grid;
    /* Changed to 3 columns: Logo/Desc, Quick Links, Expertise */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Explicitly define grid areas for desktop to control layout */
    grid-template-areas:
        "col1 col2 col3";
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Assign areas to columns */
.footer-col-1 {
    grid-area: col1;
}

.footer-col-2 {
    grid-area: col2;
}

.footer-col-3 {
    grid-area: col3;
}


.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--gold);
}


.footer-bottom {
    border-top: 1px solid rgba(200, 169, 126, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.copyright-text,
.attorney-advertising {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.copyright-text a,
.attorney-advertising a {
    color: inherit;
    text-decoration: underline;
}

.copyright-text a:hover,
.attorney-advertising a:hover {
    color: var(--gold);
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-social-links a {
    color: var(--text);
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-social-links a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}


/* ----- Expertise Modal ----- */
.expertise-modal {
    display: none;
    /* Hidden by default, shown by JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.expertise-modal-content {
    background-color: var(--secondary);
    margin: 10vh auto;
    padding: 3rem;
    width: 90%;
    max-width: 700px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(200, 169, 126, 0.2);
    animation: modalFadeIn 0.4s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-expertise-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.close-expertise-modal:hover {
    color: var(--text);
}

#expertiseModalTitle {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3);
    padding-bottom: 1rem;
}

.expertise-articles-list {
    margin-top: 1.2rem;
}

.expertise-article-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.1);
}

.expertise-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.expertise-article-item a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-article-item a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.expertise-article-item a:hover {
    color: var(--text);
    padding-left: 2rem;
}


/* ----- Responsive Design ----- */
@media (max-width: 992px) {

    /* Hide desktop nav and show mobile utility group */
    .desktop-nav,
    .utility-group.desktop-utility-group {
        /* Target the desktop utility group directly */
        display: none;
    }

    .mobile-utility-group {
        display: flex;
        /* Show mobile utility group */
        align-items: center;
        gap: 1.5rem;
        margin-left: auto;
    }

    .hamburger-menu {
        display: flex;
        /* Show hamburger */
        margin-left: 1rem;
    }

    /* Language switcher & social icons in header (mobile utility group) */
    .mobile-utility-group .social-icons-header,
    .mobile-utility-group .language-switcher {
        /* Target the language switcher within this group */
        display: flex;
        /* Ensure they are displayed */
    }

    .header-container {
        padding: 0 4%;
    }

    .logo-group .tagline {
        font-size: 0.8rem;
        transform: translateX(-5%);
    }

    .logo {
        font-size: 2rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        /* Stack columns vertically */
        gap: 2.5rem;
    }

    /* Footer Grid on smaller screens */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer columns vertically */
        grid-template-areas:
            "col1"
            "col2"
            "col3";
        /* Adjust areas for stacking */
        gap: 2.5rem;
    }

    .about-text-content,
    .contact-info-panel,
    .contact-form-panel {
        padding: 2.5rem;
        /* Adjust panel padding */
    }

    /* Adjust titles for stacked layout */
    .section-title {
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Contact form alignment */
    .contact-form-panel .form-header .form-title,
    .contact-form-panel .form-header .form-subtitle {
        text-align: center;
    }

    .contact-info-panel .info-title {
        text-align: center;
    }

    .contact-info-panel .info-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .info-group,
    .info-item {
        justify-content: center;
        text-align: center;
    }

    .info-item i {
        margin-right: 15px;
        /* Revert margin as justify-content is used */
        margin-left: 0;
    }

    .hours-grid {
        text-align: center;
        grid-template-columns: 1fr;
        /* Stack hours vertically */
    }

    .emergency-text {
        text-align: center;
    }

    .emergency-phone {
        justify-content: center;
        display: flex;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.75rem;
        /* Smaller tagline on very small screens */
        transform: translateX(0);
        /* Remove custom transform on very small screens */
    }


    .hero-section {
        padding-top: 10vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-text-content,
    .contact-info-panel,
    .contact-form-panel,
    .insight-content {
        padding: 2rem;
    }

    .expertise-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 3%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero-section {
        padding-top: 8vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 90%;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .expertise-card,
    .insight-card {
        padding: 1rem;
    }

    .contact-form-panel,
    .contact-info-panel {
        padding: 1.5rem;
    }

    .form-title,
    .info-title {
        font-size: 1.8rem;
    }

    .footer-heading {
        font-size: 1.1rem;
    }

    .footer-social-links {
        gap: 10px;
    }

    .footer-social-links a {
        font-size: 1.2rem;
    }
}