* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background: #fafafa url("../assets/bg-pattern.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: "Lato", sans-serif;
    color: #111111;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- NAVIGATION HEADER --- */
.page-header {
    
    background: transparent !important;
    
    /* Live optical blur that fades/diffuses form elements scrolling beneath */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Ensures perfect compatibility on Apple Safari browsers */
    
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none !important; /* Keeps your clean, borderless layout choice */
}

.logo-small img { 
    height: 120px; 
    width: auto;
}

.top-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 35px; 
    margin: 0;
    padding: 0;
    align-items: center;
}

.top-nav ul li a { 
    text-decoration: none; 
    color: #111111; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.85rem; 
    font-weight: 400;
}

.top-nav ul li a:hover { 
    color: #d4af37; 
}

.top-nav ul li a.active {
    color: #d4af37 !important;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 4px;
    font-weight: 700;
}

/* --- HERO LANDING SECTION --- */
.splash-container {
    height: calc(100vh - 115px);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.sub-title {
    font-size: 1.2rem;
    letter-spacing: 6px;
    color: #d4af37;
    margin-bottom: 15px;
    font-weight: 400;
}

.main-title {
    font-family: "Playfair Display", serif;
    font-size: 3.8rem;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 25px;
    font-weight: 700;
}

.accent { 
    font-style: italic; 
    color: #d4af37; 
    font-family: "Playfair Display", serif;
}

.description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #444444;
}

/* --- ORDER FORM SECTION --- */
.order-section { 
    padding: 60px 5% 80px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.form-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    margin-top: 30px;
}

/* Traditional Layout engine fallback replacing CSS Grid formulas */
.form-grid { 
    display: block;
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 20px;
}

.form-field {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 15px;
    width: 33.333%;
}

.form-field.span-2 { 
    width: 66.666%; 
}

.form-field.full-width { 
    width: 100%; 
}

label { 
    display: block; 
    color: #111111; 
    margin-bottom: 8px; 
    font-size: 0.75rem; 
    letter-spacing: 1.5px; 
    text-transform: uppercase;
    font-weight: 700;
}

input, select, textarea { 
    width: 100%; 
    padding: 14px; 
    background: #ffffff; 
    border: 1px solid #cccccc; 
    color: #111111; 
    font-family: "Lato", sans-serif; 
    border-radius: 0;
    font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus { 
    border-color: #d4af37; 
    outline: none; 
}

.section-break { 
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35); 
    margin: 30px 12px 25px; 
    padding-bottom: 8px; 
    color: #d4af37; 
    font-size: 1.05rem; 
    letter-spacing: 3px; 
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

/* --- BUTTONS --- */
.btn-gold {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid #d4af37;
    background: transparent;
    color: #d4af37;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #d4af37;
    color: #ffffff !important;
}

.btn-submit-block {
    width: 100%;
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    padding: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit-block:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #ffffff;
}

.checkbox-group { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    margin-bottom: 15px; 
    color: #444444; 
    font-size: 0.88rem; 
    line-height: 1.5; 
}
.checkbox-group input { 
    width: auto; 
    margin-top: 4px; 
}

.confirmation-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d4af37; 
    padding: 60px 40px;
    text-align: center; 
    margin: 40px auto; 
    max-width: 700px;
}
.check-icon { font-size: 4rem; color: #d4af37; margin-bottom: 20px; }
.confirmation-box h3 { font-family: "Playfair Display", serif; font-size: 2.2rem; color: #111111; margin-bottom: 15px; }

.corner-accent {
    position: absolute;
    width: 80px; height: 80px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 1;
}
.top-right { top: 40px; right: 40px; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: 40px; left: 40px; border-right: 0; border-top: 0; }


/* --- GALLERY PAGE SECTION --- */
.gallery-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-intro h1 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    color: #111111;
    margin-bottom: 10px;
}

.gallery-intro p {
    color: #d4af37;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Responsive Structural Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Luxurious Cake Portfolio Card */
.cake-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.cake-image-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #eaeaea;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.cake-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cake-card:hover .cake-image-wrapper img {
    transform: scale(1.04);
}

/* Details Panel Styling */
.cake-title {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: #111111;
    margin-bottom: 5px;
    font-weight: 700;
}

.cake-occasion {
    font-size: 0.75rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cake-details-box {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 12px;
    margin-top: auto;
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777777;
    font-weight: 700;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.88rem;
    color: #333333;
    margin-bottom: 10px;
}

/* Pagination Control Layout */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.page-indicator {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #444444;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-intro h1 {
        font-size: 2.2rem;
    }
}

/* --- CONTACT PAGE SECTION --- */
.contact-container {
    max-width: 800px;
    margin: 80px auto 100px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.contact-card p.subtitle {
    color: #d4af37;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-card h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    color: #111111;
    margin-bottom: 25px;
}

.contact-card .divider {
    width: 60px;
    height: 1px;
    background: #d4af37;
    margin: 0 auto 30px;
}

.contact-card p.message {
    font-size: 1.15rem;
    color: #444444;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 30px;
}

.contact-email-link {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    color: #111111;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-email-link:hover {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

/* --- ABOUT PAGE SECTION --- */
.about-container {
    max-width: 1050px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Left Content Area */
.about-content {
    flex: 1;
}

.about-content p.subtitle {
    color: #d4af37;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.about-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    color: #111111;
    margin-bottom: 25px;
}

.about-text {
    font-size: 1.1rem;
    color: #444444;
    line-height: 1.8;
}

/* Right Side Portrait Area */
.about-image-wrapper {
    flex: 0 0 350px; /* Locks the picture width frame exactly */
    height: 450px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures your photo crops beautifully without squishing */
}
@media (max-width: 768px) { 
    .page-header { padding: 20px; flex-direction: column; gap: 20px; }
    .top-nav ul { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .form-field, .form-field.span-2, .form-field.full-width { width: 100%; }
    .main-title { font-size: 2.4rem; }
    .splash-container { height: auto; padding: 80px 0; }
	.gallery-grid { grid-template-columns: 1fr; }
    .gallery-intro h1 { font-size: 2.2rem; }
	.contact-card {
        padding: 40px 20px;
    }
    .contact-card h1 {
        font-size: 2rem;
    }
    .contact-email-link {
        font-size: 1.25rem;
    }
	.about-card {
        flex-direction: column-reverse; /* Pushes the picture above text on mobile frames */
        padding: 40px 25px;
        gap: 30px;
    }
    .about-image-wrapper {
        flex: none;
        width: 100%;
        max-width: 350px;
        height: 380px;
    }
    .about-content h1 {
        font-size: 2.2rem;
    }
}
