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

:root {
  --deep-ocean: #1a2a3a;
  --coastal-blue: #8ebbc4;
  --mist-blue: #d0e1e1;
  --sage-green: #6b8e78;
  --sand-beige: #f5f1e8;
  --blush-rose: #c98c8c;
  --accent-gold: #b08d57;

  --bg-main: #fdfcf9;
  --bg-accent: #f4f7f6;
  --text-main: #2a2a2a;
  --text-muted: #5a5a5a;
  --white: #ffffff;

  --glass-white: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --border-subtle: rgba(107, 142, 120, 0.18);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.08);

  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(142, 187, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(201, 140, 140, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--deep-ocean);
}

.cinzel {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

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

a:hover {
  color: var(--blush-rose);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

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

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: var(--transition-fast);
}

.nav-logo-img:hover {
  opacity: 0.8;
}

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

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  padding: 1.5rem 0;
}

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

/* ─── Navigation Dropdown ────────────────────────────────────── */
.nav-links > li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  min-width: 480px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-category h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--deep-ocean);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--accent-gold-soft);
  padding-bottom: 0.5rem;
}

.dropdown-category ul {
  list-style: none;
}

.dropdown-category ul li {
  margin-bottom: 0.75rem;
}

.dropdown-category a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  padding: 0;
}

.dropdown-category a:hover {
  color: var(--sage-green);
  transform: translateX(5px);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background-color: var(--bg-accent);
  background-image: url('/branding/hero_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 246, 0.75);
  background-image: url('/branding/bg_pattern.png');
  background-size: 600px;
  background-blend-mode: overlay;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to top, var(--bg-main), transparent);
  z-index: 1;
}

.hero-content {
  max-width: 960px;
  z-index: 2;
  position: relative;
}

.hero-logo {
  max-width: 320px;
  width: 60%;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.2s ease-out;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: transparent;
  color: var(--deep-ocean);
  border: 1px solid var(--deep-ocean);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--deep-ocean);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage-green);
  border-color: var(--sage-green);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--bg-accent);
  border-color: var(--sage-green);
  color: var(--sage-green);
}

/* ─── Section Typography ──────────────────────────────────────── */
.intro {
  padding: 13rem 0;
  text-align: center;
}

.eyebrow {
  font-family: 'Cinzel', serif;
  color: var(--sage-green);
  letter-spacing: 6px;
  font-size: 0.62rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
}

.section-tag {
  font-family: 'Cinzel', serif;
  color: var(--accent-gold);
  letter-spacing: 5px;
  font-size: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 3.8rem;
  margin-bottom: 2.5rem;
  line-height: 1.1;
  color: var(--deep-ocean);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
  font-style: italic;
}

.text-link {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.text-link:hover {
  color: var(--sage-green);
}

/* ─── Page Header (Shop, About, etc.) ────────────────────────── */
.page-header {
  padding: 14rem 0 7rem;
  background: var(--bg-accent);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

/* ─── Collections Grid ───────────────────────────────────────── */
.collections {
  padding: 10rem 0;
  background: var(--bg-accent);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 4rem;
}

.collection-card {
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.collection-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-medium);
  border-color: var(--mist-blue);
}

.collection-card .card-img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  overflow: hidden;
}

.collection-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.collection-card:hover .card-img img {
  transform: scale(1.05);
}

.card-tag {
  color: var(--blush-rose);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Product Grid ───────────────────────────────────────────── */
.featured-products, .shop-section {
  padding: 10rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.product-card {
  text-align: left;
  transition: var(--transition);
  background: var(--white);
  padding: 1rem;
  border: 1px solid transparent;
  display: block;
}

.product-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.product-card .image-wrap {
  aspect-ratio: 1;
  background: var(--bg-accent);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--deep-ocean);
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
}

.product-category {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  color: var(--blush-rose);
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.price {
  font-family: 'Raleway', sans-serif;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Shop Filter ────────────────────────────────────────────── */
.shop-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* ─── Product Detail Page ────────────────────────────────────── */
.product-main {
  padding: 12rem 0 8rem;
}

.breadcrumb {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--text-muted);
  margin-right: 10px;
}

.breadcrumb a:hover {
  color: var(--sage-green);
}

.breadcrumb span {
  margin: 0 10px;
  opacity: 0.4;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 7rem;
  align-items: start;
}

.product-gallery .image-wrap {
  aspect-ratio: 4/5;
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-info-wrap {
  position: sticky;
  top: 130px;
}

.product-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  color: var(--blush-rose);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.product-info-wrap h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.price-large {
  display: block;
  font-size: 1.3rem;
  color: var(--sage-green);
  margin-bottom: 2.5rem;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 1px;
}

.product-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 480px;
  line-height: 1.9;
}

.meta-box {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-top: 2rem;
}

.meta-box h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--deep-ocean);
  margin-bottom: 1.25rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.meta-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-list li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meta-list li::before {
  content: '—';
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ─── Values Section ─────────────────────────────────────────── */
.values {
  padding: 12rem 0;
  background: var(--deep-ocean);
  color: var(--white);
}

.values h2, .values .eyebrow {
  color: var(--coastal-blue);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6rem;
}

.value-item { text-align: left; }

.value-icon {
  font-size: 2.2rem;
  color: var(--coastal-blue);
  margin-bottom: 2rem;
  display: block;
}

.value-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.value-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

/* ─── Newsletter ─────────────────────────────────────────────── */
.newsletter-section {
  padding: 14rem 0;
  background: var(--bg-main);
}

.newsletter-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-card h2 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.subhead {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 3.5rem;
}

.newsletter-form input {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--deep-ocean);
  background: transparent;
  padding: 1.25rem 0.5rem;
  font-size: 1rem;
  font-family: 'Raleway', sans-serif;
  outline: none;
  color: var(--text-main);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 10rem 0 5rem;
  background: var(--bg-accent);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 7rem;
  margin-bottom: 8rem;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.footer-brand-info p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-nav h4, .footer-social h4 {
  font-family: 'Cinzel', serif;
  color: var(--deep-ocean);
  margin-bottom: 2.5rem;
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

.footer-nav ul li { margin-bottom: 1.25rem; }

.footer-nav a, .social-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-nav a:hover, .social-links a:hover {
  color: var(--sage-green);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
  letter-spacing: 1px;
}

/* ─── About Page ─────────────────────────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8rem;
  padding: 8rem 0;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 2rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact-section {
  padding: 8rem 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

/* ─── Animations ─────────────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(36px);
}

.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback if JS fails */
.no-js .animate,
.animate:not(.visible) {
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.5s;
}

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

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 4rem; }
  .product-info-wrap { position: static; }
}

@media (max-width: 900px) {
  .container { padding: 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
  .newsletter-form { flex-direction: column; }
  .section-title { font-size: 2.8rem; }
  .nav-links { display: none; }
  .about-content { grid-template-columns: 1fr; gap: 4rem; }
  .collections-grid { grid-template-columns: 1fr; }
}

@media print {
  nav, footer, .hero-actions, .btn { display: none; }
  .product-main { padding: 2rem 0; }
  .product-detail-layout { grid-template-columns: 1fr; }
}
