/* =============================================================
   Fondo Inc — Custom Styles
   Modern Minimalist VC Design (A16Z / Sequoia style)
   Brand: Navy #1a2744 | Gold #c9a045 | White #ffffff
   ============================================================= */

/* ---------------------------------------------------------------
   1. BASE / RESET
--------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
}

/* ---------------------------------------------------------------
   2. NAV — Fixed dark navy, logo left, menu right
--------------------------------------------------------------- */
nav#nav,
#nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 3em !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 4.5em !important;
    z-index: 99999 !important;
    background-color: #1a2744 !important;
    box-sizing: border-box !important;
    border-bottom: none !important;
}

div#logo,
nav#nav div#logo,
#nav #logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1 !important;
    width: auto !important;
    position: static !important;
}

nav#nav div#logo img,
#nav #logo img {
    height: 36px !important;
    width: auto !important;
    display: block !important;
}

nav#nav > ul,
#nav > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    order: 2 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

nav#nav > ul > li,
#nav > ul > li {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    float: none !important;
}

nav#nav > ul > li > a,
#nav > ul > li > a {
    display: flex !important;
    align-items: center !important;
    height: 4.5em !important;
    padding: 0 1.2em !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.72em !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
}

nav#nav > ul > li > a:hover,
nav#nav > ul > li.current > a,
#nav > ul > li > a:hover,
#nav > ul > li.current > a {
    color: #ffffff !important;
    background: transparent !important;
}

#page-wrapper {
    padding-top: 4.5em !important;
}

#nav #logo h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1em !important;
    line-height: 1 !important;
}

@media screen and (max-width: 640px) {
    nav#nav > ul,
    #nav > ul {
        display: none !important;
    }
}

/* ---------------------------------------------------------------
   3. HERO SECTION (#hero-section)
--------------------------------------------------------------- */
#hero-section {
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: #1a2744;
    padding: 6em 3em;
}

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

.hero-eyebrow {
    display: block;
    font-size: 0.72em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c9a045;
    font-weight: 700;
    margin-bottom: 1.5em;
}

.hero-headline {
    font-size: 4.5em;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 16ch;
    margin: 0 0 0.6em;
}

.hero-subtitle {
    font-size: 1.15em;
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    line-height: 1.75;
    margin: 0 0 2.5em;
}

.btn-primary {
    display: inline-block;
    background: #c9a045;
    color: #1a2744;
    padding: 0.9em 2.5em;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid #c9a045;
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
    background: transparent;
    color: #c9a045;
}

/* ---------------------------------------------------------------
   4. PHILOSOPHY SECTION (#philosophy-section)
--------------------------------------------------------------- */
#philosophy-section {
    background: #ffffff;
    padding: 7em 0;
    border-top: 1px solid #e5e7eb;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5em;
    margin-top: 3em;
}

.principle-card {
    background: none;
    padding: 0;
}

.principle-icon {
    margin-bottom: 1.5em;
}

.principle-icon i {
    font-size: 1.8em;
    color: #c9a045;
}

.principle-card h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 0.7em;
}

.principle-card p {
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ---------------------------------------------------------------
   5. PORTFOLIO SECTION (#portfolio-section)
--------------------------------------------------------------- */
#portfolio-section {
    background: #1a1a2e;
    padding: 7em 0;
}

#portfolio-section .section-label {
    color: #c9a045;
}

.section-title-white {
    font-size: 2.8em;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 0.4em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin-top: 3em;
}

.portfolio-card {
    background: #ffffff;
    padding: 2em;
    border: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.portfolio-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.portfolio-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1.5em;
    display: block;
}

.portfolio-card h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 0.5em;
}

.portfolio-card h3 a {
    color: #1a2744;
    text-decoration: none;
    transition: color 0.2s;
}

.portfolio-card h3 a:hover {
    color: #c9a045;
}

.portfolio-card p {
    font-size: 0.88em;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 1em;
}

.portfolio-tag {
    display: inline-block;
    background: #1a2744;
    color: #c9a045;
    font-size: 0.7em;
    padding: 0.35em 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3em;
}

/* ---------------------------------------------------------------
   6. NEWS SECTION (#news-section)
--------------------------------------------------------------- */
#news-section {
    background: #ffffff;
    padding: 7em 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5em;
    margin-top: 3em;
}

