/**
 * Deries Garment — Warm Editorial Theme
 * Overrides for deries-garment.html only.
 * Loaded AFTER css/style.css to override base colors.
 */

/* ---- Design Tokens ---- */
:root {
  --dg-bg:        #fbf8f3;
  --dg-bg-alt:    #f2ebe1;
  --dg-surface:   #fffdf9;
  --dg-border:    #e7ddd1;
  --dg-accent:    #866541;
  --dg-accent-dk: #60472f;
  --dg-accent-lt: #96764f;
  --dg-heading:   #382a20;
  --dg-text:      #57483c;
  --dg-text-lt:   #796b5e;
  --dg-whatsapp:  #167044;
  --dg-whatsapp-hover: #105a36;
  --dg-radius:    14px;
  --dg-shadow:    0 8px 28px rgba(56, 42, 32, 0.07);
  --dg-shadow-hover: 0 16px 40px rgba(56, 42, 32, 0.13);
}

/* ---- Base Overrides ---- */
body.deries-page {
  font-family: "Open Sans", sans-serif;
  color: var(--dg-text);
  background: var(--dg-bg);
}

body.deries-page h1,
body.deries-page h2,
body.deries-page h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--dg-heading);
}

body.deries-page h4,
body.deries-page h5,
body.deries-page h6 {
  font-family: "Raleway", sans-serif;
  color: var(--dg-heading);
}

body.deries-page a {
  color: var(--dg-accent);
}

body.deries-page a:hover {
  color: var(--dg-accent-dk);
}

/* ---- Horizontal Top Navbar ---- */
.dg-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dg-border);
  padding: 0 24px;
  transition: box-shadow 0.3s ease;
}

.dg-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(61, 46, 31, 0.08);
}

.dg-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

body.deries-page .dg-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid var(--dg-accent);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dg-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

body.deries-page .dg-nav-back:hover {
  background: var(--dg-accent);
  color: #fff;
  transform: translateY(-1px);
}

.dg-nav-back:focus-visible,
.dg-nav-links a:focus-visible,
.dg-mobile-toggle:focus-visible,
.dg-btn:focus-visible {
  outline: 3px solid var(--dg-accent-lt);
  outline-offset: 3px;
}

.dg-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.deries-page .dg-nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dg-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

body.deries-page .dg-nav-links a:hover {
  background: var(--dg-bg-alt);
  color: var(--dg-accent);
}

.dg-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--dg-whatsapp);
  color: #fff !important;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.dg-nav-cta:hover {
  background: var(--dg-whatsapp-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.dg-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dg-heading);
  cursor: pointer;
  padding: 4px;
}

.dg-mobile-toggle:hover {
  color: var(--dg-accent);
}

@media (max-width: 991px) {
  .dg-mobile-toggle {
    display: block;
  }

  .dg-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--dg-border);
    gap: 4px;
  }

  .dg-nav-links.open {
    display: flex;
  }

  .dg-nav-links a {
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* ---- Remove side nav margin for deries page ---- */
body.deries-page #main {
  margin-left: 0;
}

/* ---- Hero Section ---- */
.dg-hero {
  position: relative;
  padding: 138px 0 92px;
  background:
    radial-gradient(circle at 83% 34%, rgba(173, 141, 101, 0.13), transparent 31%),
    linear-gradient(135deg, var(--dg-bg) 0%, var(--dg-bg-alt) 100%);
  overflow: hidden;
}

.dg-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
  background: var(--dg-bg-alt);
  border-radius: 0 0 0 112px;
  z-index: 0;
  opacity: 0.5;
}

.dg-hero .container {
  position: relative;
  z-index: 1;
}

.dg-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139, 111, 71, 0.1);
  border: 1px solid rgba(139, 111, 71, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dg-accent);
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.dg-hero h1 {
  font-size: clamp(48px, 4.7vw, 66px);
  font-weight: 600;
  line-height: 1.02;
  color: var(--dg-heading);
  max-width: 660px;
  margin-bottom: 22px;
}

.dg-hero-sub {
  font-size: 16px;
  line-height: 1.85;
  color: var(--dg-text);
  max-width: 620px;
  margin-bottom: 28px;
}

