:root {
  /* Colors */
  --color-background: #FDFBF7; /* Warm White */
  --color-foreground: #2C3E50; /* Dark Gray */
  --color-primary: #2E6B4D; /* Deep Forest Green */
  --color-primary-fg: #FFFFFF;
  --color-primary-light: rgba(46, 107, 77, 0.1); /* Light Green for hover */
  --color-secondary: #F3F0E6; /* Warm Beige */
  --color-muted: #F8F9FA;
  --color-border: #E2E8F0;
  --color-input: #FFFFFF;
  
  /* Typography */
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Open Sans', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --spacing-unit: 1rem;
  
  /* Radius */
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-background);
  color: var(--color-foreground);
  margin: 0;
  line-height: 1.8;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-top: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Icons */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  margin-right: 0.25em;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Layout */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: white;
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.top-bar a:hover {
  opacity: 1;
  text-decoration: none;
}

/* SVG Icons override for Top Bar to be white */
.top-bar svg {
  stroke: white;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.top-bar-location {
  display: flex;
  align-items: center;
}

header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-foreground); /* Default text color (dark gray) */
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: inline-block;
}

/* Hover state: Light green background, Primary text color */
nav a:hover {
  background-color: var(--color-muted);
  color: var(--color-foreground);
  text-decoration: none;
}

/* Active state: Very light green background, Primary text color */
nav a.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

/* Hero */
.hero {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Sections */
.section-bg {
  background-color: var(--color-secondary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card_green {
    background-color: rgba(46, 107, 77, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
}

.form-checkbox {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

/* Footer */
footer {
  background: var(--color-muted);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

/* Checkmark List */
ul.check-list {
  list-style: none;
  padding: 0;
}

ul.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

ul.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232E6B4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Responsive Styles */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive Grid Layouts */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gap-3 { gap: 3rem; }

/* Desktop Grid */
@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-1-2 {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

/* Request Page Mobile Reorder */
.request-grid {
    display: flex;
    flex-direction: column-reverse; /* Form (2nd) on top, Contact (1st) on bottom */
    gap: 2rem;
}

@media (min-width: 768px) {
    .request-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
        flex-direction: row; /* Reset flex direction if fallback */
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-location {
        justify-content: center;
    }

    /* Header */
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
    }
    
    .main-nav a:hover, .main-nav a.active {
        background-color: var(--color-muted);
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: 350px;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Check List */
    ul.check-list {
        column-count: 1 !important;
    }
    
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Mobile Gallery Switch */
    .desktop-gallery, .desktop-thumbs {
        display: none !important;
    }

    .mobile-gallery {
        display: block !important;
    }
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc; /* Slate 50 */
    font-family: var(--font-sans);
}

.admin-sidebar {
    width: 260px;
    background-color: white;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-brand {
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.admin-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3b32; /* Deep Green */
    margin: 0;
}

.admin-brand p {
    font-size: 0.875rem;
    color: #64748b; /* Slate 500 */
    margin: 0.25rem 0 0 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #64748b; /* Slate 500 */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.admin-nav-link:hover {
    background-color: #f1f5f9; /* Slate 100 */
    color: #1a3b32;
}

.admin-nav-link.active {
    background-color: #f0eee6; /* Beige/Sand */
    color: #1a3b32;
    font-weight: 600;
}

.admin-nav-link svg {
    margin-right: 0.75rem;
    width: 1rem;
    height: 1rem;
}

.admin-logout {
    margin-top: auto;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-logout:hover {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

/* Admin Dashboard Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.admin-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a3b32;
    margin: 0 0 0.5rem 0;
}

.admin-header p {
    color: #64748b;
    margin: 0;
}

/* Admin Cards */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.admin-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.admin-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a3b32;
    margin-bottom: 0.25rem;
}

.admin-stat-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* Admin Table */
.admin-table-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.admin-table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a3b32;
}

.admin-table-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 1px solid var(--color-border);
}

.admin-table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #0f172a;
    border-bottom: 1px solid var(--color-border);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #dcfce7;
    color: #166534;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a3b32;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.875rem;
}

.login-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.login-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a3b32;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-card .subtext {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Form inputs matching the new design */
.input-field {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #1a3b32;
    box-shadow: 0 0 0 1px #1a3b32;
}

.label-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

@import 'responsive-admin.css';
