/* 
 * Legacies Management Website Styles
 * A professional, multi-page website for an investment/holding company
 */

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary-color: #1a2a3a; /* Deep Navy Blue */
    --secondary-color: #f8f8f8; /* Soft Off-White */
    --accent-color: #c19a5b; /* Muted Gold */
    --text-color: #333333; /* Dark Gray for body text */
    --light-text: #ffffff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Merriweather', serif;
    
    /* Spacing */
    --section-spacing: 6rem;
    --element-spacing: 2rem;
}

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

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h1 {
    font-size: 4.8rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.8rem;
    max-width: 70rem;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 0.2rem solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--light-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 0.2rem solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    height: 5rem;
}

.logo img {
    height: 100%;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.contact-btn {
    padding: 0.8rem 1.6rem;
    border: 0.1rem solid var(--primary-color);
    border-radius: 0.4rem;
}

.contact-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.4rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 0.3rem;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 60rem;
    background-image: linear-gradient(rgba(26, 42, 58, 0.7), rgba(26, 42, 58, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 8rem;
}

.hero-content {
    max-width: 80rem;
    color: var(--light-text);
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-content .subtitle {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ===== Founder's Journey Section ===== */
.founders-journey {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
}

.journey-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.journey-item {
    text-align: center;
    padding: 3rem;
    background-color: var(--light-text);
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.journey-item .icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.journey-item .step p {
    font-size: 1.4rem;
    color: var(--text-color);
    height: 6rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ===== Operational Edge Section ===== */
.operational-edge {
    padding: var(--section-spacing) 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.operational-edge .section-header h2 {
    color: var(--light-text);
}

.edge-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    align-items: stretch;
}

/* Medium screens: 2x2 layout */
@media (max-width: 1024px) {
    .edge-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Small screens: stacked layout */
@media (max-width: 768px) {
    .edge-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.edge-item {
    text-align: center;
    padding: 3rem 2rem 4rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 35rem;
    box-sizing: border-box;
}

.edge-item:hover {
    transform: translateY(-0.5rem);
}

.edge-item .icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.edge-item h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.edge-item p {
    font-size: 1.4rem;
    color: var(--light-text);
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

/* ===== Partners Section ===== */
.partners-section {
    padding: var(--section-spacing) 0;
    background-color: white;
}

.partners-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.partner-category {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-category:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.partner-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.partner-category p {
    text-align: left;
    margin-bottom: 1.5rem;
}

.partner-category p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .partners-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner-category {
        padding: 2rem;
    }
}

/* ===== Approach Overview Section ===== */
.approach-overview {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
}

.approach-steps {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    position: relative;
}

.approach-steps:before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    position: relative;
    text-align: center;
    width: 18%;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.step-number {
    width: 8rem;
    height: 8rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
}

.step p {
    font-size: 1.4rem;
    color: var(--text-color);
    height: 6rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.approach-cta {
    text-align: center;
    margin-top: 4rem;
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 5rem;
    margin-bottom: 1.5rem;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.footer-nav ul li {
    margin-bottom: 1rem;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 2rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 2rem;
}

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

/* ===== Responsive Styles ===== */
@media screen and (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .approach-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .approach-steps:before {
        display: none;
    }
    
    .step {
        width: 100%;
        max-width: 40rem;
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    header .container {
        height: 7rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 7rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 7rem);
        background-color: var(--light-text);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 2rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.6rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 1.5rem;
        justify-content: center;
    }
    
    .footer-legal a:first-child {
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .journey-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .edge-content {
        grid-template-columns: 1fr;
    }
}
