/* 
 * Fewo Föhr Modernization 
 * Design System & Core Styles
 */

:root {
  /* Color Palette - Modern Maritime */
  --primary-color: #2C3E50;
  /* Deep Slate Blue */
  --secondary-color: #F8F9FA;
  /* Clean Off-White */
  --accent-color: #C5A065;
  /* Muted Gold */
  --text-dark: #2D3436;
  /* Soft Charcoal */
  --text-light: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #E1E8ED;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  /* Reduced from 3rem */
  --spacing-xl: 3.5rem;
  /* Reduced from 5rem */

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 12px;
  --transition-speed: 0.3s ease;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Components */

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  /* Reduced padding */
  transition: padding var(--transition-speed);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  /* Controlled height */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  font-weight: 400;
  color: var(--text-dark);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-size: 1.05rem;
}


.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
    gap: var(--spacing-md);
    transform: translateY(-150%);
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hamburger {
    display: block;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Section Styling */
.section {
  padding: var(--spacing-xl) 0;
}

.bg-sand {
  background-color: var(--secondary-color);
}

.text-center {
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Homepage Specific Styles - Migrated */

.hero {
  min-height: 400px;
  /* Minimum height to ensure content visibility */
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Split screen */
  align-items: center;
  color: var(--text-dark);
  /* Dark text on light bg */
  padding-top: 80px;
  padding-bottom: 3rem;
  /* Ensure bottom padding for content */
  background-color: var(--secondary-color);
  /* Light background for text area */
  overflow: visible;
  /* Allow content to be visible */
  position: relative;
}

.hero.hero-small {
  min-height: 350px;
  /* Slightly smaller for subpages */
}

/* For tablets and smaller laptops */
@media (max-width: 1200px) {
  .hero {
    min-height: 380px;
  }
  
  .hero.hero-small {
    min-height: 320px;
  }
}

/* For mobile, stack them */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 3rem;
    min-height: auto;
    /* Let content determine height */
  }
  
  .hero.hero-small {
    min-height: auto;
  }
}

/* Adjust navbar for hero overlay effect - simplified */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.hero-content {
  padding: 2rem 2.5rem;
  max-width: 100%;
  min-height: 300px;
  /* Ensure minimum height for content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertically center content */
  z-index: 1;
  /* Ensure content is above image */
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* Responsive font size */
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: none;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  /* Responsive font size */
  max-width: 600px;
  margin: 0 0 2rem 0;
  text-shadow: none;
  font-weight: 400;
  color: var(--text-dark);
  opacity: 1;
  line-height: 1.6;
}

.hero-content .btn {
  align-self: flex-start;
  /* Align button to start */
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-content {
    padding: 2rem;
    min-height: 280px;
  }
  
  .hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
  }
}

@media (max-width: 992px) {
  .hero-content {
    padding: 2rem 1.5rem;
    min-height: auto;
    align-items: center;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 2rem;
    max-width: 100%;
  }
  
  .hero-content .btn {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 1.5rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

.hero-image-container {
  height: 100%;
  width: 100%;
  min-height: 400px;
  /* Match hero min-height */
  overflow: hidden;
  /* Crop top and bottom */
  position: relative;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center 45%;
  /* Balanced position - show more bottom, less top */
  border-radius: 0;
  /* Full bleed */
}

/* Responsive image container and positioning */
@media (max-width: 1200px) {
  .hero-image-container {
    min-height: 380px;
  }
  
  .hero-image-container img {
    min-height: 380px;
  }
}

@media (max-width: 992px) {
  .hero-image-container {
    min-height: 300px;
    max-height: 400px;
    /* Limit height on mobile */
  }
  
  .hero-image-container img {
    min-height: 300px;
    object-position: center 50%;
    /* More centered on mobile */
  }
}

@media (max-width: 768px) {
  .hero-image-container {
    min-height: 250px;
    max-height: 350px;
  }
  
  .hero-image-container img {
    min-height: 250px;
  }
}

@media (min-width: 1400px) {
  .hero-image-container img {
    object-position: center 42%;
    /* Slightly higher on very large screens */
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  /* Reduced from 3rem 2rem */
  background: var(--white);
  border-radius: var(--radius-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid var(--border-color);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  font-size: 3rem;
  /* Reduced from 3.5rem */
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: var(--secondary-color);
  border-radius: 50%;
}

/* Wide Feature Item (Dog Friendly) */
.feature-item.wide-feature {
  grid-column: 1 / -1;
  /* Span full width of the grid container */
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
  max-width: 900px;
  /* Constrain width so it doesn't get too crazy */
  margin: 0 auto;
  /* Center it */
}

.feature-content {
  flex: 1;
}

.feature-image img {
  width: 100%;
  max-width: 350px;
  /* Reasonable size for the dog image */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .feature-item.wide-feature {
    grid-column: auto;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .feature-image img {
    max-width: 100%;
  }
}

/* Gallery / Impressions Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 260px;
  /* Reduced from 300px */
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Make some items span larger areas for "Masonry" feel */
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

@media (max-width: 768px) {

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Contact Section Form */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}