/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* Base styles and resets */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e67e22;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text: #f8f9fa;
  --border-color: #e1e1e1;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --section-spacing: 5rem;
}

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

html {
  font-size: 62.5%; /* 10px base for easier rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--secondary-color);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

p {
  margin-bottom: 2rem;
}

ul {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-spacing) 0;
}

/* Header */
header {
  background-color: var(--secondary-color);
  background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../img/Villa_Macleay_Amazing_View_From_Deck_At_Dusk.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  padding: 15rem 2rem;
  position: relative;
}

header h1 {
  font-size: 6rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.booking-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2rem;
  transition: var(--transition);
}

.booking-btn:hover {
  background-color: #d35400;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
  background-color: white;
  padding: 2rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

nav a {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

nav a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery-item img {
  transition: var(--transition);
  border-radius: 8px;
}

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

/* About sections */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  order: 1;
}

.about-image {
  order: 2;
}

/* Booking section */
.booking-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 8rem 2rem;
}

.booking-section h2 {
  color: white;
}

.booking-section h2::after {
  background-color: white;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 5rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: left;
}

.footer-column h3 {
  color: white;
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.footer-column ul li {
  margin-bottom: 1rem;
}

.footer-column a {
  color: #ccc;
}

.footer-column a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-text, .about-image {
    order: 0;
  }
  
  header {
    padding: 10rem 2rem;
  }
  
  header h1 {
    font-size: 4.5rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 3.8rem;
  }
}