/*
Theme Name: Diani Forest Lodge
Theme URI: https://dianiforestlodge.com
Author: Diani Forest Lodge Team
Author URI: https://dianiforestlodge.com
Description: A bespoke WordPress theme for Diani Forest Lodge featuring a stunning React-powered animated homepage with organic shapes, scroll animations, and a warm sunset palette. Inner pages use native WordPress templates for full CMS management.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diani-forest-lodge
Requires at least: 6.0
Requires PHP: 7.4
Tags: hotel, lodge, resort, custom-menu, featured-images, threaded-comments, translation-ready

This theme is designed as a hybrid React + WordPress solution.
The homepage is served by a React SPA embedded via index.php.
All inner pages (rooms, blog, booking, contact) use native WordPress templates.
*/

/* ============================================
   WORDPRESS INNER PAGE STYLES
   These styles apply to non-React pages only
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1F1A17;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: #0E2F2F;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

a {
  color: #D04242;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #E0778A;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LAYOUT
   ============================================ */

.df-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.df-section {
  padding: 80px 0;
}

.df-grid {
  display: grid;
  gap: 32px;
}

.df-grid-2 { grid-template-columns: repeat(2, 1fr); }
.df-grid-3 { grid-template-columns: repeat(3, 1fr); }
.df-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .df-grid-2,
  .df-grid-3,
  .df-grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}

/* ============================================
   HEADER (WordPress pages only)
   ============================================ */

.df-wp-header {
  background-color: #0E2F2F;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.df-wp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.df-wp-header__logo img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 3px rgba(255, 255, 255, 0.8));
}

.df-wp-header__nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.df-wp-header__nav a {
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: opacity 0.2s ease;
}

.df-wp-header__nav a:hover {
  opacity: 0.8;
  color: #FFFFFF;
}

.df-wp-header__cta {
  background-color: #D04242;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.df-wp-header__cta:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
  color: #FFFFFF;
}

/* Mobile menu */
.df-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.df-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .df-wp-header__nav,
  .df-wp-header__cta {
    display: none;
  }
  
  .df-mobile-toggle {
    display: flex;
  }
  
  .df-wp-header__nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0E2F2F;
    padding: 24px;
  }
  
  .df-wp-header__nav.is-open ul {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
   PAGE HEADER / HERO
   ============================================ */

.df-page-hero {
  background-color: #0E2F2F;
  color: #FFFFFF;
  padding: 100px 0 60px;
  text-align: center;
}

.df-page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.df-page-hero__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.df-breadcrumbs {
  display: none;
}

.df-breadcrumbs {
  padding: 20px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.df-breadcrumbs a {
  color: #0E2F2F;
}

.df-breadcrumbs a:hover {
  color: #D04242;
}

.df-breadcrumbs .sep {
  margin: 0 8px;
  color: #ccc;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.df-content {
  padding: 60px 0;
}

.df-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.df-content h2 {
  margin: 40px 0 20px;
}

.df-content h3 {
  margin: 30px 0 15px;
}

.df-content ul,
.df-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.df-content li {
  margin-bottom: 8px;
}

.df-content blockquote {
  border-left: 4px solid #E0778A;
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}

.df-content img {
  border-radius: 16px;
  margin: 24px 0;
}

.df-content .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.df-content .wp-block-table td,
.df-content .wp-block-table th {
  border: none;
  padding: 12px 24px 12px 0;
  vertical-align: top;
}

.df-content .wp-block-table td:last-child,
.df-content .wp-block-table th:last-child {
  padding-right: 0;
}

.df-content .wp-block-table .df-cell-heading {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
}

.df-content .wp-block-table .df-cell-label {
  font-size: 15px;
  margin: 12px 0 4px;
}

.df-content .wp-block-table td ul,
.df-content .wp-block-table th ul {
  margin: 0;
  padding-left: 20px;
}

.df-content .wp-block-table td ul li,
.df-content .wp-block-table th ul li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   EXPERIENCE FEATURED IMAGE
   ============================================ */

.df-experience-thumbnail {
  float: left;
  margin: 0 28px 20px 0;
  width: 480px;
  flex-shrink: 0;
}

.df-experience-thumbnail__img {
  display: block;
  width: 480px;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .df-experience-thumbnail {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }

  .df-experience-thumbnail__img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   ROOMS LISTING
   ============================================ */

.df-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.df-room-card {
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.df-room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.df-room-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.df-room-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.df-room-card:hover .df-room-card__image img {
  transform: scale(1.05);
}

.df-room-card__content {
  padding: 24px;
}

.df-room-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #0E2F2F;
  margin-bottom: 8px;
}

.df-room-card__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #D04242;
  margin-bottom: 12px;
}

.df-room-card__excerpt {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.6;
}

.df-room-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.df-feature-tag {
  background: #F4C4C4;
  color: #1F1A17;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.df-room-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0E2F2F;
  transition: color 0.2s ease;
}

.df-room-card__link:hover {
  color: #D04242;
}

/* ============================================
   SINGLE ROOM PAGE
   ============================================ */

.df-room-header {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.df-room-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.df-room-header__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(14,47,47,0.8), transparent);
  padding: 60px 5% 40px;
}

.df-room-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.df-room-header__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  color: #FFE03D;
  font-weight: 500;
}

