/* ========================================
   Subpage Styles - Matches homepage design
   ======================================== */

.sp * { margin: 0; padding: 0; box-sizing: border-box; }

/* Page Hero */
.sp .page-hero {
  height: 70vh; min-height: 450px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.sp .page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.sp .page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(40,60,60,0.25) 0%, rgba(40,60,60,0.6) 100%);
}
.sp .page-hero-content { position: relative; z-index: 2; }
.sp .page-hero .section-label {
  display: block; font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--wp--preset--color--accent); font-weight: 300; margin-bottom: 1.4rem;
  font-family: 'Lato', sans-serif;
}
.sp .page-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400; color: #fff; line-height: 1.15; letter-spacing: 0.04em;
}
.sp .page-hero .divider {
  display: flex; align-items: center; gap: 1.5rem; margin: 1.2rem auto 0;
  max-width: 480px; color: var(--wp--preset--color--accent); opacity: 0.45; font-size: 0.7rem;
}
.sp .page-hero .divider::before, .sp .page-hero .divider::after {
  content: ''; flex: 1; height: 1px; background: currentColor;
}

/* Section Common */
.sp .section-label {
  display: block; font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--wp--preset--color--accent); font-weight: 700; margin-bottom: 1.4rem;
  font-family: 'Lato', sans-serif;
}
.sp .section-header { text-align: center; margin-bottom: 3.5rem; }
.sp .section-header h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400; color: var(--wp--preset--color--deep); margin-top: 0.8rem;
}
.sp .divider {
  display: flex; align-items: center; gap: 1.5rem; margin: 1rem auto 0;
  max-width: 480px; color: var(--wp--preset--color--accent); opacity: 0.45; font-size: 0.7rem;
}
.sp .divider::before, .sp .divider::after { content: ''; flex: 1; height: 1px; background: currentColor; }

/* Content Section */
.sp .content-section {
  padding: 6rem 3rem; font-family: 'Lato', sans-serif;
}
.sp .content-section.cream { background: var(--wp--preset--color--cream); }
.sp .content-section.teal { background: var(--wp--preset--color--teal); color: #fff; }
.sp .content-section.deep { background: var(--wp--preset--color--deep); color: #fff; }
.sp .content-section.stone { background: var(--wp--preset--color--stone); }
.sp .content-inner { max-width: 1200px; margin: 0 auto; }
.sp .content-narrow { max-width: 800px; margin: 0 auto; }

/* Typography */
.sp h2 { font-family: 'Playfair Display', serif; font-weight: 400; margin-bottom: 1.5rem; }
.sp h3 { font-family: 'Playfair Display', serif; font-weight: 400; margin-bottom: 0.8rem; }
.sp p { font-size: 0.92rem; line-height: 1.85; font-weight: 300; margin-bottom: 1.1rem; }
.sp .lead { font-size: 1.05rem; text-align: center; max-width: 700px; margin: 0 auto 3rem; opacity: 0.8; }

/* Two Column */
.sp .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.sp .three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Cards */
.sp .card {
  background: #fff; overflow: hidden; box-shadow: 0 2px 20px rgba(40,60,60,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sp .card:hover { transform: translateY(-6px); box-shadow: 0 8px 36px rgba(40,60,60,0.13); }
.sp .card-img { overflow: hidden; height: 220px; }
.sp .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s; }
.sp .card:hover .card-img img { transform: scale(1.06); }
.sp .card-body { padding: 1.8rem 2rem 2.2rem; }

/* Cottage Cards (reuse homepage style) */
.sp .cottage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-width: 1200px; margin: 0 auto; }
.sp .cottage-card { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.sp .cottage-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s; }
.sp .cottage-card:hover img { transform: scale(1.06); }
.sp .cottage-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,60,60,0.88) 0%, rgba(40,60,60,0) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2.2rem; transition: background 0.4s;
}
.sp .cottage-card:hover .cottage-overlay { background: linear-gradient(to top, rgba(40,60,60,0.95) 0%, rgba(40,60,60,0.15) 60%); }
.sp .cottage-name { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 400; color: #fff; margin-bottom: 1rem; }
.sp .cottage-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--wp--preset--color--accent); color: var(--wp--preset--color--deep); text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  padding: 0.75rem 1.4rem; width: fit-content; transition: background 0.3s;
}
.sp .cottage-cta:hover { background: #d4a06a; }

/* Feature List */
.sp .feature-list { list-style: none; }
.sp .feature-list li {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem;
  font-size: 0.9rem; font-weight: 300; line-height: 1.6;
}
.sp .feature-list li::before { content: '—'; color: var(--wp--preset--color--accent); flex-shrink: 0; opacity: 0.7; }

/* Gallery Grid */
.sp .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.sp .gallery-grid .gal-item { overflow: hidden; aspect-ratio: 4/3; }
.sp .gallery-grid .gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s; }
.sp .gallery-grid .gal-item:hover img { transform: scale(1.06); }

