/*
================================================================
   Sacred Shine Memorial Care - Style System
   Dignified, clean, highly readable, and simplified stylesheet
   UPDATED: Reduced font sizes and card dimensions for a sleeker look
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

:root {
    /* Brand Colors matching the flyer */
    --color-primary: #0050b3;       /* Bright Royal Blue */
    --color-primary-light: #0066d6; /* Lighter Blue for hovers */
    --color-primary-tint: #f0f5fc;  /* Soft Blue tint */
    --color-secondary: #5a6b7c;     /* Slate Grey */
    --color-accent: #a08155;        /* Warm Gold/Bronze */
    --color-accent-light: #fbfbfa;  
    
    /* Text & Neutral Colors (Optimized for readability) */
    --text-color: #1a222d;          /* Deep Charcoal */
    --text-muted: #4e5d6c;          /* Mid-tone grey */
    --text-light: #ffffff;          
    --bg-primary: #ffffff;          
    --bg-secondary: #f4f7fa;        
    --bg-warm: #fcfbfa;             
    --bg-dark: #003680;             /* Navy Blue */
    
    /* Borders & Shadows */
    --border-color: #c9d6e4;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px rgba(0, 80, 179, 0.05);
    --shadow-lg: 0 12px 32px rgba(0, 80, 179, 0.08);
    
    /* Typography Rules */
    --font-title: 'Cinzel', serif;  
    --font-serif: 'Lora', serif;    
    --font-body: 'Inter', sans-serif; 
    --font-script: 'Dancing Script', cursive; 
    
    /* Spacing & Transitions (Downsized for simpler spacing) */
    --space-xs: 0.25rem;
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --transition-smooth: all 0.25s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 12px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Reduced base size from 18px for better desktop sizing */
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.5;
    letter-spacing: -0.011em;
}

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

p {
    font-family: var(--font-body);
    color: var(--text-muted);
}

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

a:hover {
    color: var(--color-primary-light);
}

/* Typography Helpers */
.serif-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-accent);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Reduced padding from 0.75rem */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 48px; /* Reduced from 64px */
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem; /* Reduced from 1.3rem */
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--color-primary);
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: var(--font-serif);
    font-size: 0.75rem; /* Reduced from 0.85rem */
    color: var(--color-secondary);
    letter-spacing: 0.2px;
}

nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem; /* Slightly tighter gap */
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem; /* Reduced from 1rem */
    color: var(--text-color);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Premium Buttons (Downsized for cleaner layout) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px; /* Reduced from 12px 24px */
    font-family: var(--font-body);
    font-size: 0.9rem; /* Reduced from 1rem */
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    box-shadow: 0 2px 6px rgba(0, 80, 179, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 80, 179, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-tint);
    transform: translateY(-1px);
}

.btn-phone {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-phone:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--color-primary);
    margin: 4px 0;
    transition: var(--transition-smooth);
}

/* Sections General */
section {
    padding: var(--space-lg) 0; /* Binds spacing to 2.5rem */
}

.section-alt {
    background-color: var(--bg-secondary);
}

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

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-md) auto; /* Reduced margin */
}

