/* 
 * Syl-Vin Website Styles
 * Theme: Wine Red & Gold | Premium & Modern
 */

:root {
    /* Colors */
    --color-primary: #800020;
    /* Burgundy / Deep Wine */
    --color-primary-dark: #580016;
    --color-accent: #D4AF37;
    /* Gold */
    --color-bg-light: #F9F5EA;
    /* Warm Beige / Gold Tint */
    --color-bg-white: #FFFFFF;
    --color-text-dark: #2C2C2C;
    --color-text-dark: #2C2C2C;
    --color-text-light: #4a4a4a;
    /* Darkened for better readability */
    --color-text-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-accent) !important;
}

.text-white {
    color: var(--color-text-white) !important;
}

.mt-4 {
    margin-top: 1rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.btn-outline:hover {
    background-color: var(--color-text-white);
    color: var(--color-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    max-height: 75px;
    /* Adjust based on header height 80px */
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-dark);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1510812431401-41d2bd2722f3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-text-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(128, 0, 32, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80') center/cover;
    box-shadow: var(--shadow-lg);
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
}

.about-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

.features-list {
    margin-top: var(--spacing-md);
}

.features-list li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.features-list i {
    color: var(--color-accent);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(128, 0, 32, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.service-details {
    text-align: left;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: var(--spacing-sm);
}

.service-details li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.service-details li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-bg-white);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    background: var(--color-bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(128, 0, 32, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contact-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

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

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.contact-form {
    padding: var(--spacing-md);
    background: #f9f9f9;
    border-radius: var(--radius-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Footer */
.footer {
    background-color: var(--color-text-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 var(--spacing-md);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 100px 40px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Animation Utilities added to style.css */

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger animations for service cards if possible, or just let them fade as they enter viewport */
.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* Diploma Cards */
.diploma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.diploma-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diploma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.diploma-icon {
    font-size: 2rem;
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.diploma-content {
    flex: 1;
}

.diploma-year {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: 600;
}

.diploma-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 2px;
    font-weight: 700;
}

.diploma-desc {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.3;
    margin: 0;
}

/* Added Utilities */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: var(--radius-md);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.mr-2 {
    margin-right: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.font-italic {
    font-style: italic;
}

.justify-content-center {
    justify-content: center;
}

/* Google Reviews Placeholder */
.google-reviews-placeholder {
    padding: var(--spacing-md);
    border: 2px dashed #ddd;
    border-radius: var(--radius-md);
    background-color: white;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =========================================
   NEW PREMIUM STYLES (Concept & Services)
   ========================================= */

/* Concept Section Styling */
.concept-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.concept-step {
    background: var(--color-bg-white);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: visible;
    /* Allow number to pop out if needed */
}

.concept-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-gold, #D4AF37);
    /* Fallback if var not set, though it is */
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.concept-step h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--color-primary);
}

/* Legal Pages */
.page-main {
    padding-top: 80px;
}

.legal-page {
    padding: var(--spacing-xl) 0;
}

.legal-content {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.legal-heading {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.legal-heading h1 {
    font-size: 2.5rem;
}

.legal-updated {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.legal-section {
    margin-bottom: var(--spacing-md);
}

.legal-section h2 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
}

.legal-section p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.legal-section li {
    margin-bottom: 0.4rem;
}

.legal-section a {
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .legal-content {
        padding: var(--spacing-md);
    }
}

.concept-step p strong {
    color: var(--color-primary);
    /* Changed to primary for better contrast */
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.concept-step .list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center aligned items */
}

/* Services Card Premium Update */
/* Services Card Premium Update */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.service-card {
    border-top: 4px solid var(--color-accent);
    /* Gold top border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 350px;
    /* Limit width */
    flex: 1 1 300px;
    height: auto;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: rgba(128, 0, 32, 0.1);
    /* Faint primary color */
}

.service-intro {
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-card .service-icon {
    margin-bottom: 1.5rem;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-primary);
    width: 70px;
    height: 70px;
}

/* Highlight Card Style REMOVED for Uniformity, styles reset to default service card */
.highlight-card .service-icon {
    /* Reset to default */
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
}

/* Utilities */
.alert-container-spacing {
    margin-top: 5rem !important;
    /* Force more space */
}


/* Utilities */
.border-gold {
    border: 1px solid var(--color-accent);
}

.alert-white {
    background-color: white;
}

/* Footer Link Google Reviews */
a[href*="google"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   REVIEWS SECTION STYLING
   ========================================= */

/* =========================================
   REVIEWS SECTION STYLING (UPDATED)
   ========================================= */

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.review-card {
    background: var(--color-bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    /* Ensure logical card width */
    height: auto;
    /* Let content dictate, or maintain equal flex height */
    flex: 1 1 300px;
    /* Flex align */
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: var(--spacing-sm);
}

.review-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.review-meta {
    flex: 1;
    text-align: left;
}

.review-author {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 2px;
    font-weight: 600;
    font-family: var(--font-body);
}

.review-stars {
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.review-content {
    flex-grow: 1;
    /* Pushes content to fill space if needed */
}

.review-content p {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
}

.review-content p::before {
    content: '“';
    font-family: serif;
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

/* =========================================
   MOBILE & RESPONSIVE REFINEMENTS
   ========================================= */

@media (max-width: 900px) {
    /* ... existing header overrides ... */

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        /* Normalized gap */
    }

    .section {
        padding: var(--spacing-lg) 0;
        /* Reduced padding on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Checked matches existing */
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
        /* Ensure safe margins */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .concept-step {
        padding: var(--spacing-md);
        margin-top: 10px;
        /* Compact padding */
    }

    /* Fix service card mobile spacing */
    .services-grid {
        /* Already flex in main rule, just ensure full width */
        width: 100%;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* Form Message Styles */
.form-message {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.2rem;
}

/* Disabled button state */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
