/* =========================================
   1. GLOBAL FOUNDATION & TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

body { 
    font-family: 'Nunito Sans', sans-serif; 
    margin: 0; 
    padding: 0; 
    color: #4a4a4a; 
    line-height: 1.7; 
    background-color: #ffffff; 
}

h1, h2, h3, h4, h5 { 
    font-family: 'Playfair Display', serif; 
    color: #301432; 
    font-weight: 600; 
}

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
header { 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 4px 20px rgba(48, 20, 50, 0.05); 
}

.logo-img { max-height: 100px; width: auto; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.02); }

nav a { 
    color: #301432; 
    text-decoration: none; 
    margin-left: 25px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: color 0.3s ease; 
}
nav a:hover, nav a.active { color: #1a73e8; }

/* =========================================
   3. PAGE HEADERS & HERO SECTIONS
   ========================================= */
.hero, .page-header { 
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eef5 100%); 
    padding: 100px 5%; 
    text-align: center; 
    border-bottom: 1px solid rgba(0,0,0,0.03); 
}
.hero h2, .page-header h2 { 
    font-size: 3.2rem; 
    color: #301432; 
    margin-bottom: 20px; 
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.2; 
}
.hero p, .page-header p { 
    font-size: 1.25rem; 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    color: #555; 
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn, .submit-btn { 
    background-color: #1a73e8; 
    color: white; 
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-family: 'Nunito Sans', sans-serif; 
    font-weight: 700; 
    transition: all 0.3s ease; 
    display: inline-block; 
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2); 
    border: none; 
    cursor: pointer; 
}
.btn:hover, .submit-btn:hover { 
    background-color: #1557b0; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3); 
}
.btn-secondary { background-color: transparent; color: #1a73e8; border: 2px solid #1a73e8; margin-left: 15px; box-shadow: none; }
.btn-secondary:hover { background-color: #1a73e8; color: white; box-shadow: 0 6px 20px rgba(26, 115, 232, 0.2); }
.btn-white { background-color: #ffffff; color: #1a73e8; padding: 15px 35px; text-decoration: none; border-radius: 8px; font-size: 1.1rem; font-family: 'Nunito Sans', sans-serif; font-weight: 700; transition: all 0.3s ease; display: inline-block; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* =========================================
   5. LAYOUT UTILITIES & GRIDS
   ========================================= */
.bg-white { background-color: #ffffff; }
.bg-ice { background-color: #f0f4f8; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }

/* Floating Cards Shared Across Pages */
.card, .feature-box, .team-card { 
    background: #ffffff; 
    padding: 40px 30px; 
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(48, 20, 50, 0.06); 
    border: 1px solid rgba(0,0,0,0.02); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.bg-white .feature-box { background: #fcfbf9; } 
.card:hover, .feature-box:hover, .team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(48, 20, 50, 0.1); }
.card h4, .feature-box h4 { font-size: 1.4rem; color: #1a73e8; margin-bottom: 15px; font-family: 'Nunito Sans', sans-serif; font-weight: 700; margin-top: 0; }
.card p, .feature-box p { font-size: 1rem; color: #555; margin: 0; }

/* =========================================
   6. PAGE-SPECIFIC STRUCTURES
   ========================================= */

/* HOMEPAGE */
.difference { background-color: #ffffff; padding: 80px 5%; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 50px; }
.difference-text { flex: 1; }
.difference-text h3 { font-size: 2.4rem; margin-bottom: 20px; }
.difference-text p { font-size: 1.1rem; margin-bottom: 20px; }
.difference-stats { flex: 1; background-color: #301432; color: white; padding: 40px; border-radius: 12px; box-shadow: 0 15px 40px rgba(48, 20, 50, 0.15); }
.difference-stats h4 { font-size: 1.5rem; margin-top: 0; color: #9c27b0; font-family: 'Nunito Sans', sans-serif; font-weight: 700; }
.difference-stats ul { line-height: 2; font-size: 1.1rem; color: #ffffff; }
.services-preview { background-color: #f0f4f8; padding: 80px 5%; text-align: center; }
.services-preview h3 { font-size: 2.4rem; margin-bottom: 50px; }

/* SERVICES PAGE */
.service-section { padding: 80px 5%; border-bottom: 1px solid rgba(0,0,0,0.03); }
.section-wrapper { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h3 { font-size: 2.6rem; color: #301432; margin-bottom: 15px; }
.section-header p { font-size: 1.15rem; color: #555; max-width: 900px; margin: 0 auto; }

.contrast-banner { background-color: #301432; color: white; padding: 40px; border-radius: 12px; display: flex; align-items: center; gap: 30px; box-shadow: 0 15px 40px rgba(48, 20, 50, 0.15); }
.contrast-badge { background-color: #9c27b0; color: white; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-family: 'Nunito Sans', sans-serif; font-size: 1.1rem; white-space: nowrap; }
.contrast-text { font-size: 1.1rem; line-height: 1.7; margin: 0; color: #fcfbf9; }

/* ABOUT US PAGE */
.story-section { padding: 80px 5%; max-width: 1000px; margin: 0 auto; text-align: center; background-color: #ffffff; }
.story-section h3 { font-size: 2.6rem; color: #301432; margin-bottom: 20px; }
.story-section p { font-size: 1.15rem; color: #555; margin-bottom: 20px; text-align: left; }

.mission-section { padding: 80px 5%; text-align: center; background-color: #301432; color: #fcfbf9; }
.mission-section h3 { font-size: 2.6rem; color: #9c27b0; margin-bottom: 20px; }
.mission-section p { font-size: 1.2rem; max-width: 900px; margin: 0 auto; line-height: 1.8; color: #fcfbf9; }

.team-section { background-color: #f0f4f8; padding: 80px 5%; }
.team-header { text-align: center; margin-bottom: 50px; }
.team-header h3 { font-size: 2.6rem; color: #301432; margin-bottom: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.team-card { display: flex; flex-direction: column; text-align: center; }
.profile-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px auto; border: 4px solid #fcfbf9; box-shadow: 0 8px 25px rgba(48, 20, 50, 0.08); display: block; }
.team-card h4 { font-size: 1.6rem; color: #301432; margin: 0 0 5px 0; }
.team-card h5 { font-size: 1.1rem; color: #1a73e8; margin: 0 0 20px 0; font-family: 'Nunito Sans', sans-serif; font-weight: 700; }
.team-card p { color: #555; font-size: 1rem; text-align: left; flex-grow: 1; }
.personal-blurb { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #e1dce1; text-align: left; font-size: 0.95rem; color: #666; font-style: italic; }
.personal-blurb strong { color: #301432; font-style: normal; display: block; margin-bottom: 5px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* CONTACT PAGE */
.contact-container { display: flex; max-width: 1200px; margin: -50px auto 80px auto; background: #ffffff; border-radius: 12px; box-shadow: 0 15px 40px rgba(48, 20, 50, 0.08); overflow: hidden; position: relative; z-index: 10; border: 1px solid rgba(0,0,0,0.02); }
.contact-info { flex: 1; background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%); color: white; padding: 50px; }
.contact-info h3 { font-size: 2.2rem; margin-top: 0; margin-bottom: 20px; color: #ffffff; }
.contact-info p { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.8; color: #e6eef5; }
.info-block { margin-bottom: 20px; }
.info-block strong { display: block; font-size: 1.2rem; margin-bottom: 5px; color: #ffffff; font-family: 'Nunito Sans', sans-serif; }
.contact-form-wrapper { flex: 1.5; padding: 50px; }
.contact-form-wrapper h3 { font-size: 2.4rem; color: #301432; margin-top: 0; margin-bottom: 30px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 700; color: #301432; margin-bottom: 8px; font-size: 0.95rem; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; border: 1px solid #e1dce1; border-radius: 8px; font-size: 1rem; font-family: inherit; background-color: #fcfbf9; box-sizing: border-box; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #9c27b0; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

#success-message { display: none; background-color: #f0fdf4; color: #166534; padding: 20px; border-radius: 8px; border-left: 5px solid #22c55e; margin-bottom: 20px; font-weight: 600; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1); }

/* BOTTOM CTA SECTION */
.cta-section { background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%); color: white; text-align: center; padding: 80px 5%; margin-top: 0; }
.cta-section h3 { font-size: 2.6rem; margin-bottom: 20px; color: #ffffff; }
.cta-section p { font-size: 1.2rem; color: #e6eef5; margin-bottom: 30px; }

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .difference { flex-direction: column; gap: 30px; }
    .contact-container { flex-direction: column; margin-top: 0; border-radius: 0; }
    .form-row { flex-direction: column; gap: 0; }
    .contrast-banner { flex-direction: column; text-align: center; align-items: flex-start; }
    .contrast-badge { align-self: center; }
}