/* ============================================================
   ScentcraftV2 — DNN Skin Stylesheet
   Design: Scentcraft Atelier luxury perfume brand
   All selectors prefixed sc- to avoid DNN collisions
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --sc-header-bg:    #154654;
  --sc-hero-top:     #6A9699;
  --sc-hero-mid:     #5A8A8E;
  --sc-hero-low:     #4A7A7E;
  --sc-footer-bg:    #154654;
  --sc-footer-low:   #0F3A48;
  --sc-teal:         #4A6E79;
  --sc-teal-dark:    #2A5A65;
  --sc-olive:        #92A55A;
  --sc-olive-dark:   #6A8030;
  --sc-white:        #EAF3F4;
  --sc-off-white:    #F7F9FA;
  --sc-text-dark:    #1A3040;
  --sc-text-light:   #EAF3F4;
  --sc-font-serif:   'Playfair Display', Georgia, serif;
  --sc-font-sans:    'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Global margin reset ── */
body {
  margin: 0;
  padding: 0;
}

/* ── DNN outer wrapper reset ── */
#dnn, #dnnWrapper, .dnnWrapper,
#ControlBar_ControlPanel ~ div,
form#Form {
  margin: 0;
  padding: 0;
}

/* ── Reset (scoped) ── */
.sc-wrapper *,
.sc-wrapper *::before,
.sc-wrapper *::after {
  box-sizing: border-box;
}

.sc-wrapper {
  font-family: var(--sc-font-sans);
  color: var(--sc-text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--sc-header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.sc-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.sc-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

/* DNN injects a <span> wrapping the logo image */
.sc-logo .SkinObject,
.sc-logo img {
  height: 42px;
  width: auto;
}

.sc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sc-brand-name {
  font-family: var(--sc-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sc-white);
  letter-spacing: 0.3px;
}

.sc-brand-tagline {
  font-size: 0.65rem;
  color: rgba(234,243,244,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Desktop nav — fills remaining space */
.sc-nav-desktop {
  flex: 1;
}

.sc-desktop-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.sc-menu-item {
  position: relative;
}

.sc-menu-item > a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--sc-white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.sc-menu-item > a:hover,
.sc-menu-item.sc-selected > a {
  color: #fff;
  border-bottom-color: rgba(234,243,244,0.8);
}

.sc-dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 3px;
  vertical-align: middle;
}

/* Dropdown submenu */
.sc-submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--sc-header-bg);
  min-width: 180px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border-top: 2px solid var(--sc-teal);
  display: none;
  z-index: 200;
}

.sc-has-children:hover .sc-submenu,
.sc-has-children:focus-within .sc-submenu {
  display: block;
}

.sc-submenu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--sc-white);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s;
}

.sc-submenu li a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Header user/login controls */
.sc-header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sc-header-user a,
.sc-header-user span {
  color: rgba(234,243,244,0.8);
  font-size: 0.8rem;
  text-decoration: none;
}

/* Mobile toggle button */
.sc-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.sc-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--sc-white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.sc-mobile-toggle.sc-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-mobile-toggle.sc-active span:nth-child(2) { opacity: 0; }
.sc-mobile-toggle.sc-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.sc-nav-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--sc-header-bg);
}

.sc-nav-mobile.sc-open {
  max-height: 600px;
}

.sc-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.sc-mobile-item > a {
  display: block;
  padding: 0.75rem 2rem;
  color: var(--sc-white);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sc-mobile-expand {
  position: absolute;
  right: 1.5rem;
  top: 0.6rem;
  background: none;
  border: none;
  color: var(--sc-white);
  cursor: pointer;
  font-size: 1rem;
}

.sc-mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.2);
  display: none;
}

.sc-mobile-item.sc-expanded .sc-mobile-submenu {
  display: block;
}

.sc-mobile-submenu li a {
  display: block;
  padding: 0.6rem 3rem;
  color: rgba(234,243,244,0.85);
  text-decoration: none;
  font-size: 0.88rem;
}

.sc-back-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 2rem;
  background: none;
  border: none;
  color: var(--sc-olive);
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.sc-hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 340px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.sc-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* Overlay — sits over the left half of the hero image */
.sc-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  align-items: center;
  padding: 3rem 2rem 3rem 5%;
}

/* Left column */
.sc-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  color: var(--sc-text-light);
}

