/* ==========================================================================
   OCEAN ART COLLECTION — LUXURY EDITORIAL STYLESHEET
   Bhadohi Master Weavers • Est. 1995
   ========================================================================== */

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

:root {
  --bg-ivory: #FAF7F2;
  --bg-ivory-light: #FDFCFA;
  --bg-linen: #F2ECE3;
  --bg-linen-deep: #E8E0D5;
  --text-charcoal: #1C1A18;
  --text-muted: #615B55;
  --text-light: #8E877F;
  --border-stone: #E5DDD2;
  --border-stone-dark: #CEC4B6;
  --accent-terracotta: #A05234;
  --accent-terracotta-dark: #823E25;
  --accent-olive: #5F6450;
  --accent-sand: #DCD3C5;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --max-width: 1280px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-ivory);
  color: var(--text-charcoal);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Selection */
::selection {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Typography */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-terracotta);
  font-weight: 600;
}

.eyebrow-pill {
  padding: 0.35rem 0.85rem;
  background: var(--bg-linen);
  border: 1px solid var(--border-stone);
  color: var(--text-muted);
}

.eyebrow-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-terracotta);
}

h1, h2, h3, h4, .headline {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-charcoal);
}

.h1-hero {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: -0.015em;
}

.h2-section {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
}

.h3-card {
  font-size: 1.65rem;
}

/* Announcement Bar */
.top-bar {
  background: #181615;
  color: #D6CEC3;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid #2B2724;
}

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

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
  }
  .top-bar-inner span:first-child,
  .top-bar-inner span:last-child {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
  }
}

.top-bar a:hover {
  color: #FFFFFF;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-stone);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .header-inner {
    height: 4.25rem;
    gap: 0.75rem;
  }
}

/* Wordmark Logo */
.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.06em, 0.4vw, 0.12em);
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.15;
  transition: var(--transition);
  white-space: nowrap;
}

.logo:hover .logo-title {
  color: var(--accent-terracotta);
}

.logo-sub {
  font-size: clamp(0.5rem, 0.75vw, 0.58rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-light);
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav Menu */
.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
  margin-left: auto;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: clamp(0.75rem, 0.85vw, 0.825rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-charcoal);
  padding: 0.45rem 0;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-terracotta);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 19rem;
  background: var(--bg-ivory-light);
  border: 1px solid var(--border-stone);
  box-shadow: 0 16px 32px rgba(28, 26, 24, 0.08);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 60;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-linen);
}

.dropdown-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-charcoal);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--accent-terracotta);
}

.dropdown-item-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 0.95rem 1.85rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text-charcoal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.btn-terracotta {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.btn-terracotta:hover {
  background: var(--accent-terracotta-dark);
  color: #FFFFFF;
}

.btn-outline {
  border: 1px solid var(--text-charcoal);
  color: var(--text-charcoal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text-charcoal);
  color: #FFFFFF;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-stone);
  border-radius: 4px;
  color: var(--text-charcoal);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--bg-linen);
  border-color: var(--text-charcoal);
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border-stone);
  padding: 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(229, 221, 210, 0.4);
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
  border-bottom: 1px solid var(--border-stone);
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-stone);
  border-bottom: 1px solid var(--border-stone);
  margin-top: 0.5rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  color: var(--text-charcoal);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 0.65rem;
    padding: 0.95rem 0;
  }
  .stat-value {
    font-size: 1.25rem;
    white-space: nowrap;
  }
  .stat-label {
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
  }
}

.hero-visual {
  position: relative;
}

.hero-frame {
  background: var(--bg-linen);
  padding: 0.85rem;
  border: 1px solid var(--border-stone);
  box-shadow: 0 20px 40px rgba(28, 26, 24, 0.06);
}

.hero-frame-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-frame:hover .hero-frame-img {
  transform: scale(1.025);
}

.hero-badge-float {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--bg-ivory);
  border: 1px solid var(--border-stone);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 24px rgba(28, 26, 24, 0.08);
  display: none;
}

@media (min-width: 640px) {
  .hero-badge-float {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* Editorial Statement */
.statement-section {
  padding: 6rem 0;
  background: var(--bg-linen);
  border-bottom: 1px solid var(--border-stone);
  text-align: center;
}

.statement-content {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.statement-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  line-height: 1.35;
  color: var(--text-charcoal);
}

/* Disciplines Section */
.disciplines-section {
  padding: 6rem 0 8rem;
  border-bottom: 1px solid var(--border-stone);
}

.section-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-stone);
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
  }
}

.discipline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.discipline-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .discipline-item {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4.5rem;
  }

  .discipline-item.reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .discipline-item.reverse .discipline-media {
    order: 2;
  }

  .discipline-item.reverse .discipline-info {
    order: 1;
  }
}

.discipline-frame {
  background: var(--bg-linen);
  padding: 0.75rem;
  border: 1px solid var(--border-stone);
}

.discipline-frame img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.discipline-frame:hover img {
  transform: scale(1.03);
}

.specs-mini {
  border-top: 1px solid var(--border-stone);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.specs-mini-row {
  display: flex;
  justify-content: space-between;
}

.specs-mini-row span:last-child {
  font-weight: 500;
  color: var(--text-charcoal);
}

/* Materials Grid */
.materials-section {
  padding: 6rem 0;
  background: var(--bg-linen);
  border-bottom: 1px solid var(--border-stone);
}

.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.material-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-stone);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition);
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(28, 26, 24, 0.05);
}

/* Gallery & Inventory Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rug-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-stone);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.rug-card:hover {
  box-shadow: 0 16px 32px rgba(28, 26, 24, 0.08);
  border-color: var(--border-stone-dark);
}

.rug-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-linen);
  overflow: hidden;
  cursor: pointer;
}

.rug-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.rug-category-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: rgba(28, 26, 24, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rug-body {
  padding: 1.5rem;
}

.rug-body .h3-card.rug-detail-trigger {
  transition: var(--transition);
}

.rug-body .h3-card.rug-detail-trigger:hover {
  color: var(--accent-terracotta);
}

.rug-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  border: 1px solid var(--border-stone);
  background: var(--bg-ivory);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.filter-tab:hover, .filter-tab.active {
  background: var(--text-charcoal);
  color: #FFFFFF;
  border-color: var(--text-charcoal);
}

/* B2B Contract Banner */
.contract-banner {
  background: #181615;
  color: #FAF7F2;
  padding: 6rem 0;
}

.contract-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contract-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
}

.contract-box {
  background: #24211F;
  border: 1px solid #36322E;
  padding: 2.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-linen);
  border: 1px solid var(--border-stone);
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-charcoal);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--text-charcoal);
}

.form-error {
  font-size: 0.6875rem;
  color: var(--accent-terracotta);
  margin-top: 0.35rem;
  display: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 26, 24, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-ivory);
  border: 1px solid var(--border-stone);
  max-width: 54rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-charcoal);
  z-index: 10;
}

/* Footer */
.site-footer {
  background: #161413;
  color: #D6CEC3;
  padding: 5rem 0 2rem;
  border-top: 1px solid #2B2724;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #2B2724;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.78125rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.6875rem;
  color: #8E877F;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}
