:root {
    /* Warmer parchment matched to sunset sky */
    --primary-orange: #c05c2b;
    --bg-parchment: #f7e9d7; 
    --text-dark: #3e2723;
}

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

/* 1. SYNCED TEXTURE 
   Grouping these ensures the divider and body use the exact same color and image */
.paper-texture, 
.torn-divider {
    background-color: rgba(247, 233, 215, 0.9) !important;
    background-image: url('images/parchment.png') !important; 
    background-repeat: repeat !important;
    background-size: 1500px auto !important; 
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

body.paper-texture {
    background-attachment: fixed;
}

/* handles the torn shape */
.torn-divider {
    height: 120px;
    width: 100%;
    margin-top: -25px; 
    position: relative;
    z-index: 90;
/* 0.0 is invisible, 1.0 is solid. Try 0.8 or 0.9 */
    opacity: 0.95;
    /* 2. Add the mask using your new PNG */
    -webkit-mask-image: url('images/torn-edge.png');
    mask-image: url('images/torn-edge.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* --- Header --- */
header {
    display: flex;
    align-items: center;
    padding: 20px 5%;
    background: rgba(242, 227, 213, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.4rem;
}

.logo-container img { 
    height: 60px; 
    width: auto; 
    mix-blend-mode: multiply; 
}

/* --- Hero --- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), 
                url('images/village-life.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 10% 0 10%;
    color: white;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    font-style: normal;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* --- Typography Helpers --- */
.script-title {
    font-family: 'Great Vibes', cursive;
    color: var(--primary-orange);
    font-size: 4rem;
    text-align: left;
    margin-bottom: 5px;
    margin-top: 0;
}

/* --- Layout Sections --- */
section { padding: 20px 10%; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 0;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card { text-align: left; }

.service-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}

/* --- Contact --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: rgba(255,255,255,0.3);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-top: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 15px; }

.contact-form input 
.contact-form textarea {
    padding: 18px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    resize: vertical; 
    min-height: 120px;
}
/* 2. Styles ONLY for the message box */
.contact-form textarea {
    resize: vertical; 
    min-height: 120px;
}

.btn-submit {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- Mobile Styling --- */
@media (max-width: 900px) {
    .about-grid, .services-grid, .contact-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .script-title { font-size: 3rem; text-align: center; }
}
