/*
Theme Name: Dermalogical Showcase
Theme URI: https://example.com/
Author: OpenAI
Description: Minimal responsive WordPress theme for a skincare/product showcase website. Includes editable hero, products, video, about, blog, contact and CTA sections. No e-commerce functionality.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dermalogical-showcase
*/

:root {
  --ds-bg: #f7f5f2;
  --ds-surface: #ffffff;
  --ds-text: #171717;
  --ds-muted: #6f6b67;
  --ds-line: #e8e2dc;
  --ds-primary: #1f463c;
  --ds-accent: #d9c1a7;
  --ds-radius: 22px;
  --ds-shadow: 0 16px 50px rgba(28, 24, 20, 0.08);
  --ds-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ds-primary); }
button, input, textarea, select { font: inherit; }

.ds-container { width: min(calc(100% - 36px), var(--ds-max)); margin-inline: auto; }
.ds-section { padding: 88px 0; }
.ds-section--tight { padding: 58px 0; }
.ds-section--white { background: var(--ds-surface); }
.ds-section--dark { background: #16241f; color: #fff; }
.ds-eyebrow { margin: 0 0 12px; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ds-primary); }
.ds-section--dark .ds-eyebrow { color: #d9c1a7; }
.ds-title { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.ds-title--small { font-size: clamp(1.75rem, 3vw, 3rem); }
.ds-lead { max-width: 680px; margin: 18px 0 0; color: var(--ds-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.ds-section--dark .ds-lead { color: rgba(255,255,255,.72); }
.ds-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.ds-heading-row .ds-lead { margin-top: 12px; }
.ds-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ds-primary); }
.ds-link::after { content: "→"; transition: transform .2s ease; }
.ds-link:hover::after { transform: translateX(4px); }

.ds-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ds-primary); color: #fff; border: 1px solid var(--ds-primary);
  font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ds-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,70,60,.18); }
