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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c2c2c;
    background: #faf8f5;
}

/* PASSWORD GATE */
#password-gate {
    position: fixed;
    inset: 0;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#password-gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.gate-box {
    background: rgba(255,255,255,0.95);
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.gate-box h1 {
    font-size: 2rem;
    color: #2d4a2d;
    margin-bottom: 4px;
}

.gate-box p {
    color: #888;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.gate-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.gate-box input:focus { border-color: #2d4a2d; }

.gate-box button {
    width: 100%;
    padding: 12px;
    background: #2d4a2d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gate-box button:hover { background: #3d6b3d; }

/* NOTIFICATION BANNER */
.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #2d4a2d;
    color: white;
    font-size: 0.9rem;
    padding: 10px 48px 10px 20px;
    text-align: center;
    letter-spacing: 0.01em;
}

.notif-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.notif-close:hover { opacity: 1; }

/* HOME SCREEN — full viewport, ranch photo background */
.home-screen {
    height: 100vh;
    width: 100%;
    position: relative;
}

.home-bg {
    height: 100%;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}

/* Dark overlay over ranch photo */
.home-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
    pointer-events: none;
}

/* Everything inside home-bg needs to sit above the overlay */
.home-bg > * {
    position: relative;
    z-index: 1;
}

/* CENTER TITLE */
.home-title {
    padding: 0 0 28px 0;
    text-align: center;
    margin-top: 80px;
}

.home-title h1 {
    font-size: 3.4rem;
    color: white;
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
    letter-spacing: 3px;
    font-weight: 700;
}

/* 1x4 TILE ROW */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 700px;
}

/* TILES */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}

.tile:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.04);
}

.tile-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.tile-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    letter-spacing: 0.03em;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.back-btn {
    background: none;
    border: 2px solid #2d4a2d;
    color: #2d4a2d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #2d4a2d;
    color: white;
}

.stars {
    font-size: 1.5rem;
    cursor: pointer;
    letter-spacing: 4px;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
    text-align: center;
    padding: 40px;
}

.hero-overlay h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    margin-top: 12px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: rgba(0,0,0,0.4);
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    transition: background 0.2s;
}

nav a:hover { background: rgba(255,255,255,0.3); }

/* SECTIONS */
.section {
    padding: 64px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section.alt {
    max-width: 100%;
    background: #f0ebe3;
    padding: 64px 24px;
}

.section.alt > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 2rem;
    color: #2d4a2d;
    margin-bottom: 8px;
}

.subtitle {
    color: #888;
    margin-bottom: 32px;
    font-size: 1rem;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #2c2c2c;
}

/* FORMS */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form input, .form textarea, .form select {
    padding: 10px 14px;
    border: 2px solid #e8e3dc;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #faf8f5;
}

.form input:focus, .form textarea:focus, .form select:focus {
    border-color: #2d4a2d;
}

.form button {
    padding: 11px;
    background: #2d4a2d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.form button:hover { background: #3d6b3d; }

/* VISIT LIST */
.visit-list { display: flex; flex-direction: column; gap: 12px; }
.visit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f0ebe3;
    border-radius: 8px;
}
.visit-who { font-weight: 600; }
.visit-date { color: #888; font-size: 0.9rem; }

/* CHECKLISTS */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.checklist input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #2d4a2d; }

/* TASK LIST */
.task-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.task-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }

/* REQUEST LIST */
.request-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.request-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }

/* TAGS */
.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.tag.orange { background: #fde8d0; color: #c0541a; }
.tag.green { background: #d4edda; color: #1a6b3a; }
.tag.gray { background: #e8e8e8; color: #666; }

/* FEEDBACK */
.feedback-list { display: flex; flex-direction: column; gap: 16px; }
.feedback-item { padding: 14px; background: #f0ebe3; border-radius: 8px; }
.feedback-item strong { color: #2d4a2d; }
.feedback-item .date { color: #aaa; font-size: 0.85rem; margin-left: 8px; }
.feedback-item p { margin-top: 6px; font-size: 0.95rem; color: #555; }

/* INFO */
.info-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-list li { font-size: 0.95rem; padding-left: 8px; border-left: 3px solid #2d4a2d; }

/* FOOTER */
footer {
    text-align: center;
    padding: 32px;
    background: #2d4a2d;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