/* Things cards */
.sp .things-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 1100px; margin: 0 auto; }
.sp .thing-card { background: rgba(40,60,60,0.4); border: 1px solid rgba(213,205,196,0.1); padding: 2.8rem 2.5rem; transition: background 0.3s; }
.sp .thing-card:hover { background: rgba(40,60,60,0.65); }
.sp .thing-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 400; color: var(--wp--preset--color--accent); opacity: 0.35; line-height: 1; margin-bottom: 1.2rem; font-style: italic; }
.sp .thing-card h3 { color: #fff; font-size: 1.2rem; }
.sp .thing-card p { color: rgba(213,205,196,0.72); font-size: 0.86rem; line-height: 1.75; }

/* Location */
.sp .loc-row { display: flex; align-items: flex-start; gap: 1rem; font-size: 0.87rem; margin-bottom: 0.7rem; font-weight: 300; }
.sp .loc-row::before { content: '—'; color: var(--wp--preset--color--forest); font-size: 0.7rem; flex-shrink: 0; margin-top: 0.18rem; opacity: 0.7; }

/* Buttons */
.sp .btn-gold {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--wp--preset--color--accent); color: var(--wp--preset--color--deep); text-decoration: none;
  font-family: 'Lato', sans-serif; font-size: 0.73rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700; padding: 1rem 2.4rem; transition: all 0.3s;
}
.sp .btn-gold:hover { background: #d4a06a; transform: translateY(-2px); }
.sp .text-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--wp--preset--color--accent); text-decoration: none; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; transition: gap 0.3s;
}
.sp .text-link:hover { gap: 1.1rem; }

/* Contact form */
.sp .contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; max-width: 680px; margin: 0 auto; }
.sp .contact-form input, .sp .contact-form select, .sp .contact-form textarea {
  background: #fff; border: 1px solid rgba(40,60,60,0.15); padding: 0.9rem 1.2rem;
  font-family: 'Lato', sans-serif; font-size: 0.87rem; color: var(--wp--preset--color--deep);
  outline: none; transition: border-color 0.3s; width: 100%;
}
.sp .contact-form input:focus, .sp .contact-form textarea:focus { border-color: var(--wp--preset--color--forest); }
.sp .contact-form textarea { grid-column: 1 / -1; height: 130px; resize: none; }
.sp .btn-submit {
  grid-column: 1 / -1; background: var(--wp--preset--color--deep); color: #fff; border: none;
  padding: 1.1rem; font-family: 'Lato', sans-serif; font-size: 0.73rem;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; cursor: pointer; transition: background 0.3s;
}
.sp .btn-submit:hover { background: var(--wp--preset--color--teal); }

/* CTA Section */
.sp .cta { position: relative; overflow: hidden; padding: 9rem 3rem; text-align: center; background: var(--wp--preset--color--deep); }
.sp .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.sp .cta-inner { position: relative; z-index: 1; }
.sp .cta h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); color: #fff; line-height: 1.2; margin: 0.8rem 0 1.5rem; }
.sp .cta h2 em { font-style: italic; color: var(--wp--preset--color--stone); }
.sp .cta p { color: rgba(213,205,196,0.75); font-size: 0.95rem; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.8; }

/* Responsive — Tablet */
@media (max-width: 960px) {
  .sp .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .sp .three-col { grid-template-columns: 1fr; }
  .sp .cottage-grid { grid-template-columns: 1fr; }
  .sp .cottage-card { aspect-ratio: 16/10; }
  .sp .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sp .things-grid { grid-template-columns: 1fr 1fr; }
  .sp .content-section { padding: 4rem 2rem; }
  .sp .cta { padding: 6rem 2rem; }

  /* Stack contact page split layouts */
  .sp > section[style*="grid-template-columns: 1fr 1fr"],
  .sp > section[style*="grid-template-columns:1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .sp > section > div[style*="padding:5.5rem 4.5rem"] {
    padding: 3rem 2rem !important;
  }
  .sp > section > div[style*="padding:4rem 4.5rem"] {
    padding: 3rem 2rem !important;
  }
}

