/* ============================================
   M&T Bank ATM — Editorial Marketing Site
   Forest Green + Off-White + Gold Accent
   ============================================ */

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

:root {
    --forest: #1B4332;
    --forest-deep: #0F2B1F;
    --forest-light: #2D6A4F;
    --forest-muted: #40916C;
    --gold: #D4A843;
    --gold-light: #E8C96A;
    --gold-dark: #B8922E;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --warm-white: #FEFDFB;
    --charcoal: #1A1A1A;
    --slate: #2C2C2C;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B6B6B;
    --text-light: #9A9A9A;
    --border: rgba(27, 67, 50, 0.12);
    --border-strong: rgba(27, 67, 50, 0.25);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 48px;
    }
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* --- Section Utilities --- */
.section {
    padding: 100px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 130px 0;
    }
}

.section__header {
    margin-bottom: 64px;
}

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

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 20px;
}

.section__label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.section__label--light {
    color: var(--gold-light);
}

.section__label--light::before {
    background: var(--gold);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--forest);
    margin-bottom: 20px;
}

.section__title--light {
    color: var(--cream);
}

.title--accent {
    color: var(--forest-light);
    font-style: italic;
    font-weight: 600;
}

.title--gold {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--forest);
    color: var(--cream);
    border: 2px solid var(--forest);
}

.btn--primary:hover {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(250, 248, 245, 0.4);
}

.btn--ghost:hover {
    background: rgba(250, 248, 245, 0.1);
    border-color: rgba(250, 248, 245, 0.7);
    transform: translateY(-2px);
}

.btn--gold {
    background: var(--gold);
    color: var(--forest-deep);
    border: 2px solid var(--gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost-light {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(250, 248, 245, 0.3);
}

.btn--ghost-light:hover {
    background: rgba(250, 248, 245, 0.1);
    border-color: rgba(250, 248, 245, 0.6);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--large {
    padding: 18px 36px;
    font-size: 15px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav__logo-icon {
    color: var(--gold);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 248, 245, 0.8);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: var(--cream);
    background: rgba(250, 248, 245, 0.1);
}

.nav__link--cta {
    background: var(--gold);
    color: var(--forest-deep);
    font-weight: 600;
    margin-left: 8px;
}

.nav__link--cta:hover {
    background: var(--gold-light);
    color: var(--forest-deep);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.nav__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--forest-deep);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 16px;
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-deep);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 43, 31, 0.92) 0%,
        rgba(27, 67, 50, 0.85) 40%,
        rgba(45, 106, 79, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    color: var(--cream);
    line-height: 1.05;
    margin-bottom: 28px;
    max-width: 800px;
}

.hero__accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
}

.hero__subheadline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(250, 248, 245, 0.75);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 64px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero__stat-label {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.6);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(250, 248, 245, 0.2);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(250, 248, 245, 0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(250,248,245,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 767px) {
    .hero__stats {
        gap: 24px;
    }
    .hero__stat-divider {
        display: none;
    }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--cream);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--forest-muted));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.card:hover::before {
    opacity: 1;
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 67, 50, 0.08);
    border-radius: var(--radius-md);
    color: var(--forest);
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.card:hover .card__icon {
    background: var(--forest);
    color: var(--cream);
}

.card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 12px;
    line-height: 1.2;
}

.card__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   WHY M&T
   ============================================ */
.why-mt {
    background: var(--forest);
    overflow: hidden;
}

.why-mt__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.why-mt__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 6/7;
    position: relative;
}

.why-mt__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-mt__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(250, 248, 245, 0.1);
    pointer-events: none;
}

.why-mt__content {
    padding: 16px 0;
}

.why-mt__body {
    font-size: 1.05rem;
    color: rgba(250, 248, 245, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.why-mt__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.why-mt__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(250, 248, 245, 0.9);
}

.why-mt__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 50%;
    color: var(--gold);
}

@media (min-width: 900px) {
    .why-mt__layout {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 64px;
    }
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    background: var(--cream-dark);
}

.location__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.location__info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.location__card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.location__card:first-child {
    border-top: 1px solid var(--border);
}

.location__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    border-radius: var(--radius-sm);
    color: var(--gold);
}

.location__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location__detail-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.location__detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.location__link {
    color: var(--forest);
    transition: color var(--transition-fast);
}

.location__link:hover {
    color: var(--forest-light);
}

.location__cta {
    margin-top: 32px;
}

.location__map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.location__map-placeholder {
    position: relative;
    aspect-ratio: 16/10;
}

.location__map-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.location__map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location__map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 43, 31, 0.4);
    gap: 16px;
}

.location__map-pin {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.location__map-label {
    text-align: center;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@media (min-width: 900px) {
    .location__layout {
        grid-template-columns: 1fr 1.1fr;
        gap: 48px;
    }
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
    background: var(--forest-deep);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
}

.cta__text {
    max-width: 480px;
}

.cta__body {
    font-size: 1.05rem;
    color: rgba(250, 248, 245, 0.7);
    line-height: 1.8;
    margin-top: 20px;
}

.cta__form-wrap {
    background: rgba(250, 248, 245, 0.05);
    border: 1px solid rgba(250, 248, 245, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 248, 245, 0.6);
    margin-bottom: 8px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(250, 248, 245, 0.07);
    border: 1px solid rgba(250, 248, 245, 0.15);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    transition: all var(--transition-fast);
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: rgba(250, 248, 245, 0.35);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--gold);
    background: rgba(250, 248, 245, 0.1);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__note {
    text-align: center;
    font-size: 13px;
    color: rgba(250, 248, 245, 0.4);
    margin-top: 16px;
}

.form__success {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.form__success-icon {
    color: var(--gold);
}

.form__success-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--cream);
}

.form__success-text {
    font-size: 15px;
    color: rgba(250, 248, 245, 0.7);
    line-height: 1.7;
    max-width: 320px;
}

@media (min-width: 900px) {
    .cta__inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0A1F15;
    color: rgba(250, 248, 245, 0.6);
    padding: 72px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(250, 248, 245, 0.08);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: var(--gold);
}

.footer__tagline {
    font-size: 15px;
    line-height: 1.7;
    max-width: 300px;
    color: rgba(250, 248, 245, 0.5);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer__col-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(250, 248, 245, 0.55);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer__col a:hover {
    color: var(--cream);
}

.footer__col span {
    display: block;
    font-size: 14px;
    color: rgba(250, 248, 245, 0.55);
    padding: 6px 0;
}

.footer__bottom {
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__copy {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.35);
}

.footer__legal {
    font-size: 12px;
    color: rgba(250, 248, 245, 0.25);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .footer__top {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width: 900px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu Overlay --- */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav__overlay.active {
    display: block;
}
