:root {
    --bg-dark: #0B121C;
    --bg-card: #151D29;
    --bg-default: #05131E;
    --bg-dark-blue: #10293C;
    --bg-footer: #112733;
    --accent-gold: #C9A05F;
    --accent-gold-hover: #b0885a;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-blue: #9EB1BC;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --transition-2: transform 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark-blue);
}

.btn-alternative {
    color: #fff;
}

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

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

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

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

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

/* HEADER */
.main-header {
    background-color: var(--bg-dark-blue);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.main-nav ul {
    display: flex;
    gap: 3rem;
}

.main-nav a {
    font-size: 0.95rem;
    color: #ccc;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--accent-gold);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.menu-toggle, .mobile-only-item {
    display: none;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #284962 100%),
        linear-gradient(270deg, rgba(0, 0, 0, 0.00) 21.54%, #102839 68.1%),
        url('images/meridian_home_background.png') no-repeat center center/cover,
        linear-gradient(180deg, #0A1F2F 0%, #1A3A52 50%, #2C4E68 100%);
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: none;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: #ccc;
    line-height: 1.6;
    max-width: 550px;
}

.hero-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    animation: bounce 2s infinite;
    z-index: 2;
    text-transform: lowercase;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* BUSINESSES SECTION */
.businesses {
    background-color: var(--bg-default);
    padding-top: 5rem;
    padding-bottom: 8rem;
}

.business-header {
    margin-bottom: 4rem;
}

.business-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 5rem;
    align-items: start;
}

.business-card {
    background: transparent;
    padding: 2rem 0; /* Padding moved to support content scaling properly inside */
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative; /* Needed for stretched-link */
}

/* Remove hover scale from main card to avoid border scaling */
/* .business-card:hover { transform: scale(1.1); } */

.business-card-content {
    transition: var(--transition-2);
    will-change: transform;
    padding: 0 2rem;
}

.business-card:hover .business-card-content {
    transform: scale(1.05); /* Slight scale for content */
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.business-card:first-child {
    border-left: none;
}

.business-heading {
    font-size: 2.5rem; 
    margin-bottom: 0.5rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.business-logo-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.business-desc {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.6;
}

.business-desc span {
    color: #fff;
    font-weight: 600;
}

.meridian-pill-container {
    background: #112733;
    padding: 2rem 10rem;
    border-radius: 132px;
    display: inline-block;
    margin-top: 2rem;
}

.meridian-pill-container img {
    max-width: 350px;
    width: 100%;
}

.meridian-pill-container p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    max-width: 100%;
}

/* ORGANOGRAM / INTRO */
.intro-organogram {
    padding: 6rem 0;
    background-color: var(--bg-default);
}

.intro-text {
    max-width: 900px;
    margin: 0 auto 5rem auto;
}

.organogram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    border-top: 1px solid rgba(198, 156, 109, 0.3);
    padding-top: 3rem;
}

.org-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.org-connector {
    height: 30px;
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
}

.org-box {
    background: #141C29;
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #2A3648;
    color: #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.org-head {
    border-color: var(--accent-gold);
    color: #fff;
    font-weight: 600;
}

.organogram-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}


/* CONTACT SECTION */
.contact {
    position: relative;
    background: url('../images/meridian_contato_background.png') no-repeat center center/cover;
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.contact-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-weight: 700;
    text-align: center;
}

.contact-title span {
    color: var(--accent-gold);
}

.contact-subtitle {
    font-size: 1rem;
    color: #ccc;
    margin: 0 2rem 3rem 2rem;
    line-height: 1.6;
    text-align: center;
}

.contact-form-wrapper {
    background: #1F2A33;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #bbb;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: none;
    background: #E8E8E8;
    color: #333;
    font-family: var(--font-main);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

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

.btn-gold-full {
    background-color: var(--accent-gold);
    color: #fff;
    width: 100%;
    text-align: center;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold-full:hover {
    background-color: var(--accent-gold-hover);
}



/* FOOTER */
.main-footer {
    background-color: var(--bg-footer);
    padding-top: 4rem;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.footer-logo {
    max-width: 320px; 
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #ccc;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item img {
    width: 8%;
}

.footer-right {
    text-align: right;
}

.footer-right h4 {
    margin-bottom: 0.5rem;
    color: var(--text-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}



/* RESPONSIVE */
@media (max-width: 992px) {
    .header-container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
    }

    .main-header {
        position: absolute; /
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

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

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Nav */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        width: calc(100% - 2rem);
        background-color: var(--bg-dark-blue);
        border: 1px solid rgba(255,255,255,0);
        border-radius: 60px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out, visibility 0s 0.4s;
        opacity: 0;
        visibility: hidden;
        margin-top: 2.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .main-nav.active {
        max-height: 500px; 
        opacity: 1;
        visibility: visible;
        padding: 1rem 0;
        margin: 2.5rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out, visibility 0s 0s;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 0;
        align-items: center;
        width: 100%;
    }

    .main-nav li {
        width: 190px;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        width: 90%;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only-item {
        display: block;
    }

    .hero-wrapper { grid-template-columns: 1fr; }
    .business-cards { grid-template-columns: 1fr; gap: 3rem; }
    .business-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .organogram-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .intro-organogram {
        padding: 2rem 0;
    }

    .businesses {
        padding-top: 6rem;
        padding-bottom: 0rem;
    }

    .meridian-pill-container {
        padding: 2rem 3rem;
        margin-top: 0rem;
    }

    .meridian-pill-container p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }

    .meridian-pill-container img {
        width: 80%;
    }

    .contact {
        padding: 5rem 0;
    }
    
    .contact-subtitle {
        margin: 0 2rem 0rem 2rem;
    }

    .business-card {
        padding: 2rem 8rem 0 8rem;
    }
    
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .footer-left {
        align-items: center;
         gap: 2rem;
    }

    .footer-logo {
        max-width: 220px; 
    }
    
    .footer-contact-info {
        border-left: none;
        padding-left: 0;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .legal-links {
        justify-content: flex-start;
    }

    .footer-right h4 {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .main-nav.active {
        padding: 1rem 0 2rem 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        width: 100%;
    }

    .organogram-grid {
        grid-template-columns: 1fr;
    }
    .main-nav ul { flex-direction: column; align-items: center; gap: 1rem; }

    .hero-buttons {
        display: flex;
        gap: 1rem;
        flex-direction: column;
        margin-bottom: 6rem;
    }

    .btn {
        align-self: center;
    }

    .organogram-heading {
        font-size: 2rem;
    }

    .business-heading {
        font-size: 2rem;
    }

    .business-card {
        padding: 0;
    }

    .contact-title {
        font-size: 2rem;
    }

    .meridian-pill-container p {
        font-size: 0.95rem;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
    }

    .footer-contact-info {
        align-items: center;
    }

    .legal-links {
        gap: 1rem;
        justify-content: center;
    }
}