/* Lovelowood custom overrides for Simple.css */

:root {
  --accent: #c75b2a;
  --accent-hover: #a84a22;
  --bg: #f0ede8;
  --accent-bg: #e4e0da;
  --text: #2d2d2d;
  --text-light: #585858;
  --border: #ccc;
  --blue-grey: #4e6577;
  --blue-grey-dark: #3d5266;
  --blue-grey-light: #6c7f93;
}

/* ===== SITE HEADER WITH PANORAMIC BACKGROUND ===== */
body > header {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.35)),
              url('/images/banner-landscape.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin: 0;
  border-bottom: 4px solid var(--accent);
}

body > header h1 a,
body > header h1 a:visited,
body > header h1 a:hover,
body > header h1 {
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  font-size: 2.5rem;
  text-decoration: none;
}

/* "Love" in handwritten red script, as if added by hand */
.love {
  font-family: 'Dancing Script', cursive;
  color: #b71c1c;
  font-size: 1.15em;
  position: relative;
  top: 0.05em;
  margin-right: 0.05em;
  transform: rotate(-3deg);
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

body > header p {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ===== NAVIGATION ===== */
body > header nav {
  background: var(--blue-grey);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

body > header nav a {
  color: white !important;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

body > header nav a:hover {
  background: rgba(255,255,255,0.2);
  color: white !important;
}

body > header nav a[aria-current="page"] {
  background: rgba(255,255,255,0.25);
  font-weight: bold;
}

/* ===== MAIN CONTENT ===== */
main {
  padding-bottom: 0;
}

main h1 {
  color: var(--blue-grey-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

main h2 {
  color: var(--blue-grey-dark);
}

main h3 {
  color: var(--blue-grey);
}

/* ===== HERO SECTION (homepage) ===== */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 8px;
  margin: -1rem -1rem 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero h2 {
  color: white;
  border: none;
  font-size: 2rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ===== LARGE FEATURE IMAGES ===== */
main img {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 1rem 0;
}

/* ===== IMAGE GALLERY GRID ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease;
  cursor: pointer;
  margin: 0;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ===== CTA BUTTON ===== */
a.cta,
a.cta:visited,
a.cta:hover {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.85rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
}

a.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===== FLOATING CONTACT BUTTON ===== */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
}

/* ===== TESTIMONIALS ===== */
blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-bg);
  color: var(--text);
  font-style: italic;
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

blockquote footer {
  font-style: normal;
  font-weight: bold;
}

/* ===== INLINE CTA BUTTONS ===== */
a.cta + a.cta {
  margin-left: 0.75rem;
}

/* ===== PANORAMIC FOOTER BANNER ===== */
.footer-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 200px;
  background: url('/images/banner-landscape.jpg') center/cover no-repeat;
  margin-top: 3rem;
  margin-bottom: 0;
}

/* ===== SITE FOOTER ===== */
body > footer {
  background: var(--blue-grey-dark);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 2rem 1rem;
}

body > footer a {
  color: white !important;
}

body > footer a:hover {
  color: var(--accent) !important;
}

body > footer a.cta {
  margin-top: 0.5rem;
}

/* ===== AT-A-GLANCE PANEL ===== */
.at-a-glance {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.at-a-glance table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.at-a-glance thead {
  display: none;
}

.at-a-glance td {
  padding: 0.35rem 0.75rem;
  border: none;
  vertical-align: top;
}

.at-a-glance td:first-child {
  width: 35%;
  font-weight: bold;
  color: var(--blue-grey-dark);
  white-space: nowrap;
}

/* ===== BEDROOM SUMMARY TABLE ===== */
.bedroom-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.bedroom-table th {
  background: var(--blue-grey);
  color: white;
  text-align: left;
  padding: 0.5rem 0.75rem;
}

.bedroom-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.bedroom-table tr:nth-child(even) {
  background: var(--accent-bg);
}

.bedroom-table tr:last-child {
  font-weight: bold;
  border-top: 2px solid var(--blue-grey);
}

/* ===== BEDROOM TABLE SCROLL ===== */
.bedroom-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body > header h1 a,
  body > header h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery img {
    height: 200px;
  }

  .footer-banner {
    height: 120px;
  }

  .floating-cta {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  a.cta + a.cta {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .bedroom-table table {
    min-width: 600px;
  }
}
