/* ============================================
   GAWEL Law Firm - Biotech/MedTech Redesign
   Aesthetic: Science meets Law. Precision. Clarity.
   Palette: Black, White, #0072CE.
   Typography: Gotham Medium (Montserrat fallback).
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Brand Colors */
    --color-brand: #0072CE;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-off-white: #F4F4F4;
    /* Very subtle gray for section differentiation */

    /* Dark Mode Colors */
    --color-bg-dark: #121212;
    --color-bg-card-dark: #1E1E1E;
    --color-text-dark: #E0E0E0;
    --color-text-muted-dark: #A0A0A0;
    --color-border-dark: #333333;

    /* Typography */
    --font-primary: 'Montserrat', 'Gotham Medium', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --spacing-xl: 10rem;

    /* Layout */
    --container-width: 1400px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
    /* Header (80px) + Banner (~60px) */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Accessibility
   ============================================ */
/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-brand);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--color-black);
    outline-offset: 3px;
}

/* Enhanced Focus Indicators */
*:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 3px;
}

body.dark-mode *:focus-visible {
    outline-color: #5ba3e0;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

body.dark-mode p {
    color: var(--color-text-dark);
}

body.dark-mode .header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom-color: var(--color-border-dark);
}

body.dark-mode .logo .st1 {
    fill: var(--color-white);
}

body.dark-mode .nav-link {
    color: var(--color-text-dark);
}

body.dark-mode .nav-link:hover {
    color: var(--color-brand);
}

body.dark-mode .mobile-nav {
    background: rgba(18, 18, 18, 0.98);
    border-bottom-color: var(--color-border-dark);
}

body.dark-mode .mobile-nav-link {
    color: var(--color-text-dark);
    border-bottom-color: var(--color-border-dark);
}

body.dark-mode .hamburger-line {
    background: var(--color-white);
}

body.dark-mode .industry-card {
    background: var(--color-bg-card-dark);
    border-top-color: var(--color-border-dark);
}

body.dark-mode .industry-card:hover {
    border-top-color: var(--color-brand);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .industry-card .text-small {
    color: var(--color-text-muted-dark) !important;
}

body.dark-mode .profile-section {
    background: #1a1a1a;
}

body.dark-mode .profile-name {
    color: var(--color-white);
}

body.dark-mode .profile-role {
    color: var(--color-text-muted-dark);
}

body.dark-mode .profile-bio,
body.dark-mode .profile-list li {
    color: var(--color-text-dark);
}

body.dark-mode .carousel-btn {
    border-color: var(--color-border-dark);
}

body.dark-mode .carousel-btn:hover {
    border-color: var(--color-brand);
}

body.dark-mode .dot {
    background: var(--color-border-dark);
}

body.dark-mode .dot.active {
    background: var(--color-brand);
}

body.dark-mode #contact-form {
    background: var(--color-bg-card-dark) !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2A2A2A !important;
    border-color: var(--color-border-dark) !important;
    color: var(--color-white);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--color-brand) !important;
}

body.dark-mode label {
    color: var(--color-text-dark);
}

body.dark-mode .btn {
    border-color: var(--color-white);
    color: var(--color-white);
}

body.dark-mode .btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

body.dark-mode .btn-primary {
    border-color: var(--color-brand);
    color: var(--color-white);
}

body.dark-mode .btn-primary:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-black);
}

body.dark-mode #industries {
    background: #151515 !important;
}

input,
textarea,
button {
    font-family: inherit;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

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

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

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    /* Gotham Medium equivalent weight */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-black);
    max-width: 70ch;
    margin-bottom: var(--spacing-sm);
}

.text-brand {
    color: var(--color-brand);
}

.text-small {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

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

@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Components: Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border: 2px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    height: 40px;
    width: auto;
}

/* Logo color override for SVG */
.logo .st0 {
    fill: var(--color-brand);
}

.logo .st1 {
    fill: var(--color-black);
}

