/* --- SAVVY SAVINGS GROUP: PREMIUM DESIGN SYSTEM 2.0 --- */

:root {
    --ssg-primary: #28C76F;
    --ssg-primary-dark: #1FB86E;
    --ssg-accent: #12372A;
    --ssg-light-green: #E8F5E9;
    --ssg-gradient: linear-gradient(135deg, #12372A 0%, #0F2E22 100%);
    --ssg-white: #FFFFFF;
    --ssg-off-white: #F9FAFB;
    --ssg-text-main: #1F2937;
    --ssg-text-light: #4B5563;
    --ssg-border: #E5E7EB;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--ssg-text-main); background-color: var(--ssg-off-white); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ssg-accent); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-py { padding: 5rem 0; }
.bg-white { background: var(--ssg-white); }
.bg-light { background: var(--ssg-light-green); }
.bg-dark { background: var(--ssg-accent); color: white; }
.text-center { text-align: center; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.site-header { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ssg-border); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--ssg-accent); text-transform: uppercase; }
.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a { font-weight: 500; color: var(--ssg-text-main); font-size: 0.95rem; position: relative; }
.main-nav a:not(.btn):hover::after { width: 100%; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--ssg-primary); transition: width 0.3s ease; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--ssg-accent); margin: 5px 0; }

.btn { display: inline-block; padding: 0.875rem 2rem; border-radius: var(--radius-full); font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary { background: var(--ssg-primary); color: white; box-shadow: 0 4px 14px rgba(40, 199, 111, 0.4); }
.btn-primary:hover { background: var(--ssg-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40, 199, 111, 0.6); }
.btn-secondary { background: var(--ssg-white); color: var(--ssg-accent); border: 2px solid var(--ssg-border); }
.btn-secondary:hover { border-color: var(--ssg-accent); background: var(--ssg-accent); color: white; }
.text-link { color: var(--ssg-primary); font-weight: 600; border-bottom: 2px solid transparent; }
.text-link:hover { border-bottom-color: var(--ssg-primary); }

.hero { position: relative; padding: 8rem 0 8rem; background: var(--ssg-gradient); color: white; overflow: hidden; display: flex; align-items: center; }
.hero-bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; filter: saturate(0.8); }
.hero-content { position: relative; z-index: 10; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); color: white; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.95); margin-bottom: 2.5rem; max-width: 600px; }
.hero-small { background: var(--ssg-accent); padding: 6rem 0 4rem; text-align: center; color: white; }

.card { background: white; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all 0.4s ease; border: 1px solid var(--ssg-border); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--ssg-primary); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; }
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.card p { color: var(--ssg-text-light); margin-bottom: 1.5rem; flex-grow: 1; }
.card-icon { font-size: 2.5rem; margin-bottom: 1.25rem; display: inline-block; background: var(--ssg-light-green); padding: 12px; border-radius: 12px; }
.service-preview { padding: 0; }
.service-preview img { width: 100%; height: 240px; object-fit: cover; transition: 0.5s; }
.service-preview:hover img { transform: scale(1.05); }
.service-preview .card-body { padding: 2rem; display: flex; flex-direction: column; height: 100%; }

.contact-form-wrapper { background: white; padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--ssg-accent); font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 0.875rem; border: 1px solid var(--ssg-border); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: 0.2s; background: var(--ssg-off-white); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ssg-primary); background: white; box-shadow: 0 0 0 4px rgba(40, 199, 111, 0.1); }

.site-footer { background: var(--ssg-accent); color: rgba(255, 255, 255, 0.7); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer-col a:hover { color: white; text-decoration: underline; }

/* AI CHAT WIDGET STYLES */
.ai-widget-toggle { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--ssg-primary); border-radius: 50%; box-shadow: 0 4px 14px rgba(40, 199, 111, 0.5); cursor: pointer; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.ai-widget-toggle:hover { transform: scale(1.1); }
.ai-widget-toggle svg { width: 30px; height: 30px; fill: white; }
.ai-chat-window { position: fixed; bottom: 100px; right: 30px; width: 350px; height: 450px; background: white; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); z-index: 9998; display: flex; flex-direction: column; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all 0.3s ease; overflow: hidden; border: 1px solid var(--ssg-border); }
.ai-chat-window.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.chat-header { background: var(--ssg-accent); color: white; padding: 1rem; display: flex; align-items: center; gap: 10px; }
.chat-header-avatar { width: 32px; height: 32px; background: var(--ssg-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; }
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; background: #f3f4f6; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 80%; padding: 0.75rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; }
.message.bot { align-self: flex-start; background: white; border: 1px solid #e5e7eb; border-bottom-left-radius: 2px; }
.message.user { align-self: flex-end; background: var(--ssg-primary); color: white; border-bottom-right-radius: 2px; }
.chat-input-area { padding: 1rem; background: white; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; }
.chat-input-area input { flex: 1; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.chat-input-area button { background: var(--ssg-accent); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .mobile-toggle { display: block; }
    .main-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: white; padding: 1rem; border-bottom: 1px solid var(--ssg-border); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .ai-chat-window { width: calc(100% - 40px); right: 20px; bottom: 90px; }
    .ai-widget-toggle { right: 20px; bottom: 20px; }
}
