/* =====================================================================
   Garrigue — loaded after classic/base.css, overrides only what differs.
   Palette: schist, limestone, garrigue green, wine lees.
   ===================================================================== */
:root {
  --schist: #2b2e2a;
  --limestone: #e4e6e1;
  --thyme: #55644a;
  --lees: #5a2233;
  --white: #ffffff;

  --color-header-bg: var(--schist);
  --color-header-text: #f2f3ef;
  --color-accent: #c9d3b8;
  --color-text: var(--schist);
  --color-page-bg: var(--white);
  --color-footer-bg: var(--schist);
  --color-footer-text: #d9dcd4;
  --font-heading: 'Spectral', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --surface: var(--white);
  --brand-row-bg: var(--schist);
  --submenu-bg: #353933;
  --submenu-hover-bg: #23261f;
  --sticky-bg: var(--schist);
  --newsletter-bg: var(--limestone);
  --subfooter-bg: #222520;
  --muted: #6c7068;
  --line: #d3d6cf;
  --radius: 2px;
  --container: 1180px;
}

body { background: var(--white); font-size: 16px; line-height: 1.7; }
h1, h2, h3 { font-weight: 300; letter-spacing: 0; }

/* Header: one row */
.gh { background: var(--schist); }
.gh__wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.gh__util { font-size: 13px; color: #b9bdb3; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gh__util .gh__wrap { min-height: 34px; }
.gh__util a { text-decoration: none; }
.gh__util a:hover { color: #fff; }
.gh__spacer { flex: 1; }
/* Logo size: change --garrigue-logo-height to make it bigger or smaller (the menu row grows with it). */
.gh { --garrigue-logo-height: 120px; }
.gh__main .gh__wrap { min-height: calc(var(--garrigue-logo-height) + 24px); }
.gh__brand img { height: var(--garrigue-logo-height); width: auto; }
.gh__brand span { font-family: var(--font-heading); font-size: 26px; }
.gh .mainnav { border: 0; margin-left: auto; }
.gh .menu--l1 { justify-content: flex-end; }
.gh .menu--l1 > .menu__item > a { text-transform: none; letter-spacing: .01em; font-size: 15px; padding: 12px 14px; }
.gh .menu--l1 > .menu__item.is-active > a { color: #fff; box-shadow: inset 0 -2px 0 var(--color-accent); }
.gh .menu--l2 { left: 0; transform: translateY(6px); }
.gh .menu__item:hover > .menu--l2, .gh .menu__item:focus-within > .menu--l2 { transform: none; }
.gh .menu--l2 a { text-transform: none; font-size: 14px; }
.site-header.gh.is-stuck .gh__util { display: none; }
.site-header.gh.is-stuck .gh__main .gh__wrap { min-height: 64px; }
.site-header.gh.is-stuck .gh__brand img { height: 56px; }   /* smaller once the page has scrolled */

/* Buttons */
.btn { text-transform: none; letter-spacing: .01em; font-size: 15px; border-radius: var(--radius); }
.btn--primary { background: var(--thyme); border-color: var(--thyme); color: #fff; }
.btn--primary:hover { background: #44513b; }
.btn--light { color: var(--schist); border-color: var(--schist); }
.btn--light:hover { background: var(--schist); color: #fff; }
.btn--outline { border-color: var(--thyme); color: var(--thyme); }
.btn--outline:hover { background: var(--thyme); color: #fff; }

/* Hero: image only, no overlay text */
.hero__media img, .carousel__slide img { max-height: 78vh; }

/* Presentation: the one bold element */
.gp { background: var(--white); padding: clamp(56px, 8vw, 110px) 0; }
.gp__wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.gp__title { margin: 0; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; font-weight: 300; color: var(--schist); position: sticky; top: 110px; }
.gp__body { max-width: 62ch; font-size: 17px; }
.gp__image { margin-bottom: 26px; }

/* Inner page titles: left aligned on limestone */
.page-head { background: var(--limestone); color: var(--schist); text-align: left; padding: 54px 0 46px; }
.page-head__title { text-transform: none; letter-spacing: 0; font-size: clamp(32px, 4.6vw, 56px); font-weight: 300; }
.page-head__kicker { color: var(--thyme); text-transform: none; letter-spacing: 0; font-size: 15px; }
.page-title { font-size: clamp(30px, 4vw, 46px); font-weight: 300; }
.section-title { text-transform: none; letter-spacing: 0; font-size: 32px; text-align: left; }
.breadcrumb { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Wines: bottles on limestone plinths, serif names */
.wines-page:not(.has-bg), .wine-detail:not(.has-bg) { background: var(--white); }
.wines-page__title { text-align: left; text-transform: none; letter-spacing: 0; font-weight: 300; font-size: clamp(34px, 4.6vw, 56px); }
.range-tabs { justify-content: flex-start; text-transform: none; letter-spacing: 0; font-size: 15px; gap: 6px 26px; }
.range__title { text-align: left; text-transform: none; letter-spacing: 0; font-size: 36px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.wine-grid { gap: 48px 32px; }
.wine-card { text-align: left; }
.wine-card__media { display: block; background: var(--limestone); padding: 26px 0 0; margin-bottom: 16px; }
.wine-card__media img { height: 300px; margin-bottom: 0; }
.wine-card__name { font-family: var(--font-heading); font-size: 22px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.wine-card__price { color: var(--lees); }
.wine-detail__image { background: transparent; padding: 40px 0; }   /* the bottle stands on the page, no box behind it */
.wine-detail__name { text-transform: none; font-weight: 300; font-size: clamp(36px, 4.8vw, 60px); }
.wine-detail__appellation { text-transform: none; letter-spacing: 0; color: var(--thyme); font-size: 16px; }
.wine-detail__meta span + span::before { content: "/"; }
.wine-detail__punchline { border-color: var(--thyme); font-weight: 500; }
.buy-box { background: var(--limestone); }
.buy-box__price { color: var(--lees); font-family: var(--font-heading); }
.wine-text h2 { text-transform: none; letter-spacing: 0; font-family: var(--font-heading); font-size: 24px; }

/* News & galleries */
.card { border: 0; background: transparent; }
.card__body { padding: 16px 0 0; }
.card__title { font-family: var(--font-heading); font-size: 24px; font-weight: 400; }
.card__date, .card__more { text-transform: none; letter-spacing: 0; font-size: 14px; }
.card__more { color: var(--thyme); }
.news-strip--alt { background: var(--limestone); }
.gallery-tile { background: var(--schist); }
.gallery-tile__title { font-family: var(--font-heading); font-size: 24px; }
.gallery-tile__count { text-transform: none; letter-spacing: 0; font-size: 13px; }
.subpages a, .ranges a { text-transform: none; letter-spacing: 0; border-color: var(--thyme); color: var(--thyme); }
.subpages a:hover, .ranges a:hover { background: var(--thyme); color: #fff; }

/* Footer */
.newsletter-band { color: var(--schist); }
.newsletter-band__title { text-transform: none; letter-spacing: 0; font-family: var(--font-heading); font-size: 26px; }
.footer-title { font-family: var(--font-heading); font-size: 24px; }
.footer-title--small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 15px; }
.subfooter__evin { letter-spacing: 0; }

/* Age gate & dialogs */
.age-gate { background: rgba(43, 46, 42, .96); }
.age-gate__title { font-family: var(--font-heading); font-size: 30px; font-weight: 300; }
.dialog__form label, .contact-form label { text-transform: none; letter-spacing: 0; font-size: 14px; }

@media (max-width: 900px) {
  .gh__util .langs { display: none; }
  .gh__main .gh__wrap { min-height: 72px; flex-wrap: wrap; }
  .gh__brand img { height: 72px; }   /* phones */
  .gh .nav-toggle { margin-left: auto; }
  .gh .mainnav { flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)); background: var(--schist); }
  .gh .menu--l1 > .menu__item.is-active > a { box-shadow: none; }
  .gh .menu--l2 { background: #353933; }
  .gp__wrap { grid-template-columns: 1fr; }
  .gp__title { position: static; font-size: 44px; }
  .wine-card__media img { height: 230px; }
}

/* Wine pages' background photo: not "full screen" any more.
   classic/base.css uses "cover", which enlarges the photo until it fills the whole (very tall) section.
   Here the photo keeps its own proportions: as wide as the page, at the top, never stretched in height.
   Below the photo, the section is dark schist. */
.wines-page.has-bg { background: var(--schist) var(--bg) center top / 100% auto no-repeat; }
/* One wine's page: white below the photo; only "Dans la même gamme" stays dark (full width). */
.wine-detail.has-bg { background: var(--white) var(--bg) center top / 100% auto no-repeat; padding-bottom: 0; }
.wine-detail.has-bg .related { background: var(--schist); box-shadow: 0 0 0 100vmax var(--schist); clip-path: inset(0 -100vmax); padding: 50px 0 70px; margin-top: 60px; }

/* On a background photo: plinths become translucent so the photo shows through */
.has-bg .wine-card__media { background: rgba(255, 255, 255, .18); }

/* One wine's page on a background photo:
   - the bottle stands straight on the photo (no box behind it);
   - the texts are BLACK, on a light panel so they stay readable over the photo and the dark schist.
   To change the text colour: the "color" line below. To change the panel: the "background" line below
   (rgba(255, 255, 255, .88) = white, 88 % opaque; .70 lets more of the photo show through). */
.wine-detail.has-bg { text-shadow: none; }
.wine-detail.has-bg .wine-detail__info,
.wine-detail.has-bg .wine-text,
.wine-detail.has-bg .breadcrumb {
  background: rgba(255, 255, 255, .88);   /* the light panel */
  color: #000;                            /* the description text: black */
  --color-text: #000;
  --muted: #444;
  padding: 22px 26px;
}
.wine-detail.has-bg .wine-detail__info a,
.wine-detail.has-bg .wine-text a,
.wine-detail.has-bg .breadcrumb a,
.wine-detail.has-bg .wine-detail__appellation { color: #000; }
.wine-detail.has-bg .wine-detail__info .btn--outline { color: #000; border-color: #000; }
.wine-detail.has-bg .wine-detail__info .btn--outline:hover { background: #000; color: #fff; }
.wine-detail.has-bg .share__link:hover, .wine-detail.has-bg .share__link:focus-visible { background: #000; color: #fff; }
.wine-detail.has-bg .breadcrumb { display: inline-block; padding: 6px 14px; }
.wine-detail.has-bg .wine-detail__texts { border-top: 0; }
.wine-detail.has-bg .buy-box { background: var(--limestone); }   /* the buy box: light grey inside the panel */
.wine-detail.has-bg .buy-box__price { color: var(--lees); }
.has-bg .range__title { border-color: rgba(255, 255, 255, .4); }

/* Shop */
.cart-summary, .account-box { background: var(--limestone); }
.shop h2 { font-family: var(--font-heading); font-weight: 300; font-size: 28px; }
.totals__total { font-family: var(--font-heading); font-size: 24px; color: var(--lees); }
.form-grid label, .account-box label, .promo-form label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.cart-table th { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Wineries pages (wineries.php): the accent is too pale for text on the white boxes, so a darker one. */
:root { --estate-accent: var(--lees); }


/* The cart page's colours in this theme (the rules below are shared with Designer and Sarment, which use these names). */
.dg-shop, .dg-shop__minors { --sage-light: #ffffff; --sage-deep: var(--limestone); --bottle: var(--schist); --soft: var(--muted); --gold: var(--thyme); --wine: var(--lees); }
/* ---------- The cart page (panier.php): the wines on sale in a column on the left, the cart on the right ----------
   (pages/panier.php of this theme, the same as in Designer). The cart stays in view while the list scrolls. */
.dg-shop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 80px); align-items: start; margin-top: 10px; }
.dg-shop--cart-only { grid-template-columns: minmax(0, 1fr); }
.dg-shop__cart { position: sticky; top: 30px; }
.dg-shop__cart .cart-bottom { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dg-shop__cart .cart-bottom > * { min-width: 0; }
.dg-shop__cart .promo-form__row input { min-width: 0; flex: 1; }
.dg-shop__cart .cart-summary { background: var(--sage-light); border: 1px solid rgba(34, 33, 30, .12); }
.dg-shop__title { margin: 0; font-size: clamp(28px, 2.6vw, 38px); color: var(--bottle); }
.dg-shop__intro { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.dg-shop__range { margin: 34px 0 6px; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 21px; color: var(--gold); }
.dg-pick { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(34, 33, 30, .14); }
.dg-pick__wine { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(34, 33, 30, .14); }
.dg-pick__bottle { display: block; height: 96px; overflow: hidden; background: linear-gradient(180deg, var(--sage-deep), #E7E2D8); padding: 8px 4px 5px; }
.dg-pick__bottle img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 6px rgba(34, 33, 30, .2)); }
/* The cart lines in the theme's type. */
.dg-shop__cart .cart-wine a { font-family: var(--font-heading); font-weight: 500; font-size: 20px; color: var(--bottle); }
.dg-shop__cart .cart-wine a:hover { color: var(--wine); }
.dg-pick__text { display: grid; gap: 2px; min-width: 0; }
.dg-pick__name { font-family: var(--font-heading); font-size: 21px; line-height: 1.15; color: var(--bottle); text-decoration: none; }
.dg-pick__name span { color: var(--soft); }
.dg-pick__name:hover { color: var(--wine); }
.dg-pick__kind { font-size: 13px; color: var(--soft); }
.dg-pick__price { font-family: var(--font-heading); font-size: 19px; color: var(--wine); }
.dg-pick__price del { color: var(--soft); font-size: 15px; }
.dg-pick__price small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--soft); }
.dg-pick__in-cart { font-size: 12px; letter-spacing: .03em; color: var(--gold); }
.dg-pick__wine.is-in-cart .dg-pick__bottle { box-shadow: inset 3px 0 0 var(--gold); }
.dg-pick__add { display: flex; gap: 6px; align-items: center; }
.dg-pick__add select { height: 40px; padding: 0 6px; border: 1px solid rgba(34, 33, 30, .25); background: var(--sage-light); font: inherit; font-size: 14px; }
.dg-pick__add .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
/* The reminder about minors, under the title; the shop's conditions in short, under the cart. */
.dg-shop__minors { margin: -6px 0 30px; max-width: 70ch; font-size: 14px; color: var(--soft); }
.dg-shop__facts { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(34, 33, 30, .14); }
.dg-shop__facts li { display: grid; gap: 2px; padding: 16px 0 16px 22px; border-bottom: 1px solid rgba(34, 33, 30, .14); position: relative; font-size: 14px; color: var(--soft); }
.dg-shop__facts li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.dg-shop__facts strong { font-family: var(--font-heading); font-weight: 500; font-size: 20px; color: var(--bottle); }
.dg-shop__facts a { color: var(--wine); text-decoration-color: var(--gold); }
/* Not quite wide enough for the cart table: its phone layout. */
@media (max-width: 1280px) {
  .dg-shop__cart .cart-table thead { display: none; }
  .dg-shop__cart .cart-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dg-shop__cart .cart-table td { border: 0; padding: 0; }
  .dg-shop__cart .cart-table td.cart-wine { grid-column: 1 / -1; }
  .dg-shop__cart .cart-table td:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .dg-shop { grid-template-columns: minmax(0, 1fr); }
  .dg-shop__cart, .dg-shop__list { min-width: 0; }
  .dg-shop__cart { position: static; order: -1; }        /* phones: the cart first, the list under it */
}
@media (max-width: 480px) {
  .dg-pick__wine { grid-template-columns: 46px minmax(0, 1fr); }
  .dg-pick__add { grid-column: 2; }
}

/* Garrigue: the header can stay at the top of the screen: the cart keeps clear of it. */
.dg-shop__cart { top: 100px; }
.dg-shop__title, .dg-pick__name, .dg-shop__facts strong { font-weight: 400; }

/* =====================================================================
   Contact page and image galleries: the page's background photo (pages.xml bk_image, or bk_image1..4 as a
   slideshow) fills the whole screen behind the page and stays still while the page scrolls over it, instead of
   being a band behind the title. The other pages keep the photo band.
   ===================================================================== */
.page-contact .page-head--photo, .page-images .page-head--photo {
  position: static; overflow: visible; background: transparent; min-height: clamp(90px, 22vw, 160px);
}
.page-contact .page-head--photo .page-head__bg, .page-images .page-head--photo .page-head__bg { position: fixed; inset: 0; z-index: -1; }
.page-contact .page-head--photo .page-head__layer, .page-images .page-head--photo .page-head__layer { background-position: center; }
/* a light veil on the photo, darker at the top under the title */
.page-contact .page-head--photo .page-head__bg::after, .page-images .page-head--photo .page-head__bg::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .2));
}
.page-contact .page-head--photo::after, .page-images .page-head--photo::after { display: none; }
.page-contact .page-head--photo .page-head__inner, .page-images .page-head--photo .page-head__inner { position: relative; }
/* the page itself lets the photo through */
body.page-contact:has(.page-head--photo), body.page-images:has(.page-head--photo) { background: var(--schist); }
.page-contact:has(.page-head--photo) .site-main, .page-images:has(.page-head--photo) .site-main,
.page-contact .page-head--photo ~ .page-section, .page-images .page-head--photo ~ .page-section { background: transparent; }
.page-images .page-head--photo ~ .page-section { padding-bottom: clamp(80px, 12vw, 180px); }
/* contact: the address, the form and the map on light panels, readable over any photo */
.page-contact .page-head--photo ~ .page-section .contact-grid > * {
  background: rgba(255, 255, 255, .93); padding: clamp(22px, 3vw, 36px); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .45);
}
.page-contact .page-head--photo ~ .page-section .contact-grid { align-items: start; }
/* gallery: the button and the captions stay readable */
.page-images .page-head--photo ~ .page-section .btn--outline { background: rgba(255, 255, 255, .93); }
