/* Saint-John Advisory - Enhanced Template CSS
   Based on SaintJohnMediaGroup template with Advisory brand colors */

:root {
    /* Advisory Brand Colors from Logo */
    --primary-purple: #5D2E5B;      /* Deep purple from logo */
    --accent-green: #4CAF50;        /* Bright green from logo */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #2C3E50;
    --medium-gray: #6C757D;
    --light-purple: #8B5A8C;        /* Lighter shade of primary */
    --success-green: #45A049;       /* Darker green for hover states */
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-purple);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-family: var(--font-primary);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--accent-green);
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--accent-green);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    border: 2px solid var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--success-green);
    border-color: var(--success-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.cta-button.secondary:hover {
    background: var(--accent-green);
    color: var(--white);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.intro {
    background: var(--light-gray);
    text-align: center;
}

.intro h2 {
    margin-bottom: 2rem;
}

.intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Services Grid */
.services-overview {
    background: var(--white);
}

.services-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(93, 46, 91, 0.15);
    border-color: var(--accent-green);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.service-card p {
    color: var(--medium-gray);
}

/* Startup Journey Section */
.startup-journey {
    background: var(--light-gray);
    text-align: center;
}

.full-width-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

/* Footer */
footer {
    background: var(--primary-purple);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Accessibility Improvements */
.cta-button:focus,
.main-nav a:focus,
.footer-links a:focus,
.social-icons a:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    header,
    footer,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
/* Fix for navigation colored boxes */
.main-nav a {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Add more breathing room from edges */
.container {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* For mobile devices, use smaller padding */
@media (max-width: 768px) {
    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

/* Ensure sections have proper spacing */
section {
    padding-left: 20px;
    padding-right: 20px;
}
/* Force proper margins on all pages */
body {
    margin: 0 40px !important;
    padding: 0 20px !important;
}

/* Specific fix for content areas */
.container, 
main, 
section, 
div {
    margin-left: 30px !important;
    margin-right: 30px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        margin: 0 20px !important;
        padding: 0 15px !important;
    }
    
    .container, 
    main, 
    section, 
    div {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}
 BRAND LOGO SIZE FIXES */
/* Make brand logos much larger and more visible */
.brand-card img,
.service-card img,
img[alt*="Logo"],
img[alt*="logo"] {
    width: 200px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Specific fixes for brand section logos */
.brands-grid img,
.brand-item img {
    width: 180px !important;
    height: 120px !important;
    object-fit: contain !important;
    margin: 15px auto !important;
}

/* GREEN BOX TEXT FIXES */
/* Make all button text white for better readability */
.btn,
button,
a[class*="btn"],
.visit-website,
a[href*="Visit"] {
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Specific fixes for colored buttons */
.btn-green,
.green-button,
a[style*="background"],
button[style*="background"] {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Force white text on all colored backgrounds */
div[style*="background-color"] a,
div[style*="background:"] a,
.colored-box a,
.service-card a {
    color: #FFFFFF !important;
}

/* Hover states for buttons */
.btn:hover,
button:hover,
a[class*="btn"]:hover {
    color: #FFFFFF !important;
    opacity: 0.9 !important;
}

/* ADDITIONAL BRAND CARD IMPROVEMENTS */
.brand-card,
.service-card {
    text-align: center !important;
    padding: 30px 20px !important;
}

.brand-card h3,
.service-card h3 {
    margin-top: 20px !important;
    margin-bottom: 15px !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .brand-card img,
    .service-card img,
    img[alt*="Logo"],
    img[alt*="logo"] {
        width: 150px !important;
        height: auto !important;
    }
    
    .brands-grid img,
    .brand-item img {
        width: 140px !important;
        height: 90px !important;
    }
}
/* SPECIFIC FIX FOR VISIT WEBSITE BUTTON TEXT */
/* Force white text on all Visit Website buttons */
a[href*="Visit"],
a[href*="visit"],
a:contains("Visit Website"),
.brand-card a,
.service-card a,
div[style*="background"] a {
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* More specific targeting for the blue buttons */
a[style*="background-color"],
a[style*="background:"],
button[style*="background"],
.btn-primary,
.btn-secondary {
    color: #FFFFFF !important;
}

/* Target the specific button structure you have */
.brand-card .btn,
.service-card .btn,
div[class*="card"] a,
div[class*="brand"] a {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Universal button text fix */
button,
.button,
[role="button"],
input[type="submit"],
input[type="button"] {
    color: #FFFFFF !important;
}

/* Hover states */
a:hover,
button:hover,
.btn:hover {
    color: #FFFFFF !important;
    opacity: 0.9 !important;
}

/* OPTIONAL: Reduce logo size slightly if too big */
.brand-card img,
.service-card img {
    width: 160px !important;
    height: auto !important;
    max-height: 100px !important;
    object-fit: contain !important;
    margin: 15px auto !important;
}
}


