/* Villa Latella — Site Styles */
:root {
  --primary: #2c1810;
  --primary-light: #4a2c1e;
  --accent: #c9a96e;
  --accent-light: #e8d5a8;
  --bg: #faf8f5;
  --bg-alt: #f2ede7;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --content-max: min(1200px, 94vw);
  --font-serif: 'Georgia', 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
@media (min-width: 2200px) { html { font-size: 20px; } }
@media (min-width: 3000px) { html { font-size: 24px; } }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.85rem 0;
}
.nav-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.lang-toggle {
  background: var(--accent); color: var(--primary); border: none;
  padding: 0.35rem 0.9rem; border-radius: 4px;
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: background 0.2s;
}
.lang-toggle:hover { background: var(--accent-light); }

.nav-mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero / Carousel */
.hero { position: relative; height: 85vh; min-height: 500px; overflow: hidden; margin-top: 60px; }
.carousel { position: absolute; inset: 0; }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s ease-in-out; }
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: white; border: none;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.8rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-counter {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background: rgba(0,0,0,0.5); color: white;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  font-size: 0.85rem; z-index: 10;
}

.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 5;
  color: white;
  padding: 2rem;
}
.hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 2rem;
  border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: var(--primary);
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Sections */
.section { padding: 5rem 0; }
.section:nth-child(even) { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
}
.section-title::after {
  content: '';
  display: block; width: 60px; height: 3px;
  background: var(--accent); margin: 0.8rem auto 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text h2 { text-align: left; }
.about-text h2::after { margin: 0.8rem 0 1.5rem; }
.about-text p { margin-bottom: 1rem; line-height: 1.8; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Project Cards */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); }
.project-card-img { height: 220px; overflow: hidden; flex-shrink: 0; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-card-body h3 { font-family: var(--font-serif); color: var(--primary); margin-bottom: 0.8rem; }
.project-card-body p { margin-bottom: 0.8rem; line-height: 1.7; color: var(--text-light); }
.project-card-body .btn { margin-top: auto; align-self: flex-start; }

/* Availability */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.avail-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.avail-card img { width: 100%; height: 250px; object-fit: cover; }
.avail-card-body { padding: 1.5rem; }
.avail-card-body h3 { font-family: var(--font-serif); margin-bottom: 1rem; color: var(--primary); }

/* Contact */
.contact { text-align: center; }
.contact-info p { margin-bottom: 1rem; font-size: 1.1rem; }
.contact-details { margin-top: 2rem; }
.contact-name { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.contact-phone, .contact-fax { font-size: 1.1rem; }
.contact-phone a, .contact-email a { color: var(--primary); text-decoration: none; font-weight: 600; cursor: pointer; }
.contact-phone a:hover, .contact-email a:hover { color: var(--accent); }
.contact-hours { margin-top: 1.5rem; }

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-credit { text-align: right; }
.footer-credit p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.3rem; }
.footer-credit img { height: 45px; width: auto; }
.footer-copy { text-align: center; font-size: 0.85rem; opacity: 0.6; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 1rem; gap: 1rem; }
  .nav-mobile-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr; }
  .avail-grid { grid-template-columns: 1fr; }
  .hero { height: 60vh; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.4rem; }
}
