/* =============================================
   thebrockwells.com — Custom Styles
   Built on Bootstrap 5
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap");

:root {
  --navy: #1a2b4a;
  --gold: #c8973a;
  --gold-lt: #e8b96a;
  --cream: #faf8f4;
  --slate: #4a5568;
  --light-bg: #f0ede8;
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(26, 43, 74, 0.1);
}

/* ── Base ── */
body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--cream);
  color: var(--slate);
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: "Playfair Display", serif;
  color: var(--navy);
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--gold-lt);
}

/* ── Navbar ── */
.navbar-custom {
  background-color: var(--navy);
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.navbar-custom .navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--gold) !important;
  letter-spacing: 0.03em;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin: 0 0.25rem;
  transition: color 0.2s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler {
  border-color: rgba(200, 151, 58, 0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28200, 151, 58, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero (index) ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a7a 100%);
  color: var(--white);
  padding: 3rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(200, 151, 58, 0.08);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(200, 151, 58, 0.05);
  pointer-events: none;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  color: var(--gold-lt);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Section headers ── */
.section-title {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.section-rule {
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.75rem auto 2.5rem;
}

/* ── Family cards ── */
.family-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  height: 100%;
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(26, 43, 74, 0.15);
}

.family-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.family-card .card-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--light-bg), #ddd8d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.family-card .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.family-card h4 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.family-card .role-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.family-card p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ── Gallery ── */
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(26, 43, 74, 0.18);
}

.gallery-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--light-bg), #ddd8d0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #aaa;
  font-size: 0.85rem;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}
#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  background: none;
  border: none;
}
#lightbox-close:hover {
  opacity: 1;
}

/* ── Family Stuff page ── */
.stuff-hero {
  background: linear-gradient(135deg, var(--navy), #2d4a7a);
  padding: 4rem 0 3rem;
  text-align: center;
  color: var(--white);
}

.stuff-hero h1 {
  color: var(--white);
}
.stuff-hero p {
  color: rgba(255, 255, 255, 0.75);
}

#login-box {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  text-align: center;
}

#login-box .lock-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

#login-box h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

#login-box p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

#pw-input {
  border: 2px solid #e0dbd3;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

#pw-input:focus {
  border-color: var(--gold);
  outline: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.65rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  transition:
    background 0.2s,
    transform 0.15s;
}

.btn-gold:hover {
  background: #b5832e;
  transform: translateY(-1px);
  color: var(--white);
}

#pw-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

#files-area {
  display: none;
}

.file-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-bottom: 0.75rem;
}

.file-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(26, 43, 74, 0.13);
}

.file-icon {
  font-size: 2rem;
  min-width: 2.5rem;
  text-align: center;
}

.file-info {
  flex: 1;
}
.file-info .file-name {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.file-info .file-desc {
  font-size: 0.8rem;
  color: #999;
}

.file-size {
  font-size: 0.8rem;
  color: #aaa;
  white-space: nowrap;
}

.btn-download {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #2d4a7a);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.25rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  margin-top: 4rem;
}

footer .footer-brand {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* ── Utility ── */
.section-pad {
  padding: 4rem 0;
}
.bg-light-custom {
  background-color: var(--light-bg);
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.5s;
}
.fade-in:nth-child(6) {
  animation-delay: 0.6s;
}
.fade-in:nth-child(7) {
  animation-delay: 0.7s;
}
.fade-in:nth-child(8) {
  animation-delay: 0.8s;
}