.sc-bottle-icon {
  flex-shrink: 0;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.sc-hero-text {
  color: var(--sc-text-light);
}

.sc-hero-title {
  font-family: var(--sc-font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sc-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.sc-hero-subtitle em {
  font-style: italic;
}

.sc-hero-divider {
  width: 90px;
  border: none;
  border-top: 2px solid rgba(234,243,244,0.6);
  margin: 1rem 0 1.25rem;
}

.sc-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.sc-hero-tagline {
  font-size: 1rem;
  font-style: italic;
  margin: 0 0 2rem;
  opacity: 0.8;
}

.sc-cta-btn {
  display: inline-block;
  background-color: rgba(255,255,255,0.92);
  color: var(--sc-teal-dark);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sc-cta-btn:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Right column — flower */
.sc-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sc-flower {
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3));
  animation: sc-float 4s ease-in-out infinite;
}

@keyframes sc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* ============================================================
   PRODUCT SHOWCASE
   ============================================================ */
.sc-products {
  background-color: var(--sc-off-white);
  padding: 3.5rem 2rem;
}

.sc-products-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sc-home-pane {
  flex: 1;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* DNN modules in HomePane — style as product circles */
.sc-home-pane .DnnModule,
.sc-home-pane .dnnModule {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
}

.sc-home-pane img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sc-home-pane img:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(0,0,0,0.2);
}

/* Arrow buttons */
.sc-arrow {
  background: none;
  border: 2px solid var(--sc-teal);
  color: var(--sc-teal);
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sc-arrow:hover {
  background-color: var(--sc-teal);
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.sc-main {
  flex: 1;
  background-color: #fff;
}

.sc-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Style DNN content within ContentPane */
.sc-content-pane h1,
.sc-content-pane h2,
.sc-content-pane h3,
.sc-content-pane h4 {
  font-family: var(--sc-font-serif);
  color: var(--sc-teal);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sc-content-pane h1 {
  font-size: 2.25rem;
  border-bottom: 3px solid var(--sc-teal);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sc-content-pane h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--sc-olive);
  padding-bottom: 0.4rem;
}

.sc-content-pane h3 { font-size: 1.375rem; color: var(--sc-teal-dark); }
.sc-content-pane h4 { font-size: 1.125rem; }

.sc-content-pane p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #333;
}

.sc-content-pane a {
  color: var(--sc-teal);
  text-decoration: none;
  border-bottom: 1px solid var(--sc-teal);
  transition: color 0.2s;
}

.sc-content-pane a:hover {
  color: var(--sc-teal-dark);
  border-bottom-color: var(--sc-teal-dark);
}

.sc-content-pane img {
  max-width: 100%;
  height: auto;
}

/* DNN module container */
.sc-content-pane .DnnModule,
.sc-content-pane .dnnModule {
  background: var(--sc-off-white);
  border-left: 4px solid var(--sc-teal);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.sc-footer {
  background: linear-gradient(180deg, var(--sc-footer-bg) 0%, var(--sc-footer-low) 100%);
  color: var(--sc-text-light);
  padding: 3rem 2rem 0;
  margin-top: auto;
}

.sc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

/* Footer logo */
.sc-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sc-footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sc-footer-brand-name {
  font-family: var(--sc-font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sc-white);
}

.sc-footer-brand-tagline {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(234,243,244,0.6);
}

.sc-footer-email {
  font-size: 0.85rem;
  color: rgba(234,243,244,0.75);
  margin: 0;
}

/* Footer center nav */
.sc-footer-menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sc-footer-menu li {
  margin-bottom: 0.5rem;
  position: relative;
}

.sc-footer-menu a {
  color: rgba(234,243,244,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-footer-menu a:hover {
  color: #fff;
}

.sc-footer-menu .sc-selected > a {
  color: #fff;
  font-weight: 600;
}

.sc-footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sc-footer-legal a,
.sc-footer-legal span {
  font-size: 0.8rem;
  color: rgba(234,243,244,0.6);
  text-decoration: none;
}

.sc-footer-legal a:hover {
  color: var(--sc-white);
}

/* Footer right — newsletter */
.sc-newsletter-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sc-newsletter-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sc-white);
}

.sc-footer-pane:not(:empty) {
  margin-bottom: 1rem;
}

.sc-newsletter-form {
  display: flex;
  margin-top: 0.75rem;
  border: 1px solid rgba(234,243,244,0.25);
}

.sc-newsletter-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--sc-white);
  font-size: 0.88rem;
  outline: none;
}

.sc-newsletter-input::placeholder {
  color: rgba(234,243,244,0.5);
}

.sc-newsletter-input:focus {
  background: rgba(255,255,255,0.14);
}

.sc-newsletter-btn {
  padding: 0.65rem 1rem;
  background-color: var(--sc-teal);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}

.sc-newsletter-btn:hover {
  background-color: var(--sc-teal-dark);
}

/* Footer bottom bar */
.sc-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(234,243,244,0.55);
}

.sc-footer-bottom a,
.sc-footer-bottom span {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   DNN ADMIN / EDIT-MODE OVERRIDES
   ============================================================ */
#ControlBar_ControlPanel,
.dnnControlPanelBar {
  position: relative;
  z-index: 9999;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .sc-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .sc-hero-left {
    flex-direction: column;
    align-items: center;
  }

  .sc-hero-right {
    display: none;
  }

  .sc-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .sc-footer-right {
    grid-column: span 2;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .sc-nav-desktop { display: none; }
  .sc-mobile-toggle { display: flex; }

  .sc-header-inner {
    padding: 0.75rem 1rem;
  }

  .sc-hero {
    min-height: 360px;
  }

  .sc-hero-content {
    padding: 2.5rem 1rem;
  }

  .sc-hero-title {
    font-size: 2.25rem;
  }

  .sc-hero-subtitle {
    font-size: 1rem;
  }

  .sc-products {
    padding: 2rem 1rem;
  }

  .sc-products-inner {
    gap: 0.75rem;
  }

  .sc-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .sc-home-pane img {
    width: 130px;
    height: 130px;
  }

  .sc-main-inner {
    padding: 2rem 1rem;
  }

  .sc-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sc-footer-right {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .sc-brand-tagline { display: none; }

  .sc-hero-title { font-size: 1.9rem; }

  .sc-products-inner {
    flex-direction: column;
  }

  .sc-arrow { display: none; }

  .sc-home-pane {
    gap: 1.25rem;
  }
}
