/* ==========================================================================
   OCHRE & OSTRA - Ligurian Coastal Ochre & Marble Theme
   Design System & Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Color Palette */
  --color-ochre-primary: #D97706;
  --color-ochre-light: #F59E0B;
  --color-ochre-dark: #B45309;
  --color-ochre-plaster: #FFFBEB;
  
  --color-seafoam: #F0FDF4;
  --color-seafoam-accent: #DCFCE7;
  
  --color-navy: #1E3A8A;
  --color-navy-dark: #0F172A;
  --color-navy-light: #3B82F6;
  
  --color-marble-white: #FFFFFF;
  --color-marble-subtle: #F8FAFC;
  --color-marble-border: #E2E8F0;
  
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #F8FAFC;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Elevations & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-ochre: 0 10px 30px rgba(217, 119, 6, 0.2);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-backdrop: blur(16px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--color-marble-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo span {
  color: var(--color-ochre-primary);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-ochre-primary);
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-ochre-primary);
  color: var(--color-marble-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-ochre-dark);
  box-shadow: var(--shadow-ochre);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-navy);
  color: var(--color-marble-white);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-navy);
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: var(--color-navy-dark);
  color: var(--color-text-light);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--color-ochre-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: var(--color-marble-white);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94A3B8;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--color-ochre-light);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #CBD5E1;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-ochre-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94A3B8;
  font-size: 0.9rem;
}

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

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

/* GDPR Cookie Modal */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 420px;
  background: var(--color-marble-white);
  border: 1px solid var(--color-marble-border);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 1.75rem;
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-marble-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-width: none;
    bottom: 1rem;
  }
}