.logo .st2 {
    fill: var(--color-white);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--color-brand);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--color-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--color-black);
    padding: 0;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--color-black);
    color: var(--color-white);
}

.icon-sun {
    display: none;
}

body.dark-mode .icon-sun {
    display: block;
}

body.dark-mode .icon-moon {
    display: none;
}

body.dark-mode .dark-mode-toggle {
    border-color: var(--color-white);
    color: var(--color-white);
}

body.dark-mode .dark-mode-toggle:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--color-brand);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
}

/* ============================================
   Promotional Banner
   ============================================ */
.promo-banner {
    display: block;
    background: linear-gradient(135deg, var(--color-brand) 0%, #005ba3 100%);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 999;
    text-decoration: none;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.promo-banner:hover::before {
    left: 100%;
}

.promo-banner:hover {
    background: linear-gradient(135deg, #005ba3 0%, var(--color-brand) 100%);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.promo-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    white-space: nowrap;
}

.promo-separator {
    opacity: 0.5;
    display: none;
}

.promo-text {
    flex: 1;
}

body.dark-mode .promo-banner {
    background: linear-gradient(135deg, #004a8a 0%, #003a6b 100%);
}

body.dark-mode .promo-banner:hover {
    background: linear-gradient(135deg, #003a6b 0%, #004a8a 100%);
}

@media (min-width: 768px) {
    .promo-separator {
        display: inline;
    }
}

@media (max-width: 767px) {
    .promo-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }

    .promo-label {
        font-size: 0.8rem;
    }

    .promo-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding-top: var(--header-height);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    width: 50%;
    padding-right: var(--spacing-md);
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }

    .hero-bg {
        width: 100%;
        height: 40vh;
        position: relative;
    }

    .hero-content {
        width: 100%;
        padding: var(--spacing-md) 0;
    }
}

/* ============================================
   Industry Cards
   ============================================ */
.industry-card {
    background: #fff;
    border-top: 4px solid var(--color-black);
    padding: 2rem;
    transition: all var(--transition-fast);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-brand);
}

.industry-card:hover .industry-number {
    margin-bottom: 0.5rem;
}

.industry-number {
    font-size: 3rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 0.25rem;
    transition: margin-bottom var(--transition-fast);
}

.industry-card h3 {
    margin-bottom: 0.25rem;
}

.industry-card p {
    line-height: 1.8;
}

.industry-card .text-small {
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* ============================================
   Profile Section
   ============================================ */
.profile-section {
    background: var(--color-off-white);
}

/* Profile Section - Inline Horizontal Style */
.profile-inline-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    /* Ensure both columns are same height */
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes content apart */
    height: 100%;
}

.contact-info>div:first-child {
    margin-bottom: 2rem;
}

.contact-form-container {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-img-inline {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-img-inline:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 114, 206, 0.2);
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    opacity: 0.7;
}

.linkedin-icon:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.linkedin-icon svg {
    display: block;
}

.profile-role {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.profile-bio {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #333;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .profile-img-inline {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
    }

    .profile-name {
        font-size: 1.25rem;
        text-align: center;
    }

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

/* Profile Carousel */
.profile-carousel {
    margin-top: 1.5rem;
    position: relative;
}

.carousel-slides {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: none;
}

.carousel-slide.active {
    display: block;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-brand);
}

.profile-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.125rem;
    line-height: 1.8;
}

.profile-list li {
    padding: 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    color: #333;
}

.profile-list li::before {
    content: "•";
    color: var(--color-brand);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background: none;
    border: 1px solid #ddd;
    color: var(--color-brand);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--color-brand);
    color: white;
    border-color: var(--color-brand);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--color-brand);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--color-brand);
    opacity: 0.7;
}

/* Mobile responsiveness for carousel */
@media (max-width: 768px) {
    .carousel-slides {
        min-height: 250px;
    }

    .profile-list li {
        font-size: 0.9rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.footer a:hover {
    color: var(--color-brand);
}

.footer-bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #333;
    font-size: 0.875rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}