/*
Theme Name: atomoji
Author: atomoji
Description: Light boutique WordPress theme for inspired perfumes with WooCommerce support.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: atomoji
*/

:root {
  --paper: #fbf7f1;
  --surface: #fffdf9;
  --ink: #1d2521;
  --muted: #657069;
  --line: #ded6c9;
  --sage: #6f8f7a;
  --rose: #c47d73;
  --citrus: #d3a944;
  --charcoal: #24302b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(36, 48, 43, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.9);
  border-bottom: 1px solid rgba(222, 214, 201, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 8px;
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.main-nav ul,
.footer-links ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.wp-block-button__link,
.button,
button,
input[type="submit"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(36, 48, 43, 0.16);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.soft {
  background: var(--surface);
  color: var(--ink);
  border-color: rgba(222, 214, 201, 0.8);
}

.site-main {
  flex: 1;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 247, 241, 0.96) 0%, rgba(251, 247, 241, 0.84) 36%, rgba(251, 247, 241, 0.24) 67%),
    linear-gradient(0deg, rgba(251, 247, 241, 1) 0%, rgba(251, 247, 241, 0) 34%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(44px, 8vw, 92px);
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -50px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-strip article {
  min-height: 120px;
  padding: 22px;
  background: var(--surface);
}

.hero-strip strong {
  display: block;
  margin-bottom: 8px;
}

.hero-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 62px 0;
}

.section.tinted {
  background: #eef3ea;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

.product-grid,
.notes-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card,
.note-card,
.step-card,
.page-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  overflow: hidden;
}

.product-image-link {
  display: block;
  background: var(--surface);
}

.product-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2eadf;
}

.product-visual {
  min-height: 230px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #f4ded6, #eef3ea 48%, #f6edcc);
}

.bottle {
  width: 86px;
  height: 146px;
  position: relative;
  border: 2px solid rgba(29, 37, 33, 0.18);
  border-radius: 26px 26px 12px 12px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28));
  box-shadow: inset 14px 0 24px rgba(255, 255, 255, 0.45), 0 20px 34px rgba(36, 48, 43, 0.14);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 7px 7px 3px 3px;
  background: var(--charcoal);
}

.bottle::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 253, 249, 0.72);
}

.product-body,
.note-card,
.step-card,
.page-panel {
  padding: 24px;
}

.product-meta {
  margin: 10px 0 18px;
  color: var(--muted);
}

.price {
  color: var(--rose);
  font-weight: 850;
}

.note-card p,
.step-card p,
.page-panel p {
  color: var(--muted);
}

.wide-band {
  background: var(--charcoal);
  color: var(--white);
}

.wide-band .lead,
.wide-band .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero {
  padding: 90px 0 54px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-content {
  padding: 64px 0 92px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 16px !important;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.woocommerce ul.products li.product a img {
  border-radius: 6px;
}

.woocommerce span.onsale {
  background: var(--rose);
}

.site-footer {
  background: #17201c;
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-inner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-legal {
  max-width: 620px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links ul {
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav,
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .main-nav ul {
    gap: 14px;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 247, 241, 0.98) 0%, rgba(251, 247, 241, 0.86) 48%, rgba(251, 247, 241, 0.35) 100%),
      linear-gradient(0deg, rgba(251, 247, 241, 1) 0%, rgba(251, 247, 241, 0) 26%);
  }

  .hero-content {
    padding: 70px 0 84px;
  }

  .hero-strip,
  .product-grid,
  .notes-grid,
  .steps-grid,
  .contact-layout,
  .footer-inner,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    margin-top: -28px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}


/* Block editor compatibility for the editable home page */
.wp-block-cover.hero {
  padding: 0;
  color: var(--ink);
  align-items: flex-end;
}
.wp-block-cover.hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: none !important;
  color: var(--ink);
}
.wp-block-cover.hero .wp-block-cover__image-background {
  z-index: 0;
}
.wp-block-cover.hero h1,
.wp-block-cover.hero .lead {
  color: var(--ink);
}
.hero-actions .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.wide-band .hero-actions .wp-block-button__link {
  background: var(--surface);
  color: var(--ink);
}
.steps-grid.wp-block-columns,
.notes-grid.wp-block-columns {
  margin-bottom: 0;
}
