/* 
   Waypoint Strategy Partners
   Premium Design System 
*/

:root {
    /* Colors - Celestial Minimalism Palette */
    --color-primary: #0B3D5D;
    /* Deep Navy */
    --color-primary-dark: #081f2e;
    --color-accent: #5DADE2;
    /* Teal */
    --color-gold: #D4AF37;
    /* Gold */
    --color-action: #D4AF37;
    /* Gold - used for checkmarks and badges */
    --color-bg-light: #FAF9F6;
    --color-text-body: #6B7280;
    --color-text-heading: #0B3D5D;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(11, 61, 93, 0.2), 0 4px 6px -2px rgba(11, 61, 93, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(11, 61, 93, 0.25), 0 10px 10px -5px rgba(11, 61, 93, 0.1);
    --glow-text: 0 0 20px rgba(93, 173, 226, 0.3);
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.125rem;
    /* ~18px for body */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Professional Touch: Subtle enhancement */
    filter: brightness(1.02) contrast(1.05) saturate(1.05);
    transition: filter 0.3s ease;
}

img:hover {
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background-color: var(--color-bg-light);
    z-index: 10;
}

/* Vertical Journey: Diagonal Transitions */
.section:nth-child(even) {
    background-color: #f4f2ee;
    /* Slightly darker cream for contrast */
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 calc(100% - 50px));
    padding-top: calc(var(--spacing-xl) + 50px);
    padding-bottom: calc(var(--spacing-xl) + 50px);
    margin-top: -50px;
    margin-bottom: -50px;
}

.text-accent {
    color: var(--color-accent);
}

.text-gold {
    color: var(--color-gold);
    font-weight: 700;
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.4);
}

.btn-primary:hover {
    background-color: #4a9dd1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 173, 226, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 61, 93, 0.95);
    /* Deep Navy */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-white);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    /* Increased for vertical journey */
    background: linear-gradient(to bottom, #0B3D5D, #081f2e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    padding-top: 0;
    /* Remove padding to center perfectly */
    overflow: hidden;
}

.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: drift linear infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    /* Star glow */
}

/* Glow Effect for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.15) 0%, rgba(11, 61, 93, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes drift {
    from {
        transform: translateX(-10%);
    }

    to {
        transform: translateX(110vw);
    }
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    /* Custom easing */
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    /* Larger for impact */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.05;
    color: var(--color-white);
    text-shadow: 0 0 30px rgba(93, 173, 226, 0.3);
    /* Soft text glow */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* About Section */
.about-section {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text .section-title {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.role-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.values-list {
    margin-top: 2rem;
}

.values-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    color: var(--color-action);
    font-weight: 800;
}

/* Services */
.services-section {
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 155, 142, 0.1);
    /* Transparent teal */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

/* Portfolio/Ventures */
.portfolio-section {
    background-color: var(--color-white);
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.logo-card {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 250px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-card h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Resources Section */
.resources-section {
    background-color: var(--color-accent);
    /* Warm Teal */
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.white-text {
    color: var(--color-white) !important;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.resource-card h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.resource-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
}

.resource-card.highlight {
    background-color: var(--color-primary);
    /* Navy card on Teal bg */
    border-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-action);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all var(--transition-normal);
}

.btn-white:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}

/* Contact */
.contact-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text .section-title {
    color: var(--color-white);
    font-size: 2.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 54, 93, 0.8);
    /* Navy overlay */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--color-white);
    margin: 10% auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--color-text-body);
    margin-bottom: 2rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
    text-decoration: none;
    color: white;
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.payment-btn.stripe {
    background-color: #635bff;
}

.payment-btn.paypal {
    background-color: #003087;
}

.payment-btn.venmo {
    background-color: #008CFF;
}

.secure-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* Gallery Section */
.gallery-section {
    background-color: var(--color-bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 300px;
    position: relative;
    transition: transform var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Newsletter Popup Modal */
.newsletter-modal-content {
    text-align: center;
    padding: 3rem 2.5rem;
}

.newsletter-popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.newsletter-popup-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.newsletter-popup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.2);
}

.newsletter-no-thanks {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.newsletter-no-thanks a {
    color: #aaa;
    text-decoration: underline;
}

.newsletter-no-thanks a:hover {
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: #152a48;
    /* Darker than primary */
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation usually requires JS */
        /* Simplification for now: stacked */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }
}