.ds-button--ghost { background: transparent; color: var(--ds-text); border-color: rgba(23,23,23,.25); }
.ds-button--ghost:hover { color: var(--ds-text); box-shadow: none; background: rgba(255,255,255,.55); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,245,242,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(232,226,220,.8); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.site-branding { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.custom-logo { max-height: 44px; width: auto; }
.site-title { font-size: 20px; line-height: 1; font-weight: 750; letter-spacing: -.03em; }
.primary-nav { justify-self: center; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; }
.primary-nav a { font-size: 14px; font-weight: 600; color: #3c3936; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ds-primary); }
.menu-toggle { display: none; background: transparent; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ds-text); transition: transform .2s ease; }
.header-cta { white-space: nowrap; }

.hero { position: relative; min-height: 760px; display: grid; align-items: end; overflow: hidden; background: #e9e3dc; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,11,.62) 0%, rgba(10,12,11,.24) 52%, rgba(10,12,11,.06) 100%); }
.hero__content { position: relative; z-index: 2; width: min(720px, 100%); padding: 130px 0 95px; color: #fff; }
.hero .ds-eyebrow { color: #f1dac2; }
.hero__title { margin: 0; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .9; letter-spacing: -.06em; font-weight: 540; }
.hero__text { max-width: 610px; margin: 24px 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .ds-button { background: #fff; border-color: #fff; color: #171717; }
.hero .ds-button:hover { color: #171717; }
.hero .ds-button--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.product-card { position: relative; background: var(--ds-surface); border-radius: var(--ds-radius); overflow: hidden; border: 1px solid var(--ds-line); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow); }
.product-card__image { aspect-ratio: 4/5; background: #efeae5; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { padding: 22px 22px 24px; }
.product-card__meta { margin: 0 0 7px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ds-primary); }
.product-card__title { margin: 0; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.product-card__excerpt { margin: 10px 0 0; color: var(--ds-muted); font-size: 14px; }
.product-card__link { margin-top: 16px; }

.ds-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.ds-split__media { border-radius: 28px; overflow: hidden; background: #ece6df; min-height: 520px; }
.ds-split__media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.ds-split__content { padding: 20px 0; }
.ds-split__content .ds-button { margin-top: 28px; }

.video-card { position: relative; overflow: hidden; border-radius: 30px; background: #111; aspect-ratio: 16/9; box-shadow: var(--ds-shadow); }
.video-card iframe, .video-card video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { width: 100%; height: 100%; min-height: 500px; display: grid; place-items: center; padding: 30px; text-align: center; color: rgba(255,255,255,.72); background: linear-gradient(135deg,#21362f,#0f1714); }

.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); overflow: hidden; }
.post-card__image { aspect-ratio: 16/10; background: #ece7e1; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__date { margin: 0 0 8px; color: var(--ds-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.post-card__title { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.post-card__excerpt { margin: 10px 0 0; font-size: 14px; color: var(--ds-muted); }

.cta-box { padding: 64px; border-radius: 34px; background: #efe6db; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; }
.cta-box .ds-lead { margin-top: 10px; }

.page-hero { padding: 110px 0 60px; }
.page-hero__inner { max-width: 840px; }
.entry-content { max-width: 840px; margin: 0 auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.15; letter-spacing: -.03em; }
.entry-content h2 { font-size: clamp(1.8rem,3vw,2.8rem); margin-top: 2.2em; }
.entry-content p, .entry-content li { color: #494541; }
.entry-content a { color: var(--ds-primary); text-decoration: underline; text-underline-offset: 3px; }

.product-single { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 72px; align-items: start; }
.product-single__image { position: sticky; top: 110px; border-radius: 28px; overflow: hidden; background: #ece7e1; }
.product-single__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.product-single__content { padding: 32px 0; }
.product-single__benefit { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #e7eee9; color: var(--ds-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-single__title { margin: 18px 0 14px; font-size: clamp(2.5rem,5vw,5.2rem); line-height: .95; letter-spacing: -.055em; }
.product-single__excerpt { color: var(--ds-muted); font-size: 1.08rem; }
.product-details { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--ds-line); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contact-panel { background: #fff; border: 1px solid var(--ds-line); border-radius: 26px; padding: 32px; }
.contact-list { display: grid; gap: 22px; margin-top: 30px; }
.contact-item small { display: block; color: var(--ds-muted); margin-bottom: 3px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--ds-line); background: #fff; border-radius: 14px; padding: 13px 14px; outline: none; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 3px rgba(31,70,60,.08); }
.form-notice { grid-column: 1/-1; padding: 12px 14px; border-radius: 12px; background: #e8f2ec; color: #235a3d; }
.form-notice--error { background: #f8e9e7; color: #8f3329; }

.site-footer { padding: 58px 0 26px; background: #141b18; color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding-bottom: 42px; }
.site-footer__brand { max-width: 420px; }
.site-footer__brand p { color: rgba(255,255,255,.62); }
.site-footer h3 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--ds-line); border-radius: 999px; background: #fff; }
.page-numbers.current { background: var(--ds-primary); color: #fff; border-color: var(--ds-primary); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 18px; right: 18px; background: #fff; border: 1px solid var(--ds-line); border-radius: 18px; box-shadow: var(--ds-shadow); padding: 18px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav ul { display: grid; gap: 6px; }
  .primary-nav a { display: block; padding: 11px 10px; }
  .product-grid, .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ds-split, .product-single, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-single__image { position: static; }
  .cta-box { grid-template-columns: 1fr; padding: 46px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1/-1; }
}

@media (max-width: 680px) {
  .ds-container { width: min(calc(100% - 28px), var(--ds-max)); }
  .ds-section { padding: 64px 0; }
  .hero { min-height: 680px; }
  .hero__overlay { background: linear-gradient(0deg, rgba(10,12,11,.7) 0%, rgba(10,12,11,.18) 82%); }
  .hero__content { padding: 120px 0 58px; }
  .hero__title { font-size: clamp(3rem,16vw,5rem); }
  .ds-heading-row { display: block; margin-bottom: 28px; }
  .ds-heading-row > .ds-link { margin-top: 18px; }
  .product-grid, .post-grid { grid-template-columns: 1fr; }
  .ds-split__media, .ds-split__media img { min-height: 380px; }
  .video-placeholder { min-height: 280px; }
  .cta-box { padding: 34px 26px; border-radius: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { display: grid; }
}
