/*
 * Global styles for La Reggia B&B website
 *
 * The colour palette and typography are inspired by the rich, cosy
 * interiors of the property and the warm hospitality offered by the
 * hosts. Dark green evokes the velvet sofa seen in the living room
 * while soft gold accents recall the metallic details in the decor.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS variables for easy theme adjustments */
:root {
  --primary-color: #004d40; /* dark teal reminiscent of the sofa */
  --secondary-color: #c9a472; /* warm gold accent for highlights */
  --light-color: #f9f8f6; /* light background reminiscent of the light floors */
  --dark-color: #2b2b2b; /* dark text for readability */
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

/* Utility container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 1rem;
}

.top-bar a {
  color: #fff;
  margin-left: 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.navbar .logo {
  /* Logo container: use flex to align image and text if needed */
  display: flex;
  align-items: center;
}

/* Logo image styling */
.logo img {
  height: 42px;
  width: auto;
}

.navbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.navbar nav li {
  position: relative;
}

.navbar nav a {
  padding: 0.5rem;
  font-weight: 500;
}

.navbar nav a.active,
.navbar nav a:hover {
  color: var(--secondary-color);
}

/* Mobile navigation toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: transform var(--transition-speed);
}

@media (max-width: 768px) {
  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
  }

  .navbar nav.open {
    max-height: 300px;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 0;
  }

  .navbar nav a {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  height: 75vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background-color: var(--secondary-color);
  color: #fff;
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: #b48d60;
}

/* Feature icons section */
.features {
  background-color: #fff;
  padding: 3rem 0;
}

.features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-item i {
  /* Old icon styling replaced by custom images */
  display: none;
}

/* Custom feature icons */
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--dark-color);
}

/* Rooms page */
.rooms-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 2rem 0;
}

.room-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-card .room-content {
  padding: 1rem;
  flex: 1;
}

.room-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.room-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.room-card ul li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.room-card .room-actions {
  margin-top: auto;
}

/* Gallery page */
.gallery {
  padding: 2rem 0;
}

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

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform var(--transition-speed);
}

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

/* Services page */
.services-section {
  padding: 2rem 0;
}

.services-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.service-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.service-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.service-item p {
  font-size: 0.9rem;
}

/* About page */
.about-section {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-section img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
}

@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.contact-section {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.contact-details {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.contact-details p {
  margin: 0.3rem 0;
}

.contact-form {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: inherit;
}

.contact-form button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Reviews slider */
.reviews-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.review-slide {
  display: none;
  background-color: var(--light-color);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.review-slide.active {
  display: block;
}

.review-slide .stars {
  margin-bottom: 0.5rem;
}

.review-slide .stars img {
  height: 24px;
  width: auto;
  margin-right: 2px;
}

.review-slide p {
  font-style: italic;
  font-size: 1rem;
  margin: 0.5rem 0 0.5rem 0;
}

.review-slide span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--transition-speed);
}

.review-arrow:hover {
  background-color: rgba(0,0,0,0.3);
}

.review-arrow.prev {
  left: -1rem;
}

.review-arrow.next {
  right: -1rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer h4 {
  margin-top: 0;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #fff;
  font-size: 0.9rem;
}

footer .social-icons {
  display: flex;
  gap: 0.5rem;
}

footer .social-icons a i {
  font-size: 1.2rem;
  color: #fff;
  transition: color var(--transition-speed);
}

footer .social-icons a:hover i {
  color: var(--secondary-color);
}