.blog-card {
    padding-bottom: 2em;
    border-bottom: 2px solid #e5e7eb;
    transition: border-bottom-color 0.2s;
}

.blog-card:hover {
    border-bottom-color: #c9a045;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.2em;
    display: block;
}

.blog-meta {
    display: block;
    font-size: 0.72em;
    color: #c9a045;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6em;
}

.blog-card h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a2744;
    line-height: 1.35;
    margin-bottom: 0.6em;
}

.blog-card h4 a {
    color: #1a2744;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h4 a:hover {
    color: #c9a045;
}

.blog-card p {
    font-size: 0.88em;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 1em;
}

.read-more {
    display: inline-block;
    font-size: 0.78em;
    color: #c9a045;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: #1a2744;
}

/* ---------------------------------------------------------------
   7. CTA SECTION (#cta-section)
--------------------------------------------------------------- */
#cta-section {
    background: #1a2744;
    padding: 7em 0;
    text-align: center;
}

#cta-section h2 {
    font-size: 2.8em;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

#cta-section p {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto 2.5em;
    line-height: 1.7;
}

/* ---------------------------------------------------------------
   8. FOOTER (#footer)
--------------------------------------------------------------- */
#footer {
    background: #1a2744 !important;
}

#footer .title {
    color: #c9a045;
    font-size: 0.72em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#footer header.style1 h2 {
    color: #ffffff;
    font-size: 1.8em;
}

#footer header.style1 p {
    color: rgba(255, 255, 255, 0.55);
}

#footer .feature-list h3 {
    color: #c9a045;
    font-size: 0.78em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

#footer .feature-list h3::before {
    color: #c9a045;
}

#footer .feature-list p,
#footer .feature-list a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

#footer .feature-list a:hover {
    color: #c9a045;
}

#footer form input,
#footer form textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

#footer form input::placeholder,
#footer form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#footer input[type="submit"],
#footer form button[type="submit"] {
    background: #c9a045;
    color: #1a2744;
    border: 2px solid #c9a045;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
}

#footer input[type="submit"]:hover {
    background: transparent;
    color: #c9a045;
}

#copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

#copyright li a {
    color: rgba(255, 255, 255, 0.35);
}

#copyright li a:hover {
    color: #c9a045;
}

/* ---------------------------------------------------------------
   9. INNER PAGE: .page-header
--------------------------------------------------------------- */
.page-header {
    background-color: #1a2744;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 7em 0 5em;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.88);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 3em;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.3em;
}

.page-header p {
    position: relative;
    z-index: 1;
    color: #c9a045;
    font-size: 0.72em;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------------------------------------------------------------
   10. SECTION WRAPPERS (override main.css)
--------------------------------------------------------------- */
.wrapper.style2 {
    background: #ffffff !important;
}

.wrapper.style3 {
    background: #f8f9fa !important;
}

#main {
    background: #ffffff !important;
}

#highlights {
    background: #f8f9fa !important;
}

.wrapper.style2 .title,
.wrapper.style3 .title,
#main .title,
#highlights .title {
    color: #c9a045;
}

/* ---------------------------------------------------------------
   11. CONTENT SECTIONS (inner pages)
--------------------------------------------------------------- */
.content-section {
    padding: 4em 0;
    border-bottom: 1px solid #e5e7eb;
}

.content-section h2 {
    font-size: 2em;
    font-weight: 800;
    color: #1a2744;
    letter-spacing: -0.02em;
    margin-bottom: 0.3em;
}

.section-subtitle {
    display: block;
    font-size: 0.72em;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c9a045;
    font-weight: 700;
    margin-bottom: 0.8em;
}

.divider-gold {
    width: 48px;
    height: 3px;
    background: #c9a045;
    margin: 0.8em 0 2em;
    border: none;
}

.thesis-box {
    background: #f8f9fa;
    border-left: 4px solid #c9a045;
    padding: 2em;
    margin-bottom: 1.5em;
}

.thesis-box h3 {
    color: #1a2744;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.thesis-box p {
    color: #6b7280;
    margin: 0;
}

.contact-info-card {
    background: #f8f9fa;
    border-left: 4px solid #c9a045;
    padding: 2em;
    margin-bottom: 1.5em;
}

