/* ============================================
   RENEWAL CREST PARTNERS - MASTER STYLESHEET
   Version 4.0 — Consulting-First Rebuild
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --navy: #0f2744;
    --navy-light: #1a3a5c;
    --navy-dark: #0a1c30;
    --gold: #c9a227;
    --gold-light: #d4b84a;
    --gold-pale: #f5ecd4;
    --cream: #faf8f5;
    --white: #ffffff;
    --text-dark: #2a2a2a;
    --text-light: #6a6a6a;

    /* Service pillar accents */
    --teal: #0f6e56;
    --teal-light: #e1f5ee;
    --blue: #185fa5;
    --blue-light: #e6f1fb;
    --coral: #d85a30;
    --coral-light: #faece7;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 39, 68, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
    display: none;
}

@media (min-width: 900px) {
    .nav-logo-text {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gold-pale);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 8px 12px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Nav CTA button */
.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-light);
    color: var(--navy) !important;
    transform: translateY(-1px);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-dark);
    min-width: 240px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--gold);
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 20px;
    font-size: 0.75rem;
}

.nav-dropdown-content a::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 80px 30px;
        gap: 0;
        transition: right 0.4s ease;
        align-items: flex-start;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 0 20px;
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center;
        display: block;
    }
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 60px 24px;
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Headers (smaller heroes) */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    color: var(--gold-pale);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

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

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--cream);
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-white {
    background: var(--white);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 16px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    padding: 40px 30px;
    border-bottom: 3px solid var(--gold);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    stroke: var(--gold);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Pillar cards — colored accents */
.card-teal { border-bottom-color: var(--teal); }
.card-teal .card-icon { stroke: var(--teal); }
.card-blue { border-bottom-color: var(--blue); }
.card-blue .card-icon { stroke: var(--blue); }
.card-coral { border-bottom-color: var(--coral); }
.card-coral .card-icon { stroke: var(--coral); }

/* ============================================
   PILLAR PAGES — Service detail cards
   ============================================ */
.service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.service-item:last-child {
    border-bottom: none;
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    stroke: var(--gold);
}

.service-item h4 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* Ideal client callout */
.ideal-client {
    background: var(--white);
    border-left: 4px solid var(--gold);
    padding: 32px;
    margin-top: 20px;
}

.ideal-client h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.ideal-client p {
    color: var(--text-light);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   STEPS — How We Work
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.step {
    text-align: center;
    padding: 32px 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.section-dark .step-number {
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--gold);
}

.step h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.section-dark .step h4 {
    color: var(--white);
}

.step p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.section-dark .step p {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 500px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.team-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-member h3 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-member .role {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============================================
   CONTACT INFO
   ============================================ */
.location-card {
    background: var(--white);
    padding: 40px;
    border-bottom: 3px solid var(--gold);
}

.location-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-info .info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.location-info svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-info .info-text {
    color: var(--text-dark);
}

.location-info .info-text strong {
    display: block;
    color: var(--navy);
    margin-bottom: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand img {
    height: 60px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITIES
   ============================================ */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
