/* ==================== VARIABLES ==================== */
:root {
    --navy: #1a2744;
    --navy-light: #2a3a5a;
    --white: #ffffff;
    --off-white: #f7f7f5;
    --gray-light: #f5f5f3;
    --gray: #888888;
    --gray-dark: #333333;
    --font-main: 'Montserrat', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    color: var(--gray-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* Navy background only on home page */
body.home-page {
    background: var(--navy);
}

/* ==================== HEADER - LOGO LEFT, NAV CENTERED ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 50px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: all 0.4s ease;
}

header.scrolled {
    background: var(--white);
    padding: 18px 50px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    justify-self: start;
}

.logo-m3 {
    font-family: var(--font-main);
    font-size: 48px;
    font-weight: 300;
    color: white;
    letter-spacing: 4px;
    transition: color 0.4s ease;
}

header.scrolled .logo-m3 {
    color: var(--navy);
}

.logo-divider {
    width: 1px;
    height: 50px;
    background: white;
    opacity: 0.6;
    transition: background 0.4s ease;
}

header.scrolled .logo-divider {
    background: var(--navy);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-text span {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 300;
    color: white;
    letter-spacing: 3.5px;
    transition: color 0.4s ease;
}

header.scrolled .logo-text span {
    color: var(--navy);
}

nav {
    display: flex;
    align-items: center;
    gap: 45px;
    justify-self: center;
}

nav a {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

header.scrolled nav a {
    color: var(--gray-dark);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.85;
}

nav a.active::after {
    width: 100%;
}

.header-spacer {
    justify-self: end;
}

/* ==================== HERO FULL SCREEN WITH ZOOM ==================== */
.hero-full {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background-image: url('images/la-skyline.jpg');
    background-size: cover;
    background-position: center 50%;
    animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 50px;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease-out 0.8s forwards;
}

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

.hero-content h1 {
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 300;
    color: white;
    line-height: 1.6;
    letter-spacing: 1px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    height: 50vh;
    min-height: 400px;
    display: block;
    padding: 0 50px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 100%);
}

.page-hero-content {
    position: absolute;
    top: 55%;
    left: 50px;
    z-index: 1;
    max-width: 700px;
}

.page-hero h1 {
    font-family: var(--font-main);
    font-size: 52px;
    font-weight: 300;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-hero p {
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 300;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero backgrounds for each page */
.hero-about {
    background-image: url('images/la-skyline.jpg');
    background-position: center 50%;
}

.hero-team {
    background-image: url('images/la-neighborhoods.jpg');
    background-position: center 50%;
}

.hero-services {
    background-image: url('images/downtown-la.jpg');
    background-position: center 50%;
}

.hero-portfolio {
    background-image: url('images/yo-sushi-restaurant.jpg');
    background-position: center 50%;
}

.hero-news {
    background-image: url('images/santa-monica-pier.jpg');
    background-position: center 50%;
}

.hero-contact {
    background-image: url('images/595-colorado-night.jpg');
    background-position: center 30%;
}

/* ==================== STATS ==================== */
.stats {
    padding: 80px 50px;
    display: flex;
    justify-content: center;
    gap: 100px;
    background: var(--gray-light);
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stats.visible .stat {
    opacity: 1;
    transform: translateY(0);
}

.stats.visible .stat:nth-child(1) { transition-delay: 0.1s; }
.stats.visible .stat:nth-child(2) { transition-delay: 0.2s; }
.stats.visible .stat:nth-child(3) { transition-delay: 0.3s; }
.stats.visible .stat:nth-child(4) { transition-delay: 0.4s; }

.stat-number {
    font-family: var(--font-main);
    font-size: 72px;
    font-weight: 300;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.stat-label {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-dark);
    letter-spacing: 0.5px;
}

/* ==================== CONTENT SECTION ==================== */
.content-section {
    padding: 100px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section p {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-dark);
    line-height: 1.9;
    letter-spacing: 0.2px;
    margin-bottom: 25px;
    text-align: justify;
}

.btn-outline {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 15px 40px;
    border: 1px solid var(--gray-dark);
    background: transparent;
    transition: all 0.4s ease;
}

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

/* ==================== FEATURE SECTION ==================== */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.feature-dark {
    background: #1a1a1a;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-dark h2 {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 300;
    color: white;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.feature-dark p {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    line-height: 1.9;
    letter-spacing: 0.3px;
    text-align: justify;
    margin-bottom: 20px;
}

.feature-dark ul {
    list-style: none;
    margin-top: 25px;
}

.feature-dark ul li {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-image {
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.feature-image:hover {
    filter: grayscale(50%);
}

/* ==================== CARDS ==================== */
.cards-section {
    padding: 100px 50px;
    background: var(--white);
}

.cards-section h2 {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 300;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.card {
    width: 380px;
    height: 260px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--navy);
    transition: all 0.4s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card.card-visible:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 400;
    color: white;
    letter-spacing: 0.5px;
}

.card-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card-arrow svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

.card:hover .card-arrow {
    transform: translateX(5px);
}

/* ==================== TEAM GRID ==================== */
.team-grid {
    padding: 60px 50px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid h2 {
    font-family: var(--font-main);
    font-size: 42px;
    font-weight: 300;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    text-align: left;
}

.team-member-photo {
    width: 100%;
    height: 380px;
    border-radius: 0;
    margin: 0 0 20px 0;
    background-size: cover;
    background-position: center top;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-member:hover .team-member-photo {
    filter: grayscale(0%);
}

.team-member h3 {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.team-member p {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* ==================== NEWS ==================== */
.news-section {
    padding: 100px 50px;
    background: var(--off-white);
}

.news-section h2 {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 300;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.news-grid {
    display: flex;
    justify-content: center;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.news-item {
    background: white;
    padding: 40px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-date {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.news-title {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.news-excerpt {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-dark);
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* ==================== CONTACT ==================== */
.contact-section {
    padding: 100px 50px;
    text-align: center;
}

.contact-section h2 {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 300;
    color: var(--gray-dark);
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.office h3 {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.office p {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    color: var(--gray);
    line-height: 1.9;
}

/* ==================== FOOTER ==================== */
footer {
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-minimal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-top: none;
}

.footer-minimal .footer-left,
.footer-minimal .footer-right a {
    color: rgba(255,255,255,0.7);
}

.footer-minimal .footer-right a:hover {
    color: white;
}

.footer-left {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 0.3px;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 300;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

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

/* ==================== FADE OUT FOR PAGE TRANSITION ==================== */
.fade-out {
    animation: fadeOut 0.6s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* Fade in for page load */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==================== PORTFOLIO GALLERY ==================== */
.portfolio-gallery {
    padding: 80px 50px;
    background: var(--white);
}

.portfolio-gallery h2 {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 300;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 400;
    color: white;
    margin-bottom: 5px;
}

.gallery-item-desc {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
}

/* Featured transaction images */
.transaction-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.transaction-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.transaction-image:hover {
    transform: scale(1.02);
}

/* ==================== APPROACH PAGE - INVESTMENT TENETS ==================== */
.hero-approach {
    background-image: url('images/coffeebay-ceremony-4.jpg');
    background-position: center 40%;
}

.tenets-section {
    padding: 80px 50px;
    background: var(--white);
}

.tenets-section h2 {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 300;
    color: var(--gray-dark);
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-align: center;
}

.tenets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.tenet-card {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tenets-section.visible .tenet-card {
    opacity: 1;
    transform: translateY(0);
}

.tenets-section.visible .tenet-card:nth-child(1) { transition-delay: 0.1s; }
.tenets-section.visible .tenet-card:nth-child(2) { transition-delay: 0.2s; }
.tenets-section.visible .tenet-card:nth-child(3) { transition-delay: 0.3s; }

.tenet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(1.4) contrast(0.7);
    transition: filter 0.4s ease;
    z-index: 0;
}

.tenet-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.6);
    z-index: 0;
}

.tenet-card:hover::before {
    filter: grayscale(50%) brightness(1.3) contrast(0.8);
}

.tenet-card:hover::after {
    background: rgba(255,255,255,0.5);
}

.tenet-card:nth-child(1)::before {
    background-image: url('images/coffeebay-ceremony-2.jpg');
}

.tenet-card:nth-child(2)::before {
    background-image: url('images/snowfox-kiosk-3.jpg');
}

.tenet-card:nth-child(3)::before {
    background-image: url('images/m3-meeting-1.jpg');
}

.tenet-content {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: left;
}

.tenet-content h3 {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 500;
    color: var(--gray-dark);
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.tenet-number {
    position: relative;
    z-index: 1;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 100px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1;
    margin-left: 15px;
    opacity: 0.9;
}

.sector-focus {
    padding: 80px 50px;
    background: var(--navy);
    text-align: center;
}

.sector-focus h2 {
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 300;
    color: white;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 50px;
    letter-spacing: 0.5px;
}

.sector-single {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.sector-single h3 {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.sector-single .sector-underline {
    width: 50px;
    height: 2px;
    background: var(--navy-light);
    margin: 0 auto 20px;
}

.sector-single p {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* ==================== CONTACT PAGE - LEONARD GREEN STYLE ==================== */
.contact-header-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    background: var(--white);
    padding: 80px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-page-wrapper {
    position: relative;
}

.contact-map-full {
    width: 100%;
    height: 600px;
    margin-top: -180px;
    position: relative;
    z-index: 1;
}

.contact-map-full iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%);
    transition: filter 0.4s;
}

.contact-map-full:hover iframe {
    filter: grayscale(50%);
}

.contact-floating-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    background: var(--white);
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.contact-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-logo .logo-m3 {
    font-size: 42px;
    color: var(--navy);
}

.contact-logo .logo-divider {
    background: var(--navy);
    height: 45px;
}

.contact-logo .logo-text span {
    color: var(--navy);
}

.contact-address {
    text-align: left;
}

.contact-address a.address-link {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-dark);
    text-decoration: underline;
    line-height: 1.7;
    display: block;
    transition: color 0.3s;
}

.contact-address a.address-link:hover {
    color: var(--navy);
}

.contact-form-section {
    padding: 40px 60px 50px;
    background: var(--gray-light);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

/* Success Message - Modern Animated */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    min-height: 300px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated SVG Checkmark */
.success-checkmark {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
}

.checkmark-circle {
    stroke: var(--navy);
    stroke-width: 1.5;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: drawCircle 0.6s ease-out forwards;
}

.checkmark-check {
    stroke: var(--navy);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.4s ease-out 0.4s forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-text {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 300;
    color: var(--gray-dark);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* Submit button with elegant loading state */
.contact-form button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: all 0.3s ease;
}

.btn-text {
    transition: opacity 0.2s ease;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 10px;
}

.btn-spinner::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-form button.loading {
    pointer-events: none;
}

.contact-form button.loading .btn-spinner {
    display: block;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    padding: 15px 20px;
    border: 1px solid #ddd;
    background: white;
    color: var(--gray-dark);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form button {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 15px 40px;
    background: transparent;
    color: var(--gray-dark);
    border: 1px solid var(--gray-dark);
    cursor: pointer;
    transition: all 0.4s ease;
}

.contact-form button:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

/* Legacy styles - keep for backwards compatibility */
.contact-map {
    width: 100%;
    height: 500px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%);
    transition: filter 0.4s;
}

.contact-map:hover iframe {
    filter: grayscale(0%);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    nav { gap: 30px; }
    .stats { gap: 60px; }
    .card { width: 340px; }
}

@media (max-width: 900px) {
    header {
        padding: 20px 25px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;
    }
    .logo { justify-self: center; }
    nav {
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .header-spacer { display: none; }
    .logo-m3 { font-size: 36px; }
    .logo-divider { height: 40px; }
    .page-hero {
        padding: 0 25px;
        min-height: 350px;
    }
    .page-hero-content {
        left: 25px;
        top: 50%;
        max-width: calc(100% - 50px);
    }
    .page-hero h1 { font-size: 32px; margin-bottom: 15px; }
    .page-hero p {
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: 3;
    }
    .hero-content h1 { font-size: 24px; }
    .stats { flex-wrap: wrap; gap: 40px; padding: 60px 25px; }
    .stat-number { font-size: 48px; }
    .feature-section { grid-template-columns: 1fr; }
    .feature-image { height: 350px; order: -1; }
    .cards { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 400px; }
    .news-grid { flex-direction: column; align-items: center; }
    footer { flex-direction: column; gap: 20px; text-align: center; }
    .content-section { padding: 60px 25px; }
    .tenets-grid { grid-template-columns: 1fr; }
    .tenet-card { height: 180px; }
    .tenet-number { font-size: 80px; }
    .contact-header-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
        padding: 50px 30px;
    }
    .contact-floating-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    .contact-info-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
        padding: 40px 30px;
        box-shadow: none;
    }
    .contact-address { text-align: center; }
    .contact-form-section { padding: 40px 25px; box-shadow: none; }
    .form-row { flex-direction: column; gap: 0; }
    .contact-map { height: 350px; }
    .contact-map-full { height: 350px; margin-top: 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .team-members { grid-template-columns: 1fr; gap: 40px; }
    .team-member-photo { height: 300px; }
    .team-member { text-align: center; }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 0 20px;
        min-height: 280px;
        height: 40vh;
    }
    .page-hero-content {
        left: 20px;
        top: 45%;
        max-width: calc(100% - 40px);
    }
    .page-hero h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .page-hero p {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }
    .content-section { padding: 40px 20px; }
    .contact-form-section { padding: 30px 20px; }
    nav { gap: 15px; }
    nav a { font-size: 11px; }
}