.contact-info-card h3 {
    color: #1a2744;
    font-weight: 700;
    margin-bottom: 0.5em;
}

/* ---------------------------------------------------------------
   12. BUTTONS (override main.css)
--------------------------------------------------------------- */
.button.style1 {
    background: #c9a045 !important;
    color: #1a2744 !important;
    border-color: #c9a045 !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
}

.button.style1:hover {
    background: transparent !important;
    color: #c9a045 !important;
}

.button.style2 {
    background: transparent !important;
    color: #c9a045 !important;
    border-color: #c9a045 !important;
    border-radius: 0 !important;
}

.button.style2:hover {
    background: #c9a045 !important;
    color: #1a2744 !important;
}

.button.style3 {
    background: #1a2744 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}

/* ---------------------------------------------------------------
   13. STATS GRID
--------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e5e7eb;
}

.stat-card {
    text-align: center;
    padding: 2.5em 1.5em;
    border-right: 1px solid #e5e7eb;
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 3.2em;
    font-weight: 800;
    color: #1a2744;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.4em;
}

.stat-label {
    font-size: 0.72em;
    color: #9ca3af;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------------------------------------------------------------
   14. TEAM CARDS
--------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
}

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

.team-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    object-fit: cover;
    margin-bottom: 1em;
    display: block;
}

.team-card h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 0.2em;
}

.team-card .role {
    font-size: 0.72em;
    color: #c9a045;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.8em;
}

.team-card p {
    font-size: 0.88em;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ---------------------------------------------------------------
   15. PORTFOLIO INNER PAGE
--------------------------------------------------------------- */
.portfolio-card h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a2744;
}

.portfolio-card p {
    font-size: 0.88em;
    color: #6b7280;
}

/* ---------------------------------------------------------------
   16. ARTICLE PAGES
--------------------------------------------------------------- */
.article-header {
    background: #1a2744;
    padding: 6em 0 4em;
    text-align: center;
    position: relative;
}

.article-header h1 {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 0.5em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.article-meta {
    color: #c9a045;
    font-size: 0.78em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 4em 2em;
    color: #374151;
    font-size: 1.05em;
    line-height: 1.8;
}

.article-body h2 {
    color: #1a2744;
    font-size: 1.5em;
    font-weight: 700;
    border-bottom: 2px solid #c9a045;
    padding-bottom: 0.4em;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.back-to-blog {
    display: inline-block;
    color: #c9a045;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 2em;
}

.back-to-blog:hover {
    color: #1a2744;
}

.article-featured-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ---------------------------------------------------------------
   17. LEGAL PAGES
--------------------------------------------------------------- */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4em 2em;
    color: #374151;
    line-height: 1.7;
}

.legal-content h2 {
    color: #1a2744;
    border-bottom: 2px solid #c9a045;
    padding-bottom: 0.4em;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.legal-content table th {
    background: #1a2744;
    color: #c9a045;
    padding: 0.8em;
    text-align: left;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.8em;
}

/* ---------------------------------------------------------------
   18. RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 980px) {
    .hero-headline {
        font-size: 3em;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.2em;
    }

    .portfolio-grid,
    .blog-grid,
    .stats-grid,
    .team-grid,
    .principles-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5em;
    }

    #hero-section {
        padding: 5em 1.5em;
    }
}

/* ---------------------------------------------------------------
   19. SECTION LAYOUT HELPERS
--------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3em;
}

.section-label {
    display: block;
    font-size: 0.72em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c9a045;
    font-weight: 700;
    margin-bottom: 1em;
}

.section-title {
    font-size: 2.8em;
    font-weight: 800;
    color: #1a2744;
    margin: 0 0 0.4em;
    letter-spacing: -0.02em;
}

.section-lead {
    font-size: 1.1em;
    color: #6b7280;
    max-width: 560px;
    line-height: 1.7;
    margin: 0 0 3em;
}

.news-cta,
.section-cta {
    text-align: center;
    margin-top: 3em;
}


/* ---------------------------------------------------------------
   FIX: Flex grid horizontal overflow (negative-margin .row containment)
--------------------------------------------------------------- */
.wrapper,
.content-section {
    overflow-x: hidden;
}

