@import url("motion.css");
@import url("atmosphere.css");

:root {
  /* Brand palette — Pantone 7466 C / 319 C / 318 C / 6359 C */
  --teal-deep: #00b0b9;
  --teal: #00b7bd;
  --aqua: #2cccd3;
  --ice: #b0dee8;
  /* Brand primary */
  --sky: var(--teal);
  --blue: var(--teal); /* alias: Sky Blue Turquoise */
  --mint: var(--ice);
  /* Complementary palette — Pantone 2189 C / 4073 C / 702 C / 6008 C / 4249 C / 7500 C */
  --navy: #003349;
  --magenta: #c74375;
  --rose: #d86179;
  --tan: #bda077;
  --sand: #c9b291;
  --cream: #e4d5b4;
  /* Brand accents */
  --coral: var(--sand);
  --peach: var(--cream);
  /* Neutrals */
  --charcoal: #414141;
  --white: #ffffff;
  --black: #000000;
  /* Soft surfaces derived from brand */
  --support-mint: var(--ice);
  --support-peach: var(--cream);
  --off: #f4fbfa;
  --product-stage: #f7fbfb;
  --line: #d7e8e6;
  --muted: #6b6b6b;
  --danger: var(--magenta);
  --ok: var(--teal);
  --header-h: 84px;
  --promo-h: 36px;
  --max: 1280px;
  /* Side inset inside the content shell */
  --gutter: 24px;
  --radius: 18px;
  --pill: 999px;
  --ease: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  font-family: Archivo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.title {
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.15;
}

.highlight {
  font-weight: 600;
}

.h1 {
  font-size: clamp(40px, 5vw, 56px);
}

.h2 {
  font-size: clamp(32px, 4vw, 40px);
}

.h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.h4 {
  font-size: clamp(18px, 2vw, 24px);
}

.body {
  font-size: 15px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn svg {
  width: 12px;
  height: 12px;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #222;
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--off);
}

.btn-blue {
  background: var(--sky);
  color: var(--charcoal);
}

.btn-blue:hover {
  background: var(--mint);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.page-hero {
  background: var(--off) url("../images/banner-perfume.jpg") center / cover;
  padding: 140px var(--gutter) 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .crumbs,
.page-hero .crumbs a {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .title {
  margin-bottom: 12px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--black);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--charcoal);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: var(--pill);
  background: var(--off);
  overflow: hidden;
}

.qty button,
.qty input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: 0;
  background: transparent;
}

.qty input {
  width: 48px;
}

.price {
  font-weight: 600;
}

.price s {
  color: var(--danger);
  font-weight: 400;
  margin-left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Laptop / mid desktop: shrink content shell like max-width 70% */
@media (max-width: 1500px) and (min-width: 981px) {
  :root {
    --max: 70%;
    --gutter: 24px;
    --header-h: 72px;
  }

  body {
    font-size: 14px;
  }

  .h1 {
    font-size: clamp(30px, 3.4vw, 42px);
  }

  .h2 {
    font-size: clamp(24px, 2.8vw, 32px);
  }

  .h3 {
    font-size: clamp(20px, 2.2vw, 26px);
  }

  .h4 {
    font-size: clamp(16px, 1.6vw, 20px);
  }

  .body {
    font-size: 14px;
  }

  .small {
    font-size: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 28px;
  }

  .btn {
    min-height: 42px;
    padding: 0 18px;
    font-size: 11px;
  }

  .container,
  .header-inner {
    width: 100%;
    max-width: 70%;
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .page-hero {
    padding: 120px var(--gutter) 56px;
  }

  .page-hero .title,
  .page-hero .crumbs {
    max-width: 70%;
    margin-inline: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  .grid-5,
  .vowels {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid-5,
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --max: 1280px;
    --gutter: 24px;
    --header-h: 72px;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Full-width shell again on tablet/mobile — keep side gutter */
  .container,
  .header-inner {
    max-width: 100%;
    padding-inline: var(--gutter);
  }

  .container,
  .section,
  .page-hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .split,
  .product-grid,
  .vowels,
  .news-grid,
  .news-slider,
  .news-window,
  .news-track,
  .campaign,
  .lookbook,
  .pdp-container,
  .pdp,
  .voices {
    min-width: 0;
    max-width: 100%;
  }

  .container > *,
  .split > *,
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .grid-5 > *,
  .product-grid > *,
  .vowels > *,
  .campaign > *,
  .lookbook > *,
  .voices > * {
    min-width: 0;
    max-width: 100%;
  }

  .page-hero {
    padding: calc(var(--header-h) + var(--promo-h) + 48px) var(--gutter) 48px;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .vowels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .vowels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Non-product grids that should still stack */
  .grid-3:has(.location-card),
  .grid-3:has(.form-card),
  .contact-xp .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Side inset stays locked to --gutter on every breakpoint */
  .container,
  .header-inner {
    padding-inline: var(--gutter);
  }

  .grid-3:has(.product-card) .product-card,
  .grid-4:has(.product-card) .product-card {
    padding: 10px 8px 12px;
  }

  .h1 { font-size: 32px; }

  .page-hero {
    padding: calc(var(--header-h) + var(--promo-h) + 36px) var(--gutter) 40px;
  }

  .btn-full,
  .form-card .btn,
  .co-summary .btn,
  .acct-form .btn,
  .art-form-submit .btn,
  .cart-coupon .btn,
  .contact-split .btn,
  .auth-box .btn {
    width: 100%;
    justify-content: center;
  }
}