.dg-media-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  background:
    radial-gradient(ellipse at 28% 30%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(145deg, #e9dfd2, #f6f0e8 58%, #ded0bd);
  border: 1px solid rgba(96, 71, 47, 0.12);
  border-radius: var(--dg-radius);
  box-shadow: var(--dg-shadow);
}

.dg-hero-frame {
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

.dg-hero-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.25s ease;
}

/* ---- Hero Slider (size guide images, crossfade) ---- */
.dg-hero-frame.dg-slider {
  max-width: 500px;
  max-height: none;
  margin-inline: auto;
}

.dg-slides {
  position: absolute;
  inset: 0;
}

.dg-slider .dg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.dg-slider .dg-slide.is-active {
  opacity: 1;
}

.dg-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.dg-slider-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.dg-slider-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(96, 71, 47, 0.3);
  transition: background 0.25s ease, width 0.25s ease;
}

.dg-slider-dot.is-active::before {
  width: 20px;
  border-radius: 5px;
  background: var(--dg-accent);
}

.dg-slider-dot:focus-visible {
  outline: 3px solid var(--dg-accent-lt);
  outline-offset: -3px;
  border-radius: 50%;
}

.dg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Buttons ---- */
.dg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dg-btn-primary {
  background: var(--dg-whatsapp);
  color: #fff;
  border-color: var(--dg-whatsapp);
}

.dg-btn-primary:hover {
  background: var(--dg-whatsapp-hover);
  border-color: var(--dg-whatsapp-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 112, 68, 0.24);
}

.dg-btn-secondary {
  background: transparent;
  color: var(--dg-accent);
  border-color: var(--dg-accent);
}

.dg-btn-secondary:hover {
  background: var(--dg-accent);
  color: #fff;
  transform: translateY(-2px);
}

.dg-btn-on-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

.dg-btn-on-dark:hover {
  border-color: var(--dg-accent-lt);
  background: var(--dg-accent-lt);
  color: #fff;
}

body.deries-page a.dg-btn-primary,
body.deries-page a.dg-btn-primary:hover,
body.deries-page a.dg-btn-primary:focus-visible {
  color: #fff;
}

body.deries-page a.dg-btn-secondary {
  color: var(--dg-accent);
}

body.deries-page a.dg-btn-secondary:hover,
body.deries-page a.dg-btn-secondary:focus-visible {
  color: #fff;
}

body.deries-page a.dg-btn-on-dark,
body.deries-page a.dg-btn-on-dark:hover,
body.deries-page a.dg-btn-on-dark:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

/* ---- Sections General ---- */
body.deries-page .dg-section {
  padding: 80px 0;
}

body.deries-page .dg-section-alt {
  background: var(--dg-bg-alt);
}

.dg-section-title {
  text-align: center;
  padding-bottom: 36px;
}

.dg-section-title h2 {
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dg-heading);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.dg-section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--dg-accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

.dg-section-title p {
  font-size: 16px;
  color: var(--dg-text-lt);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Story Section — Two-part Cards ---- */
.dg-story-card {
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  padding: 36px 32px;
  height: 100%;
  box-shadow: var(--dg-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dg-story-card h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 16px;
}

.dg-story-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dg-text);
}

/* Transformation Pillars */
.dg-pillars {
  margin-top: 48px;
}

.dg-pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  height: 100%;
  box-shadow: var(--dg-shadow);
  transition: transform 0.3s ease;
}

.dg-pillar:hover {
  transform: translateY(-3px);
}

.dg-pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(134, 101, 65, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg-pillar-icon i {
  font-size: 22px;
  color: var(--dg-accent);
}

.dg-pillar h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dg-pillar p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dg-text);
  margin: 0;
}

/* ---- Comfort Philosophy Section ---- */
.dg-comfort {
  background: var(--dg-bg-alt);
}

.dg-comfort-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.dg-comfort-frame {
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin-inline: auto;
}

.dg-section-title-left {
  text-align: left;
  padding-bottom: 20px;
}

.dg-section-title-left h2::after {
  margin-left: 0;
}

.dg-comfort-heading {
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 18px;
  text-align: left;
}

.dg-section-title-left .dg-comfort-heading::after {
  display: none;
}

.dg-comfort-lead {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.dg-comfort-point {
  padding: 20px 0;
  border-bottom: 1px solid var(--dg-border);
}

.dg-comfort-point:last-child {
  border-bottom: none;
}

.dg-comfort-point h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dg-accent);
  margin-bottom: 6px;
}

.dg-comfort-point p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Product Cards ---- */
.dg-product-card {
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--dg-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dg-product-media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 30%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(145deg, #eee5da, #f8f3ec 58%, #e3d6c6);
}

.dg-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--dg-bg-alt);
  display: block;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.dg-media-frame.is-missing img,
.dg-product-media.is-missing img,
.dg-video-banner.is-missing video {
  opacity: 0;
}

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

.dg-product-body {
  padding: 24px;
  flex: 1;
}

