/* --- Global Variables & Tailwind Config Overrides --- */
:root {
    --primary-blue: #2563EB;
    --primary-dark: #1E3A8A; /* Darker blue for gradients */
    --secondary-blue: #3B82F6;
    --success-green: #059669;
    --alert-red: #EF4444;
    --gray-dark: #111827;
    --gray-medium: #4B5563;
    --gray-light: #F3F4F6;
    --pale-blue: #EFF6FF; /* Lighter shade for backgrounds */
    --white: #FFFFFF;
}

/* --- Typography --- */
/* Import Source Sans Pro for body text */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

body {
    font-family: 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.125rem; /* 18px equivalent using rem for accessibility */
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Headlines use Segoe UI with appropriate weights */
h1 {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 900; /* Hero weight */
    line-height: 1.2;
}

h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 600; /* Section weight */
    line-height: 1.2;
}

/* --- Hero Gradient (Standardized Dark Blue) --- */
.gradient-bg, 
.section--gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.gradient-bg h1, 
.gradient-bg h2, 
.gradient-bg p,
.section--gradient h1, 
.section--gradient h2, 
.section--gradient p {
    color: var(--white);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

/* Primary button: 135-degree gradient */
.btn--primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--success-green) 100%);
    color: var(--white);
    border: none;
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Secondary button: 2px border style */
.btn--secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn--secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Ghost/Quiet Button (for "Prefer to chat?" links) */
.btn--quiet {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--quiet:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* --- Service Cards (Subtle Gradients) --- */
.card-service-consulting {
    background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%); /* Green subtle gradient */
    border: 1px solid #A7F3D0;
}

.card-service-web {
    background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%); /* Blue subtle gradient */
    border: 1px solid #BFDBFE;
}

.card-service-branding {
    background: linear-gradient(145deg, #FAF5FF 0%, #F3E8FF 100%); /* Purple subtle gradient */
    border: 1px solid #E9D5FF;
}

.card-service-support {
    background: linear-gradient(145deg, #F9FAFB 0%, #F3F4F6 100%); /* Gray subtle gradient */
    border: 1px solid #E5E7EB;
}

/* --- Utilities --- */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, var(--primary-blue), #9333EA);
}

/* For white text on dark backgrounds */
.text-gradient-white {
    background: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
}

.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.brand-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Scroll Margin for Anchors */
[id] {
    scroll-margin-top: 100px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* --- Form Success State --- */
.form-success {
    background-color: #ECFDF5;
    border: 2px solid var(--success-green);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.form-success h3 {
    color: var(--success-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--gray-medium);
}

/* --- Secondary Font Utility --- */
.font-secondary {
    font-family: 'Source Sans Pro', system-ui, sans-serif;
}

/* --- Social Links --- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--success-green);
    transform: translateY(-2px);
}

/* --- Bealie Chatbot Integration --- */
#bealie-chatbot {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

