/* --- FYNBOS & PROTEA COLOR SCHEME --- */
:root {
   color-scheme: light; /* <--- ADD THIS LINE HERE */
    
    --primary-color: #5c6b54; /* Fynbos Green (Muted, earthy olive/sage) */
    --accent-color: #b56a73;  /* Protea Pink (Dusty, elegant rose/coral) */
    --bg-color: #fbf9f6;      /* Warm Stone (A soft, natural off-white) */
    --text-color: #3b312b;    /* Deep Bark (A soft, earthy dark brown instead of harsh black) */
    
    /* Fonts */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

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

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

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: normal;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* NAVIGATION TABS */
nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
}

.nav-links li { margin: 0 15px; }

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color); /* Changes active text to Protea Pink */
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
}

/* SECTIONS */
.tab-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block; /* Shows when active */
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px; /* Made the padding slightly bigger so the text breathes nicely */
    
    /* THE TRANSPARENCY: 255, 255, 255 is white. The 0.85 is the transparency (85%). Change to 0.7 for more see-through, or 0.9 for less! */
    background: rgba(255, 255, 255, 0.7); 
    
    /* FROSTED GLASS EFFECT: Slightly blurs the background right behind the box to keep text readable */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Needed for iPhones/Safari */
    
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Slightly softer shadow */
    position: relative; 
    z-index: 2;         
}

/* HERO SECTION */
.hero {
    /* NOTICE "top center/cover" - This forces the top of the photo to never be cut off! */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero4.jpeg') top center/cover;
    
    /* Makes the photo take up the full front page */
    min-height: calc(100vh - 60px); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    
    /* Keeps it neatly layered */
    position: relative;
    z-index: 2;
}

/* HERO TEXT WITH SUBTLE SHADOW */
.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 5px;
    /* Soft, elegant shadow: x-offset, y-offset, blur-radius, color */
    text-shadow: 0px 3px 12px rgba(0, 0, 0, 0.6); 
}

.hero .subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: white;
    /* Slightly tighter shadow for the smaller text so it stays crisp */
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8); 
}

/* BUTTONS & FORMS */
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--heading-font);
    transition: background 0.3s;
}

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

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

/* FORM INPUTS UNIFORM STYLING */
input[type="text"], input[type="email"], select, textarea, input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    
    /* These 3 lines force the text to be identical across all boxes */
    font-family: var(--body-font);
    font-size: 1rem; 
    color: var(--text-color);
    
    box-sizing: border-box;
}

/* Forces the grey placeholder text to match perfectly too */
::placeholder {
    color: #888;
    font-family: var(--body-font);
    font-size: 0.95rem;
}

.deal-box {
    background-color: #f4ecee; /* Soft blush pink background */
    border-left: 5px solid var(--accent-color); /* Protea pink border */
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { flex-direction: column; align-items: center; }
    .nav-links li { margin: 5px 0; }
}

/* MAP CONTAINER */
.map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color); 
}

.map-container iframe {
    display: block;  
    width: 100%;
    margin: 0;
    padding: 0;
}
/* PASSWORD SCREEN */
#password-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.password-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--accent-color);
    max-width: 400px;
    width: 90%;
}

.password-box input {
    display: block;       /* Forces the input onto its own line */
    width: 100%;          /* Makes it stretch across the box */
    padding: 12px;
    margin: 20px 0 30px 0; /* 20px top margin, 30px bottom margin (This is the space above the button!) */
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures the padding doesn't push it outside the box */
}

.password-box .btn {
    display: block;
    width: 100%;          /* Makes the enter button full-width to match the input box */
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* --- INNER PAGE BACKGROUND --- */
body.inner-page-bg {
    /* Put your background image link here! (I added a soft, muted mountain/nature texture as a placeholder) */
    background-image: url('images/background3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a beautiful parallax gliding effect */
}

/* FORM SUBMIT BUTTON SPACING */
#rsvp-form .btn {
    margin-top: 30px; /* Pushes the button down away from the song request */
    width: 100%;      /* Makes the button span the full width of the form */
    font-size: 1.1rem;
    padding: 15px;    /* Makes it a nice, tall, clickable button */
}
