/*
Theme Name: Palmer's Child
Theme URI: https://palmers.com/
Description: Lightweight GeneratePress child theme recreating the Palmer's storefront.
Author: Palmer's migration
Template: generatepress
Version: 1.0.0
Text Domain: palmers-child
*/

:root {
  --palmer-burgundy: #210b15;
  --palmer-cream: #f4e3c9;
  --palmer-orange: #ff6600;
  --palmer-sage: #e2e9de;
  --palmer-footer: #fff7eb;
  --palmer-max-width: 1400px;
}

html { scroll-behavior: smooth; }
body.palmer-site { margin: 0; font-family: "CentraNo2", "Helvetica Neue", Arial, sans-serif; font-weight: 400; font-size: .875rem; line-height: 1.45; color: var(--palmer-burgundy); background: #fff; }
body.palmer-site h1, body.palmer-site h2, body.palmer-site h3, body.palmer-site h4, body.palmer-site h5, body.palmer-site h6 { color: var(--palmer-burgundy); font-family: inherit; font-weight: 500; }
body.palmer-site img { max-width: 100%; }

/* GeneratePress gives us the reset and accessibility primitives. The storefront
   styles below keep the same typography, spacing, colours and rounded controls. */
.palmer-site { color: var(--palmer-burgundy); background: #fff; }
.palmer-site .site-content, .palmer-site .content-area, .palmer-site .site-main { width: 100%; max-width: none; padding: 0; margin: 0; }
.palmer-site .entry-header, .palmer-site .page-header { display: none; }
.palmer-site button, .palmer-site input, .palmer-site select, .palmer-site textarea { font-family: inherit; }
.palmer-container { width: min(100% - 2rem, var(--palmer-max-width)); margin-inline: auto; }
.palmer-header { border-bottom: 1px solid var(--palmer-cream); background: #fff; position: relative; z-index: 20; }
.palmer-announcement { background: var(--palmer-orange); color: #fff; font-size: .75rem; letter-spacing: .08em; text-align: center; padding: .5rem 1rem; }
.palmer-header-inner { min-height: 98px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.palmer-brand img { display: block; width: clamp(100px, 12vw, 150px); height: auto; }
.palmer-primary-menu .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.75rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.palmer-primary-menu a { color: var(--palmer-burgundy); font-size: .78rem; font-weight: 500; text-decoration: none; letter-spacing: .04em; }
.palmer-primary-menu a:hover, .palmer-primary-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: .3em; }
.palmer-primary-menu .menu-item-has-children { position: relative; }
.palmer-primary-menu .sub-menu { position: absolute; left: 50%; top: calc(100% + 1.25rem); transform: translate(-50%, .4rem); z-index: 30; min-width: 220px; padding: 1.1rem 1.25rem; margin: 0; background: #fff; border: 1px solid var(--palmer-cream); box-shadow: 0 15px 35px rgba(33,11,21,.12); list-style: none; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.palmer-primary-menu .menu-item-has-children:hover > .sub-menu, .palmer-primary-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.palmer-primary-menu .sub-menu li + li { margin-top: .55rem; }
.palmer-primary-menu .sub-menu a { display: block; white-space: nowrap; font-size: .72rem; letter-spacing: .025em; }
.palmer-primary-menu .sub-menu .sub-menu { left: calc(100% + 1rem); top: -.9rem; transform: translate(.4rem, 0); }
.palmer-primary-menu .sub-menu .menu-item-has-children:hover > .sub-menu, .palmer-primary-menu .sub-menu .menu-item-has-children:focus-within > .sub-menu { transform: translate(0, 0); }
.palmer-actions { display: flex; justify-content: flex-end; gap: .5rem; align-items: center; }
.palmer-action { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-grid; place-items: center; color: var(--palmer-burgundy); text-decoration: none; }
.palmer-action:hover { background: var(--palmer-cream); }
.palmer-action svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.palmer-mobile-toggle { display: none; }
.palmer-hero { position: relative; overflow: hidden; }
.palmer-hero img { width: 100%; display: block; aspect-ratio: 20/9; object-fit: cover; }
.palmer-hero-content { position: absolute; inset: auto auto 7%; width: min(90%, 700px); padding: 2rem; background: rgba(255,247,235,.88); border-radius: 2.5rem; }
.palmer-button { display: inline-block; border: 0; border-radius: 999px; background: var(--palmer-burgundy); color: #fff; padding: .8rem 1.6rem; text-decoration: none; transition: transform .2s, background .2s; }
.palmer-button:hover { background: var(--palmer-orange); color: #fff; transform: translateY(-1px); }
.palmer-newsletter { background: #fff; padding: 3.4rem 1rem 3.8rem; text-align: center; }
.palmer-eyebrow { margin: 0 0 .8rem; color: var(--palmer-orange); font-size: .78rem; font-weight: 500; letter-spacing: .13em; }
.palmer-newsletter h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; }
.palmer-newsletter-copy { margin: .75rem 0 1.5rem; color: #4d3c44; }
.palmer-newsletter-form { display: flex; max-width: 520px; margin: 0 auto; border: 1px solid var(--palmer-burgundy); border-radius: 999px; overflow: hidden; }
.palmer-newsletter-form input { min-width: 0; flex: 1; border: 0; background: transparent; padding: .85rem 1.2rem; outline: 0; color: var(--palmer-burgundy); }
.palmer-newsletter-form button { border: 0; border-radius: 999px; background: var(--palmer-burgundy); color: #fff; padding: .75rem 1.5rem; cursor: pointer; }
.palmer-footer { background: var(--palmer-footer); padding: 3.5rem 0 2rem; }
.palmer-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.palmer-footer h2 { margin: 0 0 1.1rem; font-size: .9rem; letter-spacing: .1em; font-weight: 500; }
.palmer-footer a { color: var(--palmer-burgundy); text-decoration: none; }
.palmer-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.palmer-footer ul { list-style: none; margin: 0; padding: 0; }
.palmer-footer li + li { margin-top: .55rem; }
.palmer-footer li, .palmer-contact { font-size: .82rem; }
.palmer-family-badge { display: block; width: 88px; height: 88px; object-fit: cover; margin-top: 1.7rem; border-radius: 10px; }
.palmer-socials { display: flex; flex-wrap: wrap; gap: .5rem .8rem; font-size: .82rem; }
.palmer-contact { margin-top: 1.25rem; line-height: 1.8; }
.palmer-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--palmer-cream); margin-top: 2.8rem; padding-top: 1.2rem; font-size: .72rem; }
@media (max-width: 1023px) {
  .palmer-header-inner { grid-template-columns: auto 1fr auto; min-height: 74px; }
  .palmer-primary-menu { display: none; position: absolute; inset: 100% 0 auto; background: #fff; border-top: 1px solid var(--palmer-cream); padding: 1rem; box-shadow: 0 12px 24px rgba(33,11,21,.12); }
  .palmer-primary-menu.is-open { display: block; }
  .palmer-primary-menu .menu { display: block; }
  .palmer-primary-menu .menu li + li { margin-top: .8rem; }
  .palmer-primary-menu .sub-menu { position: static; display: none; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: .5rem 0 .25rem 1rem; }
  .palmer-primary-menu .menu-item-has-children:hover > .sub-menu, .palmer-primary-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .palmer-primary-menu .sub-menu .sub-menu { left: auto; top: auto; transform: none; }
  .palmer-mobile-toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: var(--palmer-cream); color: var(--palmer-burgundy); }
  .palmer-brand { justify-self: center; }
  .palmer-hero img { aspect-ratio: 5/7; }
  .palmer-hero-content { inset: auto 5% 5%; width: 90%; padding: 1.25rem; border-radius: 1.5rem; }
  .palmer-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .palmer-footer-grid { grid-template-columns: 1fr; }
  .palmer-newsletter { padding-inline: .5rem; }
  .palmer-newsletter-form { border-radius: 20px; }
  .palmer-newsletter-form button { padding-inline: 1rem; }
  .palmer-footer-bottom { display: block; }
  .palmer-footer-bottom span { display: block; }
  .palmer-footer-bottom span + span { margin-top: .4rem; }
}

