/* ========================================================================
   LE BAIN DU ROY — modern static-site redesign
   01. Tokens and reset
   02. Header and navigation
   03. Common components
   04. Homepage
   05. Inner pages
   06. Footer
   07. Responsive and accessible motion
   ======================================================================== */

/* 01. Tokens and reset --------------------------------------------------- */
:root {
  --forest-900: #15352b;
  --forest-800: #173b30;
  --forest-700: #285342;
  --ink: #27392f;
  --muted: #657368;
  --gold: #c8a874;
  --gold-light: #e7cfa6;
  --paper: #fcfbf7;
  --sand: #f3f0e8;
  --line: #e5dfd3;
  --white: #ffffff;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-display: 'Marcellus', Georgia, serif;
  --container: 1190px;
  --shadow-card: 0 24px 64px rgba(21, 53, 43, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { color: var(--forest-900); background: #ead9b6; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.container { width: min(100% - 64px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 16px; padding: 12px 18px; background: var(--white); color: var(--forest-900); box-shadow: var(--shadow-card); }
.skip-link:focus { top: 12px; }

/* 02. Header and navigation --------------------------------------------- */
.top-strip { color: #d8e8dc; background: var(--forest-900); }
.top-strip__inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-strip p { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 10px; line-height: 1.4; letter-spacing: .10em; text-transform: uppercase; }
.top-strip__dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--gold); }

.site-header { position: sticky; z-index: 70; top: 0; border-bottom: 1px solid var(--line); background: rgba(252, 251, 247, .97); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-brand img { display: block; width: 286px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 29px; }
.primary-nav__list { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; gap: 27px; }
.primary-nav__list a { display: inline-flex; align-items: center; min-height: 45px; position: relative; color: #364a3e; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .095em; white-space: nowrap; }
.primary-nav__list a::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .22s ease; }
.primary-nav__list a:hover::after, .primary-nav__list a[aria-current='page']::after { width: 100%; }
.primary-nav__list a[aria-current='page'] { color: var(--forest-900); }
.primary-nav__contact { display: flex; justify-content: center; align-items: center; gap: 15px; padding: 15px 21px; background: var(--forest-800); color: var(--white); min-height: 46px; font-size: 10px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; white-space: nowrap; transition: background .2s; }
.primary-nav__contact:hover { background: #34614a; }
.menu-toggle { display: none; }

/* 03. Shared components -------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 11px; color: #a88652; font-size: 10px; font-weight: 700; letter-spacing: .20em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }
.display { margin: 19px 0 22px; font: 400 clamp(38px, 4.9vw, 65px)/1.11 var(--font-display); letter-spacing: -.038em; }
.section { padding-block: 110px; }
.section--sand { background: var(--sand); }
.section-heading { margin-bottom: 43px; }
.section-heading--center { text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading--center .eyebrow::before { display: none; }
.section-heading--center > p { margin: 0 auto; max-width: 640px; }
.section-heading--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; }
.section-heading--split .display { font-size: clamp(35px, 4vw, 49px); margin-bottom: 0; }
.section-heading--split > p { max-width: 450px; }
.section-heading > p, .section-intro { color: var(--muted); font-size: 14px; line-height: 1.9; }
.section-intro { max-width: 750px; margin: 0 0 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 53px; padding: 15px 24px; border: 1px solid transparent; font-size: 10px; font-weight: 700; letter-spacing: .135em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button--gold { color: var(--forest-900); background: #dec293; }
.button--gold:hover { background: #ebd0a4; }
.button--outline { color: #fff; border-color: rgba(255,255,255,.6); }
.button--outline:hover { background: rgba(255,255,255,.09); }
.button--dark { color: #fff; background: var(--forest-800); }
.button--dark:hover { background: #2e5b46; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.underlined-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid #bda47e; color: var(--forest-800); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.underlined-link:hover { color: #52785b; }

/* 04. Homepage ----------------------------------------------------------- */
.hero { display: flex; min-height: 635px; position: relative; overflow: hidden; align-items: center; color: #fff; background: var(--forest-900); }
.hero__image, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image { object-fit: cover; object-position: center 45%; filter: saturate(.65); }
.hero__veil { background: linear-gradient(90deg, rgba(17, 49, 35, .99) 0%, rgba(17, 49, 35, .95) 38%, rgba(17, 49, 35, .61) 70%, rgba(17, 49, 35, .43) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 78px 91px; }
.hero h1 { margin: 27px 0 21px; max-width: 775px; font: 400 clamp(62px, 7.4vw, 104px)/1.04 var(--font-display); letter-spacing: -.042em; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p { max-width: 495px; margin: 0 0 32px; color: #e5eae1; font-size: 15px; line-height: 1.85; }
.hero__caption { display: flex; align-items: center; gap: 13px; margin-top: 56px; color: #d5e0d5; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.hero__line { width: 1px; height: 28px; background: var(--gold); }
.hero__vertical { position: absolute; z-index: 1; right: 24px; bottom: 45px; color: rgba(238, 230, 209, .66); font-size: 9px; letter-spacing: .28em; writing-mode: vertical-rl; transform: rotate(180deg); }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: min(9vw, 112px); }
.story-visual { position: relative; }
.story-visual::before { content: ''; position: absolute; z-index: -1; top: -24px; left: -24px; width: 72%; height: 76%; border: 1px solid var(--gold); }
.story-visual__frame { height: 525px; overflow: hidden; background: #bbc1af; }
.story-visual__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.story-visual__label { position: absolute; right: -20px; bottom: -24px; display: flex; flex-direction: column; padding: 22px 27px; background: var(--paper); box-shadow: var(--shadow-card); }
.story-visual__label strong { font: 29px var(--font-display); }
.story-visual__label span { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.story-content > p { color: var(--muted); font-size: 14px; line-height: 1.96; }
.story-content blockquote { margin: 27px 0 31px; padding-left: 20px; border-left: 2px solid var(--gold); font: 21px/1.5 var(--font-display); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.feature-card { display: flex; flex-direction: column; min-height: 334px; padding: 34px 31px; border: 1px solid var(--line); background: var(--paper); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.feature-card__number { color: #9f8156; font: 14px var(--font-display); }
.feature-card__art { display: block; margin: 20px 0 6px; color: var(--forest-800); font: 51px/1.1 var(--font-display); }
.feature-card h3 { margin: 8px 0 10px; font: 28px/1.2 var(--font-display); }
.feature-card p { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.feature-card .underlined-link { margin-top: auto; align-self: flex-start; }

.breed-band { overflow: hidden; color: #fff; background: var(--forest-900); }
.breed-band__grid { display: grid; grid-template-columns: 1fr .86fr; gap: 80px; align-items: center; padding-block: 90px; }
.breed-band .display { font-size: clamp(43px, 5vw, 65px); }
.breed-band p { max-width: 520px; margin-bottom: 26px; color: #c8d7ca; font-size: 14px; line-height: 1.85; }
.breed-band__badge { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 23px; min-height: 350px; border: 1px solid rgba(204, 222, 203, .30); background: radial-gradient(circle, #35604a 0%, #1f4535 54%, #173b30 100%); position: relative; }
.breed-band__badge::before { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(204, 222, 203, .16); }
.breed-band__badge img { width: 175px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.11)); }
.breed-band__badge span { color: #d1c19f; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.contact-section .display { margin-bottom: 16px; }
.contact-section__intro { max-width: 690px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 41px; padding-top: 30px; border-top: 1px solid var(--line); }
.contact-grid > div { display: flex; flex-direction: column; gap: 12px; }
.contact-grid span { color: #838e82; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-grid strong { font-size: 14px; }
.contact-grid a:hover { color: #a07f4f; }

/* 05. Inner pages -------------------------------------------------------- */
.inner-hero { position: relative; overflow: hidden; padding-block: 62px 78px; background: #ede9df; }
.inner-hero::before { content: ''; position: absolute; top: -275px; right: -165px; width: 590px; height: 590px; border: 1px solid #d5c5ac; border-radius: 50%; box-shadow: 0 0 0 64px rgba(211, 194, 166, .14), 0 0 0 129px rgba(211, 194, 166, .09); }
.inner-hero .container { position: relative; }
.inner-hero h1 { max-width: 850px; margin: 16px 0 17px; font: clamp(48px, 6vw, 75px)/1.11 var(--font-display); letter-spacing: -.035em; }
.inner-hero p { max-width: 650px; margin: 0; color: #606f62; font-size: 15px; line-height: 1.9; }
.breadcrumbs { margin-bottom: 33px; }
.breadcrumbs ol { display: flex; gap: 11px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { color: #68796b; font-size: 11px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 11px; color: #aab1a4; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }

.search-panel { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 25px; padding: 22px 25px; border: 1px solid #e4dccf; background: var(--sand); }
.term-search { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 430px; padding: 10px 14px; border: 1px solid #d8d1c4; background: #fff; }
.term-search svg { width: 19px; height: 19px; fill: none; stroke: var(--forest-800); stroke-width: 1.7; }
.term-search input { width: 100%; min-height: 29px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.term-search:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.letter-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.letter-filters button { min-width: 36px; min-height: 36px; border: 1px solid transparent; background: transparent; color: #627567; font-size: 11px; }
.letter-filters button:hover, .letter-filters button.is-active { color: #fff; background: var(--forest-800); }
.term-count { margin: 24px 0 21px; color: #899485; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.term-card { min-height: 185px; padding: 26px 27px; border: 1px solid var(--line); background: #fff; }
.term-card > span { color: #aa8d62; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.term-card h3 { margin: 14px 0 9px; font: 25px/1.2 var(--font-display); }
.term-card p { margin: 0; color: #647266; font-size: 12px; line-height: 1.8; }
.glossary-empty { padding: 24px; border: 1px dashed var(--line); color: var(--muted); }
.notice { margin-top: 33px; padding: 22px 27px; border: 1px solid #e2d8c3; background: #f0eadd; color: #617063; font-size: 13px; line-height: 1.8; }
.notice strong { color: #314b3b; }
.next-section { padding-block: 75px; }
.next-section .section-heading { margin-bottom: 0; }
.next-section .button { margin-top: 25px; }

.parent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.parent-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.parent-card__image { display: grid; place-items: center; height: 318px; background: linear-gradient(140deg, #d5d3c5, #e9e4d9); }
.parent-card__image--male { background: linear-gradient(140deg, #c6d0bd, #e5e6d8); }
.parent-card__image img { width: min(80%, 350px); height: 240px; object-fit: contain; }
.parent-card__body { padding: 28px 32px 32px; }
.parent-card__body > span { color: #aa885d; font-size: 10px; letter-spacing: .17em; font-weight: 700; text-transform: uppercase; }
.parent-card__body h3 { margin: 9px 0 8px; font: 36px var(--font-display); }
.parent-card__body p { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.notice--archive { margin-top: 29px; }
.notice--archive p { margin: 6px 0 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 39px; }
.steps-grid article { padding-top: 19px; border-top: 2px solid var(--gold); }
.steps-grid article > span { color: #b18f5d; font: 25px var(--font-display); }
.steps-grid h3 { margin: 21px 0 9px; font: 25px var(--font-display); }
.steps-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.memory-contact { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 52px; padding: 35px 39px; background: #e9e3d7; }
.memory-contact h3 { margin: 12px 0 7px; font: 33px var(--font-display); }
.memory-contact p { max-width: 570px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.memory-contact .button { flex: 0 0 auto; }
.archive-link { margin-top: 25px; font-size: 12px; color: #7e897d; }
.archive-link a { color: var(--forest-800); text-decoration: underline; text-underline-offset: 3px; }

/* 06. Footer ------------------------------------------------------------- */
.site-footer { padding: 67px 0 23px; background: #122c23; color: #f9faf6; }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 70px; }
.footer-brand > a { display: inline-flex; align-items: center; gap: 15px; font: 26px var(--font-display); }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand p { max-width: 330px; margin-top: 20px; color: #b6c7b8; font-size: 13px; line-height: 1.85; }
.footer-title { margin: 0 0 20px; color: #d1b78b; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: 13px; }
.footer-links a, .footer-address { color: #c9d7ca; font-size: 13px; line-height: 2.2; }
.footer-links a:hover, .footer-address a:hover, .site-footer__bottom a:hover { color: #fff; text-decoration: underline; }
.footer-address { font-style: normal; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #a4baa9; font-size: 11px; }
.site-footer__bottom p { margin: 0; }

/* 07. Responsive and accessible motion ---------------------------------- */
@media (max-width: 1120px) {
  .site-brand img { width: 251px; }
  .primary-nav, .primary-nav__list { gap: 17px; }
  .primary-nav__list a { font-size: 10px; }
  .primary-nav__contact { padding-inline: 14px; }
  .split-layout { gap: 60px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 85px; }
  .top-strip__inner p:last-child { display: none; }
  .site-header__inner { min-height: 82px; }
  .site-brand img { width: 240px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 83px; min-height: 45px; padding: 8px; border: 1px solid #ded8cc; background: none; color: var(--forest-900); }
  .menu-toggle__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .menu-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
  .menu-toggle__bars i { width: 18px; height: 1.5px; background: var(--forest-900); }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 32px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 25px rgba(0,0,0,.07); }
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .primary-nav__list { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-nav__list a { width: 100%; min-height: 48px; font-size: 12px; }
  .primary-nav__list a::after { bottom: 1px; }
  .primary-nav__contact { width: 100%; margin-top: 7px; }
  .section { padding-block: 78px; }
  .split-layout, .breed-band__grid { grid-template-columns: 1fr; gap: 55px; }
  .story-visual { width: min(90%, 550px); margin-inline: auto; }
  .story-visual__frame { height: 460px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { min-height: 260px; }
  .breed-band__grid { padding-block: 76px; }
  .breed-band__badge { min-height: 280px; }
  .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading--split { display: block; }
  .section-heading--split > p { max-width: 650px; }
  .site-footer__grid { gap: 38px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 40px, var(--container)); }
  .top-strip p { font-size: 9px; }
  .site-header__inner { min-height: 74px; }
  .site-brand img { width: 209px; }
  .primary-nav { padding-inline: 20px; }
  .hero { min-height: 625px; }
  .hero__image { object-position: 65% center; }
  .hero__veil { background: linear-gradient(90deg, rgba(17,49,35,.97), rgba(17,49,35,.82)); }
  .hero__content { padding-block: 67px 80px; }
  .hero h1 { font-size: clamp(51px, 12vw, 68px); }
  .hero p { font-size: 14px; }
  .hero__vertical { display: none; }
  .hero__caption { margin-top: 42px; }
  .button-row { flex-direction: column; align-items: flex-start; }
  .button-row .button { width: min(100%, 310px); }
  .section { padding-block: 67px; }
  .display { font-size: 40px; }
  .story-visual { width: 94%; }
  .story-visual::before { top: -14px; left: -14px; }
  .story-visual__frame { height: 345px; }
  .story-visual__label { right: -12px; bottom: -18px; padding: 16px 20px; }
  .story-visual__label strong { font-size: 24px; }
  .story-content blockquote { font-size: 19px; }
  .feature-card { padding: 29px 28px; }
  .breed-band__grid { padding-block: 63px; }
  .breed-band__badge { min-height: 250px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .inner-hero { padding-block: 48px 63px; }
  .inner-hero h1 { font-size: clamp(45px, 10vw, 57px); }
  .inner-hero p { font-size: 14px; }
  .breadcrumbs { margin-bottom: 27px; }
  .search-panel { padding: 16px; }
  .term-search { min-width: 100%; }
  .glossary-grid, .parent-grid, .steps-grid { grid-template-columns: 1fr; }
  .parent-card__image { height: 275px; }
  .steps-grid { gap: 8px; }
  .memory-contact { flex-direction: column; align-items: flex-start; padding: 29px; }
  .memory-contact h3 { font-size: 29px; }
  .site-footer { padding-top: 54px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom { flex-direction: column; gap: 13px; margin-top: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