/* Responsive — Mobile */
@media (max-width: 600px) {
  .sp .page-hero { min-height: 300px; height: 50svh; }
  .sp .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .sp .content-section { padding: 3rem 1.5rem; }
  .sp .content-narrow { padding: 0; }
  .sp .lead { font-size: 0.95rem; }
  .sp h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .sp .section-header { margin-bottom: 2rem; }
  .sp .section-header h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .sp .cottage-card { aspect-ratio: 3/2; }
  .sp .cottage-overlay { padding: 1.5rem; }
  .sp .cottage-name { font-size: 1.2rem; }
  .sp .gallery-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .sp .gallery-grid .gal-item { aspect-ratio: 1/1; }
  .sp .things-grid { grid-template-columns: 1fr; }
  .sp .thing-card { padding: 2rem 1.5rem; }
  .sp .contact-form { grid-template-columns: 1fr; max-width: 100%; }
  .sp .contact-form textarea { grid-column: auto; }
  .sp .btn-submit { grid-column: auto; }
  .sp .btn-gold { padding: 0.85rem 1.8rem; font-size: 0.68rem; width: 100%; justify-content: center; text-align: center; }
  .sp .cta { padding: 4rem 1.5rem; }
  .sp .cta h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .sp .card-body { padding: 1.4rem 1.5rem 1.8rem; }
  .sp .loc-row { font-size: 0.82rem; }

  /* Stack all inline grid layouts */
  .sp > section[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .sp > section > div[style*="padding:5.5rem"] {
    padding: 2.5rem 1.5rem !important;
  }
  .sp > section > div[style*="padding:4rem"] {
    padding: 2.5rem 1.5rem !important;
  }
  .sp > section > div[style*="min-height:500px"] {
    min-height: 280px !important;
  }
  .sp > section > div[style*="min-height:400px"] {
    min-height: 250px !important;
  }

  /* Feature list columns stack */
  .sp .feature-list li { font-size: 0.85rem; }

  /* CF7 form responsive */
  .sp .wpcf7-form { grid-template-columns: 1fr; max-width: 100%; }
  .sp .wpcf7-form .form-field { grid-column: auto; }
}

/* Tighter label spacing for inline contact details (Phone, Email, Address) */
.sp div[style*="background:var(--wp--preset--color--teal)"] .section-label ~ .section-label { margin-bottom: 0.5rem; }
.sp div[style*="background:var(--wp--preset--color--teal)"] > p { margin-bottom: 0; }

/* Contact Form 7 — match original contact-form styles */
.sp .wpcf7-form {
  display: grid; gap: 0.6rem; max-width: 680px;
}
.sp .wpcf7-form p, .sp .wpcf7-form .form-field { margin: 0; padding: 0; }
.sp .wpcf7-form input[type="text"],
.sp .wpcf7-form input[type="email"],
.sp .wpcf7-form input[type="tel"],
.sp .wpcf7-form select,
.sp .wpcf7-form textarea {
  background: #fff; border: 1px solid rgba(40,60,60,0.15); padding: 0.9rem 1.2rem;
  font-family: 'Lato', sans-serif; font-size: 0.87rem; color: var(--wp--preset--color--deep);
  outline: none; transition: border-color 0.3s; width: 100%; -webkit-appearance: none; border-radius: 0;
}
.sp .wpcf7-form input:focus,
.sp .wpcf7-form select:focus,
.sp .wpcf7-form textarea:focus { border-color: var(--wp--preset--color--forest); }
.sp .wpcf7-form .form-field:nth-child(n+4) { grid-column: 1 / -1; }
.sp .wpcf7-form textarea { height: 130px; resize: none; }
.sp .wpcf7-form .btn-submit,
.sp .wpcf7-form input[type="submit"] {
  grid-column: 1 / -1; background: var(--wp--preset--color--deep); color: #fff; border: none;
  padding: 1.1rem; font-family: 'Lato', sans-serif; font-size: 0.73rem;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; cursor: pointer;
  transition: background 0.3s; width: 100%; border-radius: 0;
}
.sp .wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--teal); }
.sp .wpcf7-form .wpcf7-response-output { grid-column: 1 / -1; margin: 0.5rem 0 0; font-family: 'Lato', sans-serif; font-size: 0.85rem; border-radius: 0; }
.sp .wpcf7-form .wpcf7-not-valid-tip { font-size: 0.75rem; margin-top: 0.3rem; color: #c44; }
.sp .wpcf7-form .wpcf7-spinner { margin: 0.5rem auto; }

/* Reviews Carousel */
.sp .reviews-track-wrap { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; }
.sp .reviews-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.sp .reviews-track::-webkit-scrollbar { display: none; }
.sp .review-card { min-width: calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); flex-shrink: 0; background: #fff; padding: 2.2rem 2rem; text-align: left; box-shadow: 0 2px 16px rgba(40,60,60,0.05); }
.sp .review-stars { color: #FBBC05; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1rem; }
.sp .review-text { font-family: 'Lato', sans-serif; font-size: 0.88rem; color: var(--wp--preset--color--deep); line-height: 1.8; font-weight: 300; opacity: 0.8; margin-bottom: 1.2rem; font-style: italic; }
.sp .review-author { font-family: 'Lato', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--wp--preset--color--deep); font-weight: 400; opacity: 0.5; }
.sp .reviews-nav button { width: 38px; height: 38px; border: 1px solid rgba(40,60,60,0.15); background: none; color: var(--wp--preset--color--deep); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; font-family: 'Lato', sans-serif; }
.sp .reviews-nav button:hover { background: var(--wp--preset--color--deep); color: #fff; border-color: var(--wp--preset--color--deep); }
@media(max-width:960px) { .sp .review-card { min-width: calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); } }
@media(max-width:600px) { .sp .review-card { min-width: 100%; max-width: 100%; } }
