:root {
  --primary-maroon: #5D001D;
  --dark-maroon: #3A0012;
  --accent-gold: #B89A6A;
  --light-gray: #F4F4F4;
  --text-dark: #333;
  --white: #FFFFFF;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-gray);
  line-height: 1.6;
}

/* --- GLOBAL IMAGE SAFETY (Prevents Layout Breakage) --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- ANIMATIONS --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}
.shimmer-effect::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 200%; height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

/* --- TYPOGRAPHY --- */
.page-container h1, .section-title, h2 {
    text-align: center;
    color: var(--primary-maroon);
    font-family: 'Playfair Display', serif;
}
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

/* EXCEPTIONS: Keep Forms, Legal, and Admin Left-Aligned */
form h2, form h3, .form-group label, 
.legal-content h2, .legal-content p, 
.admin-view h1, .admin-view h2 { 
    text-align: left; 
}

/* --- SEALS & WATERMARKS --- */
.seal-red {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}
.seal-gold {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}
.watermark-bg {
    position: relative;
    overflow: hidden;
}
.watermark-bg::before {
    content: "";
    background-image: url('watermark.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%; left: 50%; width: 80%; height: 80%;
    transform: translate(-50%, -50%);
    opacity: 0.05; /* Subtle */
    z-index: 0;
    pointer-events: none;
}

/* --- HEADER --- */
header {
  background-color: var(--primary-maroon);
  padding: 1rem 0;
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo {
  color: var(--accent-gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-right: auto;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

/* Verify Button (With Shimmer) */
.nav-verify-prominent {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-maroon) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ACCOUNT / PFP FIXES --- */
.account-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    padding-bottom: 10px; /* Bridge for hover */
    margin-bottom: -10px;
}
.pfp-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    /* Border logic moved to shadow to prevent gaps */
    box-shadow: 0 0 0 2px var(--accent-gold);
    overflow: hidden;
}
.user-pfp {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 10px;
}
.account-dropdown.show { display: block; }
.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--primary-maroon);
    text-decoration: none;
}
.dropdown-item:hover { background: #f8f9fa; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 600px; /* STRICT HEIGHT LIMIT */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-maroon) 0%, var(--primary-maroon) 100%);
}
.hero-video, .hero img {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(58, 0, 18, 0.7);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
}

/* --- MOBILE MENU --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
}
.hamburger-line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: flex-end; /* Push everything right */
    }
    .logo {
        margin-right: auto; /* Push logo left */
    }
    /* PFP next to Hamburger */
    .account-dropdown-container {
        order: 1;
        margin-right: 0;
    }
    .hamburger-menu {
        display: flex;
        order: 2;
    }
    
    /* Mobile Nav Dropdown */
    nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--primary-maroon);
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    nav.mobile-active { display: flex !important; }
    nav ul { flex-direction: column; gap: 0; }
    nav ul li { width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
    nav ul li a { display: block; padding: 15px; }
    
    .btn-login-header { display: none; } /* Hide redundant button */
    
    /* Account Page Responsive */
    .dog-full-profile { flex-direction: column-reverse; }
    .dog-photo-side { width: 100%; height: 250px; }
}

/* --- GENERAL UI --- */
section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }

.cta-button {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-maroon);
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.cta-button:hover { transform: translateY(-2px); background-color: #cbb389; }

/* Footer */
footer {
    background-color: var(--dark-maroon);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: auto;
}
.footer-links a {
    color: var(--accent-gold);
    margin: 0 10px;
    text-decoration: none;
}

/* Icons Grid */
.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.icon-card {
    text-align: center;
    padding: 2rem;
    background: transparent;
    transition: transform 0.3s;
}
.icon-card:hover { transform: translateY(-5px); }

/* Account Page Specifics */
.dog-full-profile {
    display: flex;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.dog-info-side { flex: 1; padding: 2rem; text-align: left; }
.dog-photo-side {
    width: 300px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
}
.dog-photo-side img { width: 100%; height: 100%; object-fit: cover; }

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
}