/* =========================================
   LUOMA FAMILY — Global Styles
   Colors: Luoma Green #0A3A24 | Luoma Gold #D1A84C | Ivory #F8F3E7
   ========================================= */

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

:root {
  --green: #0A3A24;
  --green-mid: #145c38;
  --gold: #D1A84C;
  --gold-light: #e8c97a;
  --ivory: #F8F3E7;
  --ivory-dark: #ede5d0;
  --text-dark: #1a1a1a;
  --text-mid: #3d3d3d;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--gold-light); }

/* ---- NAV ---- */

nav {
  background-color: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
}

.nav-links a {
  color: var(--ivory);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--gold);
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid rgba(209,168,76,0.2); }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: none;
  }
}

/* ---- PAGE HERO ---- */

.page-hero {
  background-color: var(--green);
  color: var(--ivory);
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--ivory);
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- CONTENT WRAPPER ---- */

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.content-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ---- SECTION DIVIDER ---- */

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.section-divider span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  white-space: nowrap;
}

/* ---- CARDS ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border: 1px solid var(--ivory-dark);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(10,58,36,0.1);
}

.card h3 {
  color: var(--green);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ---- HANDBOOK STYLES ---- */

.handbook-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ivory-dark);
}

.handbook-section:last-child {
  border-bottom: none;
}

.handbook-section h2 {
  color: var(--green);
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
}

.handbook-section h3 {
  color: var(--green-mid);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.2rem;
}

.handbook-section ul,
.handbook-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.handbook-section li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.93rem;
}

.schedule-table th {
  background: var(--green);
  color: var(--gold);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.schedule-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--ivory-dark);
  vertical-align: top;
}

.schedule-table tr:nth-child(even) td {
  background: rgba(248,243,231,0.6);
}

/* ---- FAMILY GALLERY ---- */

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.family-member {
  background: white;
  border: 1px solid var(--ivory-dark);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
}

.member-photos {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio */
  overflow: hidden;
  background: var(--green);
  cursor: pointer;
}

.member-photos::after {
  content: 'View all photos →';
  position: absolute;
  bottom: 0.6rem;
  right: 0.75rem;
  background: rgba(10, 58, 36, 0.7);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 2;
}

.member-photos:hover::after {
  opacity: 1;
}

.member-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.member-photo.active {
  opacity: 1;
}

.member-info {
  padding: 1.25rem 1.5rem;
}

.member-info h3 {
  color: var(--green);
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.member-info p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 58, 36, 0.85);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.gallery-modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.gallery-modal-inner {
  background: var(--ivory);
  border-radius: 6px;
  border-top: 4px solid var(--gold);
  max-width: 900px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-mid);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}

.gallery-close:hover {
  color: var(--green);
}

.gallery-header {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.gallery-header h2 {
  font-family: var(--font-serif);
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.gallery-header p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--ivory-dark);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-img-wrap img:hover {
  transform: scale(1.04);
}

/* TomFord strip */
.tomford-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.tf-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--ivory-dark);
}

.tf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tf-photo:hover img {
  transform: scale(1.04);
}

.tf-info {
  padding: 1rem 0 0;
  text-align: center;
}

.tf-info h3 {
  color: var(--green);
  margin-bottom: 0.4rem;
}

.tf-info p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
}

@media (max-width: 700px) {
  .tomford-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .tf-info { grid-column: 1 / -1; text-align: center; }
}

/* ---- BRAND BOOK ---- */

.color-swatches {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.swatch {
  text-align: center;
  font-size: 0.82rem;
}

.swatch-block {
  width: 100px;
  height: 70px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.symbol-item {
  background: white;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
}

.symbol-item h4 {
  color: var(--green);
  margin-bottom: 0.4rem;
}

.symbol-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
}

/* ---- WEDDING TOUR ---- */

.tour-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.tour-intro p {
  font-size: 1.1rem;
  color: var(--text-mid);
}

.destination-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.destination-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  background: white;
  border: 1px solid var(--ivory-dark);
  border-left: 5px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 4px 4px 0;
  align-items: start;
}

.destination-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  text-align: center;
  padding-top: 0.2rem;
}

.destination-info h3 {
  color: var(--green);
  margin-bottom: 0.25rem;
}

.destination-info .dest-date {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dest-badge {
  display: inline-block;
  background: var(--green);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.destination-info p {
  font-size: 0.93rem;
  color: var(--text-mid);
  margin: 0;
}

/* ---- HOME PAGE ---- */

.home-hero {
  background-color: var(--green);
  background-image: radial-gradient(ellipse at top, #145c38 0%, #0A3A24 60%);
  color: var(--ivory);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border-bottom: 3px solid var(--gold);
}

.home-hero .crest-placeholder {
  width: 160px;
  height: 160px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0.85;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
}

.home-hero img.crest {
  width: 180px;
  height: auto;
  margin-bottom: 2rem;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.home-hero .tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--ivory);
  opacity: 0.8;
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
}

.home-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.home-nav-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: white;
  border: 1px solid var(--ivory-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 0.9rem 1.5rem;
  color: var(--text-dark);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-nav-card:hover {
  box-shadow: 0 4px 16px rgba(10,58,36,0.1);
  transform: translateX(3px);
  color: var(--text-dark);
}

.home-nav-card .nav-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.nav-card-body {
  flex: 1;
}

.home-nav-card h3 {
  color: var(--green);
  margin-bottom: 0.1rem;
  font-size: 1rem;
}

.home-nav-card p {
  font-size: 0.83rem;
  color: var(--text-mid);
  margin: 0;
}

/* Scarlett memorial */
.scarlett-memorial {
  background: var(--green);
  color: var(--ivory);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  margin: 3rem 0;
}

.scarlett-memorial h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.scarlett-date {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 1rem !important;
  font-style: normal !important;
}

.scarlett-memorial p {
  max-width: 540px;
  margin: 0 auto;
  opacity: 0.85;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

/* ---- HOME PAGE ---- */

.home-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.home-section h2 {
  color: var(--green);
  margin-bottom: 1rem;
  text-align: center;
}

/* ---- FOOTER ---- */

footer {
  background: var(--green);
  border-top: 2px solid var(--gold);
  color: var(--ivory);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

footer span {
  color: var(--gold);
}

/* ---- BACK TO TOP BUTTON ---- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 500;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--gold);
  color: var(--green);
}

@media print {
  #backToTop { display: none; }
}

/* ---- MOBILE PHOTO HINT ---- */
@media (hover: none) {
  .member-photos::after {
    opacity: 1;
    content: 'Tap to view all photos';
  }
}