.df-room-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.df-room-amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.df-amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F9F9F9;
  border-radius: 12px;
  font-size: 14px;
}

.df-amenity-item svg {
  width: 20px;
  height: 20px;
  color: #9ABE57;
  flex-shrink: 0;
}

.df-room-sidebar {
  background: #F9F9F9;
  border-radius: 24px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.df-booking-widget__title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #0E2F2F;
  margin-bottom: 20px;
}

.df-form-group {
  margin-bottom: 16px;
}

.df-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: #555;
}

.df-form-group input,
.df-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.df-form-group input:focus,
.df-form-group select:focus {
  outline: none;
  border-color: #D89B45;
}

.df-btn-primary {
  width: 100%;
  padding: 16px;
  background-color: #D04242;
  color: #FFFFFF;
  border: none;
  border-radius: 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.df-btn-primary:hover {
  filter: brightness(1.15);
}

@media (max-width: 768px) {
  .df-room-meta {
    grid-template-columns: 1fr;
  }
  
  .df-room-sidebar {
    position: static;
  }
}

/* ============================================
   GALLERY
   ============================================ */

.df-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 40px 0;
}

.df-gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
}

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

.df-gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   TESTIMONIALS LIST
   ============================================ */

.df-testimonials-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.df-testimonial-item {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
}

.df-testimonial-item::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: #E0778A;
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.df-testimonial-item__text {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  padding-top: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #1F1A17;
}

.df-testimonial-item__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.df-testimonial-item__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.df-testimonial-item__name {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.df-testimonial-item__origin {
  font-size: 13px;
  color: #888;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.df-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 40px 0;
}

.df-contact-info__item {
  margin-bottom: 32px;
}

.df-contact-info__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 8px;
}

.df-contact-info__value {
  font-size: 18px;
  color: #0E2F2F;
}

.df-contact-form {
  background: #F9F9F9;
  border-radius: 24px;
  padding: 40px;
}

.df-contact-form__title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #0E2F2F;
  margin-bottom: 24px;
}

textarea.df-form-control {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 768px) {
  .df-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   PAGINATION
   ============================================ */

.df-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.df-pagination a,
.df-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.df-pagination a {
  background: #F5F5F5;
  color: #1F1A17;
}

.df-pagination a:hover {
  background: #0E2F2F;
  color: #FFFFFF;
}

.df-pagination .current {
  background: #0E2F2F;
  color: #FFFFFF;
}

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */

.df-sidebar {
  padding-left: 40px;
  border-left: 1px solid #eee;
}

.df-widget {
  margin-bottom: 40px;
}

.df-widget__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #0E2F2F;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E0778A;
}

.df-widget ul {
  list-style: none;
  padding: 0;
}

.df-widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.df-widget li:last-child {
  border-bottom: none;
}

.df-widget a {
  color: #1F1A17;
  font-size: 14px;
}

.df-widget a:hover {
  color: #D04242;
}

/* ============================================
   FOOTER (WordPress pages)
   ============================================ */

.df-wp-footer {
  background-color: #E0778A;
  color: #FFFFFF;
  padding: 60px 0 24px;
}

.df-wp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.df-wp-footer__logo img {
  height: 150px;
  width: auto;
  margin-bottom: 16px;
}

.df-wp-footer__desc {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 300px;
}

.df-wp-footer__heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  opacity: 0.9;
}

.df-wp-footer__links {
  list-style: none;
  padding: 0;
}

.df-wp-footer__links li {
  margin-bottom: 10px;
}

.df-wp-footer__links a {
  color: #FFFFFF;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.df-wp-footer__links a:hover {
  opacity: 1;
  color: #FFFFFF;
}

.df-wp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.df-wp-footer__copyright {
  font-size: 13px;
  opacity: 0.85;
}

.df-wp-footer__social {
  display: flex;
  gap: 20px;
}

.df-wp-footer__social a {
  color: #FFFFFF;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.df-wp-footer__social a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .df-wp-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .df-wp-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.df-text-center { text-align: center; }
.df-text-left { text-align: left; }
.df-text-right { text-align: right; }

.df-mt-0 { margin-top: 0; }
.df-mt-1 { margin-top: 8px; }
.df-mt-2 { margin-top: 16px; }
.df-mt-3 { margin-top: 24px; }
.df-mt-4 { margin-top: 32px; }
.df-mt-5 { margin-top: 48px; }

.df-mb-0 { margin-bottom: 0; }
.df-mb-1 { margin-bottom: 8px; }
.df-mb-2 { margin-bottom: 16px; }
.df-mb-3 { margin-bottom: 24px; }
.df-mb-4 { margin-bottom: 32px; }
.df-mb-5 { margin-bottom: 48px; }

.df-d-none { display: none; }
.df-d-block { display: block; }
.df-d-flex { display: flex; }

/* WordPress Alignments */
.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
