/* ================================================
   Deercrest Cottage - Guest Information Site
   Touch-optimized for Dell Venue Pro tablet kiosk
   ================================================ */

:root {
  --forest:     #1B4332;
  --green:      #2D6A4F;
  --mint:       #52B788;
  --sage:       #95D5B2;
  --pale-green: #D8F3DC;
  --amber:      #D4A373;
  --cream:      #FEFAE0;
  --bg:         #F7F3EE;
  --white:      #FFFFFF;
  --text:       #1A1A1A;
  --muted:      #5A5A5A;
  --border:     #E0DAD2;
  --red:        #C0392B;
  --red-bg:     #FFF3F3;
  --orange:     #D4621A;
  --orange-bg:  #FFF6F0;
  --blue:       #1565A8;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ================================================
   HOME PAGE HERO
   ================================================ */

.site-hero {
  position: relative;
  background: var(--forest);
  color: white;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 1.75rem;
  overflow: hidden;
}

.site-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/cottagedockanddeck_2.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.38;
}

.site-hero > * { position: relative; z-index: 1; }

.site-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 0.3rem;
}

.site-hero .tagline {
  font-size: 1rem;
  opacity: 0.88;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  margin-bottom: 1.25rem;
}

.wifi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ================================================
   SUB-PAGE HEADER
   ================================================ */

.page-header {
  background: var(--forest);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: background 0.12s;
  line-height: 1;
}

.back-btn:active { background: rgba(255,255,255,0.3); }

.page-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
  line-height: 1.2;
}

.page-header .header-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ================================================
   WELCOME BANNER (home page)
   ================================================ */

.welcome-banner {
  background: linear-gradient(135deg, var(--green), var(--forest));
  color: white;
  padding: 1.5rem;
  margin: 1.25rem 1rem;
  border-radius: var(--radius);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-banner h2 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: normal;
  margin-bottom: 0.6rem;
}

.welcome-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* ================================================
   NAV GRID (home page)
   ================================================ */

.nav-section {
  padding: 0 1rem 0.5rem;
  max-width: 880px;
  margin: 0 auto;
}

.nav-section + .nav-section { margin-top: 0.25rem; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 0.25rem 0.6rem;
}

/* Featured "Please Read" card */
.featured-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #B83525, #C0392B);
  color: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 18px rgba(192,57,43,0.35);
  min-height: 80px;
  transition: opacity 0.12s, transform 0.12s;
}

.featured-card:active {
  opacity: 0.88;
  transform: scale(0.99);
}

.featured-card .fc-icon { font-size: 2.4rem; flex-shrink: 0; }
.featured-card .fc-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.featured-card .fc-sub {
  font-size: 0.88rem;
  opacity: 0.88;
}

/* Grid cards */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

@media (min-width: 480px) {
  .nav-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 680px) {
  .nav-grid { grid-template-columns: repeat(4, 1fr); }
}

.nav-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  min-height: 100px;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.nav-card:active {
  background: var(--pale-green);
  border-color: var(--mint);
  box-shadow: var(--shadow-md);
}

.nav-card .nc-icon { font-size: 1.9rem; line-height: 1; }
.nav-card .nc-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

/* ================================================
   CONTENT PAGES
   ================================================ */

.content-area {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* Base content card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}

.card p {
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.card p:last-child { margin-bottom: 0; }

.card ul, .card ol {
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.card li {
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* Card variants */
.card-alert {
  border-left: 4px solid var(--red);
  background: var(--red-bg);
}
.card-alert h2 { color: var(--red); }

.card-warning {
  border-left: 4px solid var(--orange);
  background: var(--orange-bg);
}
.card-warning h2 { color: var(--orange); }

.card-info {
  border-left: 4px solid var(--mint);
}

/* Highlight box within cards */
.highlight {
  background: var(--pale-green);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
  font-weight: 600;
  font-size: 0.97rem;
}

.highlight-amber {
  background: var(--cream);
  border-color: var(--amber);
}

/* ================================================
   CONTACT LIST
   ================================================ */

.contact-list { list-style: none; padding: 0; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.ci-icon { font-size: 1.4rem; flex-shrink: 0; padding-top: 0.1rem; }

.ci-name  { font-weight: 700; font-size: 0.97rem; margin-bottom: 0.2rem; }
.ci-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.15rem;
}
.ci-note  { font-size: 0.88rem; color: var(--muted); }

/* ================================================
   NUMBERED STEPS
   ================================================ */

.steps { list-style: none; padding: 0; counter-reset: step; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.step:last-child { border-bottom: none; }

.step::before {
  content: counter(step);
  background: var(--green);
  color: white;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-content { flex: 1; }
.step-content strong { display: block; margin-bottom: 0.2rem; font-size: 0.97rem; }
.step-content p, .step-content span {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ================================================
   LOCATION TILES
   ================================================ */

.location-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.loc-tile {
  background: var(--pale-green);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ================================================
   ATTRACTION ITEMS
   ================================================ */

.attraction {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.attraction:last-child { border-bottom: none; }

.attraction h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.attraction p {
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.attr-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

/* ================================================
   GUESTBOOK
   ================================================ */

.guestbook-entry {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.guestbook-entry:last-child { border-bottom: none; }

.ge-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  gap: 1rem;
}

.ge-name  { font-weight: 700; font-size: 1rem; }
.ge-date  { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.ge-stars { color: #F4B942; font-size: 1.05rem; letter-spacing: 0.03em; margin-bottom: 0.3rem; }
.ge-title { font-weight: 600; color: var(--green); margin-bottom: 0.3rem; font-size: 0.95rem; }
.ge-body  { font-size: 0.93rem; line-height: 1.6; color: var(--text); }

/* ================================================
   WIFI PAGE SPECIAL
   ================================================ */

.wifi-card {
  background: linear-gradient(135deg, var(--forest), var(--green));
  color: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.wifi-card h2 { color: white; justify-content: center; margin-bottom: 0.4rem; }

.wifi-network-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: 0.03em;
}

.wifi-password {
  font-size: 1.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  margin: 0.75rem auto 0;
  display: inline-block;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.25);
}

.wifi-label {
  font-size: 0.82rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qr-container {
  margin-top: 1.25rem;
}

.qr-container img {
  width: 150px;
  height: 150px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: block;
  margin: 0 auto 0.5rem;
}

.qr-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ================================================
   IMAGE DISPLAY
   ================================================ */

.page-image {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  display: block;
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.image-row img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ================================================
   BACK HOME BUTTON
   ================================================ */

.btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green);
  color: white;
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem auto 0;
  max-width: 280px;
  box-shadow: 0 3px 10px rgba(45,106,79,0.3);
  transition: opacity 0.12s;
}

.btn-home:active { opacity: 0.82; }

/* ================================================
   FOOTER
   ================================================ */

footer {
  background: var(--forest);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  margin-top: auto;
}