.dg-product-body .product-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.product-tag-inhouse {
  background: rgba(139, 111, 71, 0.1);
  color: var(--dg-accent);
}

.product-tag-artisan {
  background: rgba(166, 137, 94, 0.12);
  color: var(--dg-accent-dk);
}

.product-tag-accessory {
  background: rgba(87, 72, 60, 0.08);
  color: var(--dg-text);
}

.dg-product-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dg-product-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dg-text);
  margin: 0;
}

/* ---- Video Banner ---- */
.dg-video-banner {
  margin: 48px 0 0;
  border-radius: var(--dg-radius);
  overflow: hidden;
  box-shadow: var(--dg-shadow);
  position: relative;
  background: var(--dg-heading);
}

.dg-video-banner video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  object-fit: cover;
  background: linear-gradient(145deg, #3c3026, #806748);
  transition: opacity 0.25s ease;
}

.dg-video-caption {
  padding: 18px 24px;
  background: var(--dg-heading);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

/* ---- Square Video Feature (vertical source, centre crop) ---- */
.dg-video-feature {
  margin-top: 48px;
}

.dg-video-square {
  margin: 0;
  max-width: 460px;
  margin-inline: auto;
}

.dg-video-square video {
  aspect-ratio: 1 / 1;
  max-height: none;
  height: auto;
  object-position: center;
}

.dg-video-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--dg-text);
  margin: 0;
}

/* ---- Process Steps ---- */
.dg-process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  height: 100%;
  box-shadow: var(--dg-shadow);
  transition: transform 0.3s ease;
}

.dg-process-step:hover {
  transform: translateY(-3px);
}

.dg-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dg-accent);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
}

.dg-process-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dg-process-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dg-text);
  margin: 0;
}

/* ---- CTA / Closing Section ---- */
.dg-cta-section {
  background: linear-gradient(135deg, var(--dg-heading) 0%, #52402e 100%);
  color: #fff;
  padding: 80px 0;
}

body.deries-page .dg-cta-section h2 {
  color: #fff;
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}

.dg-cta-section h2::after {
  background: var(--dg-accent-lt);
}

.dg-cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 36px;
}

.dg-contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--dg-radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(8px);
}

body.deries-page .dg-contact-card h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dg-contact-card .contact-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.dg-contact-card .contact-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.dg-contact-card .contact-location i {
  margin-right: 4px;
}

.dg-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---- Footer override ---- */
body.deries-page #footer {
  background: var(--dg-heading);
  color: rgba(255, 255, 255, 0.7);
}

body.deries-page #footer .social-links a {
  background: var(--dg-accent);
}

body.deries-page #footer .social-links a:hover {
  background: var(--dg-accent-dk);
}

body.deries-page #footer .copyright strong span {
  color: #fff;
}

body.deries-page #footer .credits a {
  color: var(--dg-accent-lt);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .dg-hero {
    padding: 120px 0 60px;
  }

  .dg-hero h1 {
    font-size: clamp(44px, 7vw, 58px);
  }

  .dg-hero-sub {
    font-size: 15px;
  }

  .dg-hero-frame {
    max-height: 560px;
  }
}

@media (max-width: 991px) {
  .dg-navbar {
    padding: 0 16px;
  }

  body.deries-page .dg-nav-back {
    font-size: 12px;
    padding: 6px 14px;
  }

  .dg-nav-links {
    align-items: stretch;
  }

  .dg-nav-links .dg-nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .dg-hero-frame {
    aspect-ratio: 5 / 4;
    max-height: 520px;
  }

  .dg-comfort-frame {
    aspect-ratio: 5 / 4;
    max-height: 440px;
  }

  /* Size-guide images carry text, so keep them uncropped at 4:5 */
  .dg-hero-frame.dg-slider,
  .dg-comfort-frame {
    aspect-ratio: 4 / 5;
    max-height: none;
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 576px) {
  .dg-hero {
    padding: 100px 0 48px;
  }

  .dg-hero h1 {
    font-size: 42px;
  }

  .dg-eyebrow {
    font-size: 11px;
    padding: 6px 11px;
  }

  .dg-section-title h2,
  .dg-comfort-heading {
    font-size: 32px;
  }

  .dg-story-card {
    padding: 24px 20px;
  }

  .dg-pillar {
    padding: 18px;
  }

  .dg-process-step {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dg-contact-card {
    padding: 24px 20px;
  }

  .dg-product-body {
    padding: 20px;
  }

  .dg-contact-actions {
    flex-direction: column;
  }

  .dg-contact-actions .dg-btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.deries-page *,
  body.deries-page *::before,
  body.deries-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
