/* =============================================
   FLOOORIVA RUGS — style.css
   Palette: Ivory white, deep charcoal, warm gold
   Typography: Cormorant Garamond (display) + DM Sans (body)
   ============================================= */

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

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

:root {
  --ivory:     #F9F7F2;
  --ivory-dark:#F0EDE5;
  --gold:      #B8965A;
  --gold-light:#D4B07E;
  --charcoal:  #1A1A1A;
  --charcoal-mid: #3A3A3A;
  --warm-grey: #8A8278;
  --white:     #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1240px;
  --section-pad: 100px 40px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 150, 90, 0.15);
  transition: padding var(--transition);
}

.nav.scrolled { padding: 16px 48px; }

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}

.nav__logo span { color: var(--gold); }

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--charcoal-mid);
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--gold); }

.nav__cta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 80px;
  background: var(--ivory);
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.5vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 15px;
  color: var(--warm-grey);
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero__actions { display: flex; gap: 20px; align-items: center; }

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--gold); }

.btn-ghost {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--charcoal-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.btn-ghost:hover { color: var(--gold); }

.btn-ghost::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-ghost:hover::after { transform: translateX(4px); }

.hero__right {
  position: relative;
  overflow: hidden;
}

.hero__right img {
  position: absolute;
  inset: 0;
  transition: transform 8s ease;
}

.hero__right:hover img { transform: scale(1.03); }

.hero__badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(249, 247, 242, 0.95);
  padding: 16px 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  backdrop-filter: blur(8px);
}

.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  text-transform: none;
}

/* ── Section Headers ── */
.section-header { margin-bottom: 60px; }

.section-header__eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
}

.section-header__title em { font-style: italic; color: var(--gold); }

.section-header__body {
  font-size: 15px;
  color: var(--warm-grey);
  line-height: 1.8;
  max-width: 520px;
  margin-top: 16px;
  font-weight: 300;
}

/* ── Gold Divider ── */
.gold-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

/* ── About Section ── */
.about {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.about__stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-top: 6px;
  font-weight: 400;
}

.about__image-wrap {
  position: relative;
  height: 580px;
}

.about__image-main {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about__image-accent {
  position: absolute;
  width: 55%;
  height: 45%;
  bottom: -32px;
  right: -32px;
  overflow: hidden;
  border: 6px solid var(--ivory);
}

/* ── Products ── */
.products {
  background: var(--charcoal);
  padding: var(--section-pad);
}

.products__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.products .section-header__title { color: var(--ivory); }
.products .section-header__body { color: rgba(249,247,242,0.6); }

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

.product-cat {
  position: relative;
  height: 520px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.product-cat img {
  transition: transform var(--transition);
  transform: scale(1.02);
}

.product-cat:hover img { transform: scale(1.08); }

.product-cat__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.1) 60%);
  transition: background var(--transition);
}

.product-cat:hover .product-cat__overlay {
  background: linear-gradient(to top, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.3) 60%);
}

.product-cat__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 32px;
}

.product-cat__num {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-cat__name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 12px;
}

.product-cat__cta {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.product-cat:hover .product-cat__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Process ── */
.process {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.process__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  overflow: hidden;
}

.process__item--full {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.process__media {
  height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.process__item--full .process__media { height: 100%; }

.process__media video,
.process__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process__body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process__step-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}

.process__step-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.2;
}

.process__step-desc {
  font-size: 14px;
  color: var(--warm-grey);
  line-height: 1.8;
  font-weight: 300;
}

/* ── Owner ── */
.owner {
  background: var(--ivory-dark);
  padding: var(--section-pad);
}

.owner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.owner__photo {
  position: relative;
}

.owner__photo-frame {
  height: 480px;
  overflow: hidden;
  background: var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--ivory-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.owner__photo-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.2;
}

.owner__photo-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  opacity: 0.3;
}

.owner__content { padding-top: 8px; }

.owner__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 36px;
}

.owner__quote::before {
  content: '\201C';
  color: var(--gold);
  font-size: 1.2em;
}

.owner__quote::after {
  content: '\201D';
  color: var(--gold);
  font-size: 1.2em;
}

.owner__bio {
  font-size: 15px;
  color: var(--warm-grey);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 32px;
}

.owner__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
}

.owner__title-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* ── Contact / Footer ── */
.contact {
  background: var(--charcoal);
  padding: 80px 40px;
  text-align: center;
}

.contact__logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.contact__logo span { color: var(--gold); }

.contact__tagline {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249,247,242,0.4);
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact__item-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact__item-value {
  font-size: 14px;
  color: rgba(249,247,242,0.7);
  font-weight: 300;
}

.contact__divider {
  width: 1px;
  height: 60px;
  background: rgba(184,150,90,0.3);
  align-self: center;
}

.contact__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  font-size: 12px;
  color: rgba(249,247,242,0.25);
  letter-spacing: 0.05em;
}

/* ── Category Pages ── */
.cat-hero {
  height: 480px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
}

.cat-hero img {
  position: absolute;
  inset: 0;
}

.cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.2) 60%);
}

.cat-hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 80px;
  color: var(--ivory);
}

.cat-hero__back {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  transition: gap var(--transition);
}

.cat-hero__back:hover { gap: 12px; }
.cat-hero__back::before { content: '←'; }

.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
}

.cat-hero__subtitle {
  font-size: 14px;
  color: rgba(249,247,242,0.6);
  margin-top: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.cat-products {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}

.cat-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition);
}

.product-card:hover { transform: translateY(-4px); }

.product-card__image {
  height: 320px;
  overflow: hidden;
}

.product-card__image img {
  transition: transform var(--transition);
}

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

.product-card__body {
  padding: 24px 28px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 13px;
  color: var(--warm-grey);
  line-height: 1.7;
  font-weight: 300;
}

.product-card__tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,150,90,0.4);
  padding: 4px 12px;
}

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__left { padding: 80px 32px 48px; }
  .hero__right { height: 480px; position: relative; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__image-wrap { height: 400px; }
  .products__grid { grid-template-columns: 1fr; }
  .product-cat { height: 360px; }
  .process__grid { grid-template-columns: 1fr; }
  .process__item--full { grid-column: span 1; grid-template-columns: 1fr; }
  .process__item--full .process__media { height: 280px; }
  .owner__inner { grid-template-columns: 1fr; gap: 40px; }
  .nav { padding: 20px 24px; }
  .nav__links { display: none; }
  .cat-hero__content { padding: 40px 32px; }
  .cat-products { padding: 48px 24px; }
}