/* Recurse Riva - Modern Riviera Teak & Outdoor Poolside Loungers Design System */

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

:root {
  --color-teak-dark: #451A03;
  --color-teak: #78350F;
  --color-teak-light: #B45309;
  --color-teak-accent: #D97706;
  --color-ocean: #0284C7;
  --color-ocean-dark: #0369A1;
  --color-ocean-light: #38BDF8;
  --color-sand: #FEF3C7;
  --color-sand-light: #FFFBEB;
  --color-sand-muted: #FDE68A;
  --color-charcoal: #1E293B;
  --color-charcoal-light: #334155;
  --color-slate-muted: #64748B;
  --color-slate-light: #F8FAFC;
  --color-white: #FFFFFF;
  
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.05);
  --shadow-md: 0 4px 12px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 12px 32px rgba(30, 41, 59, 0.12);
  --shadow-xl: 0 20px 48px rgba(120, 53, 15, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

*, *::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-charcoal);
  background-color: var(--color-sand-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-teak-dark);
}

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

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
  background: rgba(255, 251, 235, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 53, 15, 0.08);
}

.header.scrolled {
  padding: 0.85rem 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-teak-dark);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-teak);
  color: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
  position: relative;
}

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

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

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

.nav-cta {
  padding: 0.65rem 1.4rem;
  background: var(--color-teak);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(120, 53, 15, 0.2);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-teak-dark);
  transform: translateY(-1px);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--color-teak);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(120, 53, 15, 0.25);
}

.btn-primary:hover {
  background: var(--color-teak-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(120, 53, 15, 0.35);
}

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

.btn-secondary:hover {
  background: var(--color-teak);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-ocean {
  background: var(--color-ocean);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

.btn-ocean:hover {
  background: var(--color-ocean-dark);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.4) 0%, rgba(2, 132, 199, 0.05) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(120, 53, 15, 0.08);
  color: var(--color-teak);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-teak-dark);
}

.hero-title span {
  color: var(--color-ocean);
  font-style: italic;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-slate-muted);
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  height: 520px;
}

.hero-card-floating {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sand);
  color: var(--color-teak);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Feature Highlights Bar */
.highlights-bar {
  background: var(--color-teak-dark);
  color: var(--color-sand-light);
  padding: 2.5rem 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.highlight-item h4 {
  color: var(--color-sand);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.highlight-item p {
  font-size: 0.9rem;
  color: rgba(254, 243, 199, 0.7);
}

/* Section Common */
.section {
  padding: 6rem 0;
}

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

.section-subtitle {
  color: var(--color-ocean);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-slate-muted);
  font-size: 1.05rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.2rem;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(30, 41, 59, 0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #f1f5f9;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-sand);
  color: var(--color-teak-dark);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-ocean);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--color-charcoal);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-slate-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-teak-dark);
  font-family: var(--font-serif);
}

/* Category Filter Tabs */
.filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(120, 53, 15, 0.2);
  background: var(--color-white);
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-teak);
  color: var(--color-white);
  border-color: var(--color-teak);
}

/* Craftsmanship / Features Grid */
.crafts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.craft-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(120, 53, 15, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.craft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.craft-icon {
  width: 56px;
  height: 56px;
  background: var(--color-sand);
  color: var(--color-teak);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(180deg, var(--color-sand-light) 0%, rgba(254, 243, 199, 0.5) 100%);
}

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

.review-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 41, 59, 0.05);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #F59E0B;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.review-text {
  font-style: italic;
  color: var(--color-charcoal-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-teak);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info h5 {
  font-size: 0.95rem;
  color: var(--color-charcoal);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--color-slate-muted);
}

/* Showroom & Contact Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.form-control {
  width: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-teak);
  box-shadow: 0 0 0 3px rgba(120, 53, 15, 0.12);
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  color: var(--color-slate-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition);
  background: var(--color-white);
  padding: 0 0.3rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -0.65rem;
  left: 0.9rem;
  font-size: 0.8rem;
  color: var(--color-teak);
  font-weight: 600;
}

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

/* Map Mock Container */
.showroom-map-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(120, 53, 15, 0.08);
}

.map-embed {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  background: #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-muted);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(#CBD5E1 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.map-pin {
  background: var(--color-teak);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 0.5rem;
}

/* Legal Content Page Styles */
.legal-page {
  padding: 8rem 0 5rem;
  background: var(--color-white);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-sand-muted);
}

.legal-title {
  font-size: 2.5rem;
  color: var(--color-teak-dark);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--color-slate-muted);
  font-size: 0.9rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--color-teak);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #F1F5F9;
}

.legal-content h3 {
  font-size: 1.2rem;
  color: var(--color-charcoal);
  margin: 1.2rem 0 0.6rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
  color: var(--color-charcoal-light);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-box {
  background: var(--color-sand-light);
  border-left: 4px solid var(--color-teak);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* GDPR Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.96);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 1.25rem 0;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
}

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

.cookie-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

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

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 0.55rem 1.2rem;
  background: var(--color-teak-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-cookie-decline {
  padding: 0.55rem 1.2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--color-teak-dark);
  color: var(--color-sand-light);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(254, 243, 199, 0.1);
}

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

.footer-about p {
  color: rgba(254, 243, 199, 0.75);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  color: var(--color-sand);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

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

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

.footer-links a {
  color: rgba(254, 243, 199, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-sand);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(254, 243, 199, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(254, 243, 199, 0.6);
}

/* Scroll Reveal Base Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .highlights-grid, .crafts-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-links.open {
    clip-path: circle(140% at 100% 0);
  }
  .mobile-toggle {
    display: block;
  }
  .highlights-grid, .crafts-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-card-floating {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 1rem;
  }
}
