/* ===================================
   Ray's Investment Group - Styles
   Burgundy + Blush | Minimalist
==================================== */

/* CSS Custom Properties */
:root {
    --burgundy: #722F37;
    --burgundy-dark: #5A252C;
    --burgundy-light: #8B3A42;
    --blush: #F5E6E0;
    --blush-light: #FBF7F5;
    --blush-dark: #E8D5CC;
    --cream: #FDFCFA;
    --charcoal: #2C2C2C;
    --gray-dark: #4A4A4A;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --gray-lighter: #E8E8E8;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--burgundy);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-outline-light:hover {
    background-color: var(--burgundy);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Section Styles */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 1px;
    background-color: var(--burgundy);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===================================
   Navigation
==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--burgundy);
    border-radius: 2px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--burgundy);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--burgundy);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--charcoal);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1.5px;
    background-color: var(--charcoal);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* ===================================
   Hero Section
==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--burgundy-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/30237909/pexels-photo-30237909.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(90, 37, 44, 0.88) 0%,
        rgba(114, 47, 55, 0.82) 50%,
        rgba(90, 37, 44, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    border: 1px solid rgba(245, 230, 224, 0.3);
    padding: 8px 20px;
    margin-bottom: 32px;
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--blush);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ===================================
   Services Section
==================================== */
.services {
    padding: 120px 0;
    background-color: var(--cream);
}

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

.service-card {
    padding: 40px 32px;
    background-color: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: 2px;
    transition: var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 24px;
    border: 1px solid var(--blush);
    border-radius: 2px;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-description {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ===================================
   About Section
==================================== */
.about {
    padding: 120px 0;
    background-color: var(--blush-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--burgundy);
    border-radius: 2px;
    z-index: -1;
}

.about-content .section-tag {
    padding-left: 0;
}

.about-content .section-tag::before {
    display: none;
}

.about-text {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    border: 1px solid var(--blush-dark);
    border-radius: 50%;
}

.value-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.value-text {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ===================================
   Projects Section
==================================== */
.projects {
    padding: 120px 0;
    background-color: var(--cream);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    aspect-ratio: 5/4;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(90, 37, 44, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.3rem;
    color: var(--white);
}

/* ===================================
   CTA Section
==================================== */
.cta {
    padding: 100px 0;
    background-color: var(--burgundy);
    text-align: center;
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Contact Section
==================================== */
.contact {
    padding: 120px 0;
    background-color: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-tag {
    padding-left: 0;
}

.contact-info .section-tag::before {
    display: none;
}

.contact-text {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    border: 1px solid var(--blush-dark);
    border-radius: 50%;
}

.contact-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-value a {
    color: var(--burgundy);
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Form */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 48px;
    border: 1px solid var(--gray-lighter);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--blush-light);
    border: 1px solid var(--gray-lighter);
    border-radius: 2px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--burgundy);
    background-color: var(--white);
}

.form-input::placeholder {
    color: var(--gray-light);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--burgundy);
}

.form-success svg {
    margin-bottom: 16px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* ===================================
   Footer
==================================== */
.footer {
    background-color: var(--charcoal);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .logo-icon {
    background-color: var(--burgundy);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--blush);
}

.footer-contact p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 4px;
}

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

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

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ===================================
   Mobile Responsive
==================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(253, 252, 250, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--gray-lighter);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-scroll {
        display: none;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-accent {
        display: none;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 24px;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