.section-header h2 {
    font-size: 1.75rem; /* Reduced from 2.2rem */
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 8px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.section-header p {
    font-size: 1rem;
    font-family: var(--font-serif);
    margin-top: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f8fc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0; /* 4rem padding */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-md);
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero-logo-small {
    max-width: 90px; /* Reduced from 120px */
    height: auto;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-family: var(--font-body); 
    font-weight: 800;
    font-size: 2.3rem; /* Reduced from 3.2rem to fit cleanly */
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.hero-slogan-script {
    font-family: var(--font-script); 
    font-size: 2.2rem; /* Reduced from 3rem */
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1.25rem;
    display: block;
}

/* Flyer Hero Offerings Row */
.flyer-offerings-row {
    display: flex;
    gap: 20px;
    margin-bottom: var(--space-md);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.offering-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.8rem; /* Smaller lettering */
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--text-color);
}

.offering-item svg {
    color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Frame representing Flyer Graphics (Scaled down) */
.hero-flyer-frame {
    width: 100%;
    max-width: 320px; /* Reduced from 440px */
    aspect-ratio: 4 / 5;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 6px solid white;
    background: radial-gradient(circle, #eceef1 0%, #d5dadf 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flyer-frame-banner {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 8px;
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.flyer-frame-illustration {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flyer-frame-illustration svg {
    width: 80%;
    height: 80%;
}

.flyer-frame-overlay-txt {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background-color: rgba(255,255,255,0.92);
    border-left: 3px solid var(--color-primary);
    padding: 8px 12px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.flyer-frame-overlay-txt h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1px;
}

.flyer-frame-overlay-txt p {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Wave separators */
.wave-container {
    position: relative;
    width: 100%;
    height: 40px; /* Reduced from 60px */
    margin-top: -40px;
    z-index: 10;
    overflow: hidden;
}

.wave-svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* Guarantees grid & cards (Downsized) */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Smaller minimum size */
    gap: var(--space-sm);
}

.guarantee-card {
    background-color: white;
    padding: 1.25rem; /* Reduced from 2rem */
    border-radius: var(--border-radius-md);
    border-top: 3px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.guarantee-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.guarantee-icon svg {
    width: 20px;
    height: 20px;
}

.guarantee-card h3 {
    font-size: 1.1rem; /* Smaller header */
    margin-bottom: 0.5rem;
}

.guarantee-card p {
    font-size: 0.88rem; /* Smaller text */
    line-height: 1.45;
}

/* Services grid & cards (Downsized) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.service-illustration {
    height: 150px; /* Reduced from 200px */
    background: linear-gradient(135deg, var(--color-primary-tint) 0%, rgba(0, 80, 179, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.service-illustration svg {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
    opacity: 0.85;
}

.service-body {
    padding: 1.25rem; /* Reduced from 2rem */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-body h3 {
    font-size: 1.15rem; /* Reduced from 1.35rem */
    margin-bottom: 0.5rem;
}

.service-body p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-features-list {
    list-style: none;
    margin-bottom: 1rem;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.service-features-list li svg {
    color: #2ecc71;
    width: 14px;
    height: 14px;
}

/* Pricing Table (Downsized) */
.pricing-table-container {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.pricing-table th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    padding: 10px 14px; /* Reduced from 14px 18px */
}

.pricing-table td {
    padding: 9px 14px; /* Tight padding */
    border-bottom: 1px solid #e1ebf5;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Flyer Promotion Banner */
.discount-banner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 15px 25px; /* Reduced padding */
    border-radius: 40px;
    margin-bottom: var(--space-md);
}

.badge-scalloped {
    width: 56px; /* Reduced from 75px */
    height: 56px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 1.1;
    border: 1.5px dashed rgba(255, 255, 255, 0.6);
    outline: 3px solid var(--color-primary);
    flex-shrink: 0;
}

.badge-scalloped span {
    font-size: 0.85rem;
}

.discount-text {
    font-size: 0.9rem; /* Reduced from 1.05rem */
}

/* Before / After Showcase Section */
.showcase-slider-container {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    max-width: 720px; /* Reduced from 900px */
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.ba-label {
    position: absolute;
    bottom: 15px;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.ba-handle-circle {
    width: 36px; /* Reduced from 44px */
    height: 36px;
    border: 2px solid white;
}

.ba-handle-circle svg {
    width: 16px;
    height: 16px;
}

.ba-illustration-stone {
    width: 180px; /* Reduced from 220px */
    height: 230px; /* Reduced from 280px */
    border-radius: 15px 15px 0 0;
    border-width: 6px;
}

.stone-cross {
    height: 50px;
    top: 20px;
}

.stone-cross::after {
    width: 30px;
    top: 14px;
    left: -13px;
}

.stone-inscription {
    margin-top: 70px;
    gap: 8px;
}

.stone-name {
    font-size: 1.15rem;
}

.stone-date {
    font-size: 0.8rem;
}

/* How It Works Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-sm);
}

.step-card {
    padding: 1rem;
}

.step-number {
    width: 44px; /* Reduced from 60px */
    height: 44px;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
    border-width: 2px;
}

.step-card h3 {
    font-size: 1.1rem;
}

.step-card p {
    font-size: 0.88rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-md);
    align-items: center;
}

.about-content h2 {
    margin-bottom: 0.75rem;
}

.about-content p {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.about-badge-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1rem;
}

.about-badge-item {
    font-size: 0.85rem;
}

.about-card {
    padding: 20px; /* Reduced from 30px */
}

.owner-image-container {
    width: 100px; /* Reduced from 140px */
    height: 100px;
}

.owner-image-container svg {
    width: 50px;
    height: 50px;
}

.owner-name {
    font-size: 1.05rem;
}

.owner-role {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.owner-quote {
    font-size: 0.88rem;
}

/* Contact and Booking Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-md);
}

.contact-info h2 {
    margin-bottom: 0.75rem;
}

.flyer-contact-banner-row {
    padding: 10px 20px;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.flyer-contact-banner-item {
    font-size: 0.85rem;
}

.contact-info-list {
    margin-top: 1.25rem;
}

.contact-info-item {
    margin-bottom: 1rem;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
}

.contact-info-icon svg {
    width: 16px;
    height: 16px;
}

.contact-info-text h4 {
    font-size: 0.8rem;
}

.contact-info-text p, 
.contact-info-text a {
    font-size: 0.95rem;
}

/* Form Styles */
.booking-card {
    padding: var(--space-md);
    border-radius: var(--border-radius-lg);
}

.form-title {
    font-size: 1.25rem;
}

.form-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-size: 0.85rem;
}

.form-control {
    padding: 10px 14px;
    font-size: 0.9rem;
}

textarea.form-control {
    min-height: 100px;
}

/* Footer (Updated to Match Flyer) */
footer {
    padding: var(--space-md) 0;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -24px;
    height: 24px;
}

.footer-wave-svg {
    height: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-brand h3 {
    font-size: 1.15rem;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item {
    font-size: 0.85rem;
}

.footer-dove-graphic svg {
    width: 36px;
    height: 36px;
}

.footer-dove-slogan {
    font-size: 0.78rem;
}

.footer-bottom {
    padding-top: var(--space-sm);
    gap: 20px;
    font-size: 0.8rem;
}

/* Multi-Page Info Section Cards (Gateway Previews) */
.gateway-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
}

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

.gateway-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gateway-card p {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

/* ================================================================
   Responsive Media Queries
================================================================ */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .flyer-offerings-row {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .contact-info {
        max-width: 100%;
    }
    .discount-banner {
        border-radius: var(--border-radius-lg);
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 0;
    }
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: var(--space-sm) 5%;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        gap: var(--space-sm);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-cta {
        display: none; 
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ba-after .ba-graphic-content {
        width: 500px;
    }
    .flyer-offerings-row {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    .flyer-contact-banner-row {
        flex-direction: column;
        border-radius: var(--border-radius-lg);
        padding: 10px;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-slogan-script {
        font-size: 1.7rem;
    }
}
