/* --- Sticky Footer Fix --- */
html, body {
    height: 100%; /* Required for the percentage height to work */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--warm-bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Stacks header, main, and footer vertically */
}

main {
    flex: 1 0 auto; /* This tells 'main' to grow and fill all empty space */
}

footer {
    flex-shrink: 0; /* Prevents the footer from squishing */
    background: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px; /* Space above footer when content IS long */
}

:root {
    --primary: #9B72CF; 
    --accent: #FF8E72;  
    --warm-bg: #FFF9F2;
    --white: #FFFEFC;
    --footer-bg: #3D3530;
    --text: #4A3F35;
    --text-light: #7D7065;
    --shadow: 0 10px 30px rgba(74, 63, 53, 0.08);
    --border-radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--warm-bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Quicksand', sans-serif; font-weight: 700; }

/* Increased default padding to 20px so it never touches edges */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-padding { padding: 60px 0; }
.text-center { text-align: center; }

/* --- Navigation --- */
header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link { display: block; height: 100%; }
.logo { height: 100%; width: auto; display: block; }

nav { display: flex; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.cta-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
}

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

/* --- Image Quadrant --- */
.img-quad-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: #f2e9e1;
    aspect-ratio: 3 / 4; 
}

.quad-img {
    position: absolute;
    width: 200%;  
    height: 200%;
    object-fit: cover;
}

.pos-stroller { top: 0; left: -100%; }
.pos-dog { top: -100%; left: 0; }
.pos-cupcakes { top: -100%; left: -100%; }

/* --- Layouts --- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.hero-content h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; color: var(--primary); }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; color: var(--text-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn.primary { background: var(--primary); color: white; }
.btn.secondary { background: var(--accent); color: white; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.trust-strip { background: var(--primary); color: white; padding: 25px 0; }
.trust-flex { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.trust-item { font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* --- Rates --- */
.rates-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-top: 30px; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--primary); color: white; padding: 15px; text-align: left; }
td { padding: 15px; border-bottom: 1px solid #f9f2eb; }
.price-tag { color: var(--primary); font-weight: 700; text-align: right; }

/* --- Form --- */
.form-box { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    max-width: 650px; 
    margin: 0 auto; 
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
input, textarea, select { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #f9f2eb; 
    border-radius: 12px; 
    font-family: inherit; 
    font-size: 1rem; 
    color: var(--text);
    background-color: var(--white);
}

.btn.full { width: 100%; margin-top: 10px; }

/* --- Footer --- */
footer { background: var(--footer-bg); color: white; padding: 50px 0 20px; margin-top: 60px; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-logo { height: 60px; width: auto; object-fit: contain; } 
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; opacity: 0.6; }

/* --- Mobile Specific Fixes --- */
@media (max-width: 900px) {
    .hero, .grid-2 { grid-template-columns: 1fr; text-align: center; padding: 20px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .mobile-toggle { display: block; }
    nav { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--white); flex-direction: column; padding: 20px; border-top: 1px solid #f9f2eb;
    }
    nav.open { display: flex; }
    nav a { margin: 10px 0; margin-left: 0; }
}

@media (max-width: 600px) {
    /* Ensure the container has extra padding on small phones */
    .container { padding: 0 25px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-box { padding: 20px; } /* Slightly smaller inner padding for form on mobile */
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn { width: 100%; }
}