/* Ogam Pyra Forno - Florentine Wrought Iron & Terracotta Design System */

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

:root {
  --color-iron: #1F2937;
  --color-iron-dark: #111827;
  --color-terracotta: #B91C1C;
  --color-terracotta-hover: #991B1B;
  --color-ash: #F3F4F6;
  --color-ash-card: #FFFFFF;
  --color-amber: #EA580C;
  --color-text-dark: #1F2937;
  --color-text-muted: #4B5563;
  --color-border: #E5E7EB;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.1);
  --shadow-lg: 0 16px 40px rgba(31, 41, 55, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-ash);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-iron-dark);
}

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

/* Wrought Iron Ornamental SVG Motif Dividers */
.iron-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  gap: 1rem;
}
.iron-divider::before, .iron-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-iron), transparent);
}
.iron-loop-svg {
  width: 40px;
  height: 40px;
  fill: var(--color-terracotta);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--color-terracotta);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.logo span {
  color: var(--color-amber);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-terracotta);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 4l6.5 13h-13L12 6z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 4l6.5 13h-13L12 6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #E5E7EB;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-amber);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-amber);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-iron);
  border: 2px solid var(--color-iron);
}

.btn-secondary:hover {
  background-color: var(--color-iron);
  color: #FFFFFF;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.75)), url('./hero-bg.png') center/cover no-repeat;
  color: #FFFFFF;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 900px;
}

.hero-tagline {
  color: var(--color-amber);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.hero h1 {
  font-size: 3.8rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero p {
  font-size: 1.25rem;
  color: #D1D5DB;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Features / Legacy Grid */
.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Cards & Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-ash-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-amber);
}

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

.card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--color-iron-dark);
}

.card-text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-top: auto;
}

/* Category Filter Controls */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-iron);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-iron);
  color: #FFFFFF;
  border-color: var(--color-iron);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-iron);
  color: #FFFFFF;
  padding: 6rem 2rem;
}

.testimonials-section .section-header h2 {
  color: #FFFFFF;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: #E5E7EB;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-amber);
  font-size: 1.1rem;
}

.testimonial-city {
  font-size: 0.85rem;
  color: #9CA3AF;
}

/* Form Styles */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1rem 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #FFFFFF;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.form-control:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.form-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #9CA3AF;
  pointer-events: none;
  transition: var(--transition);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: 0.6rem;
  transform: translateY(0);
  font-size: 0.75rem;
  color: var(--color-terracotta);
  font-weight: 600;
}

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

textarea.form-control ~ .form-label {
  top: 1.2rem;
}

/* Custom Florence Map Styling Placeholder */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-iron);
  background: #E5E7EB;
  position: relative;
}

/* GDPR Cookie Consent Modal Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--color-iron-dark);
  color: #FFFFFF;
  padding: 1.75rem 2rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
  border-top: 4px solid var(--color-terracotta);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text p {
  font-size: 0.95rem;
  color: #D1D5DB;
}

.cookie-text a {
  color: var(--color-amber);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--color-iron-dark);
  color: #9CA3AF;
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--color-amber);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.88rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
