/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
    --primary: #632C7C;     /* Deep Royal Purple */
    --accent: #F7C143;      /* Elegant Gold */
    --bg: #FDFBFF;          /* Soft Off-White */
    --text: #333333;        /* Dark Grey for readability */
    --text-light: #666666;  
    --white: #FFFFFF;
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* =========================================
   GLOBAL COMPONENTS
   ========================================= */
/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(253, 251, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(99, 44, 124, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
}

.btn-accent:hover {
    background-color: transparent;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

/* Abstract Image Placeholders */
.img-placeholder {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #461e58 50%, var(--accent) 100%);
    box-shadow: 0 20px 40px rgba(99, 44, 124, 0.15);
}

.img-placeholder::before {
    content: '';
    display: block;
    padding-top: 120%; /* Portrait aspect ratio */
}

.img-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Blends image with gradient slightly */
    transition: var(--transition);
}

.img-placeholder:hover img {
    opacity: 1;
    transform: scale(1.03);
}

/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */
/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 90%;
}

/* Pillars Grid */
.pillar-card {
    background: var(--white);
    border: 1px solid rgba(247, 193, 67, 0.3);
    border-bottom: 4px solid var(--accent);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 44, 124, 0.05);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 44, 124, 0.1);
}

.pillar-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

/* Testimonial Slider */
.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

.testimonial-slider::-webkit-scrollbar { height: 8px; }
.testimonial-slider::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.testimonial-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.testimonial-card p { font-style: italic; margin-bottom: 1.5rem; color: var(--text-light); }
.testimonial-card h4 { font-family: var(--font-body); font-weight: 600; color: var(--primary); }

/* About Page */
.about-quote blockquote {
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1.4;
    border-left: 4px solid var(--accent);
    padding-left: 2rem;
    margin-top: 2rem;
}

/* Services Page */
.service-list { display: grid; gap: 4rem; }
.service-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(99, 44, 124, 0.05);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

/* Contact Page */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
}

.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    background: linear-gradient(to bottom right, var(--primary), #30143d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-align: center;
    padding: 2rem;
    font-family: var(--font-head);
    font-size: 1.5rem;
}

/* =========================================
   FOOTER & WHATSAPP
   ========================================= */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 0;
    margin-top: 5rem;
}

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

.footer h3, .footer h4 { color: var(--accent); margin-bottom: 1.5rem; }
.footer p, .footer a { color: #e0e0e0; font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer a:hover { color: var(--accent); }

.footer-bottom {
    background-color: #4b215e;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-container { justify-content: center; flex-direction: column; }
    .hero { min-height: auto; padding-top: 2rem; text-align: center; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { max-width: 100%; margin: 0 auto 2rem; }
    .service-item { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
}