/*
Theme Name: Auto Logistics Japan
Theme URI: http://localhost/atl_new
Author: Auto Logistics Japan
Author URI: http://localhost/atl_new
Description: A custom logistics theme for Auto Logistics Japan. Front page features an editable hero/slider, an intro section (edited in Pages → Home), and a manageable Services grid. Poppins design system with a fixed header that turns solid on scroll.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: auto-logistics-japan
Tags: logistics, business, custom-colors, custom-menu, featured-images, translation-ready
*/

/* =====================================================
   Palette — Vivid Red #8c0c04 · Cream #f4f1ec/#fffcf6
   Dark Gray Blue #222344 · White #fefefe
   ===================================================== */
:root {
  --red: #8c0c04;
  --red-dark: #6f0a03;
  --cream: #f4f1ec;
  --cream-light: #fffcf6;
  --navy: #222344;
  --white: #fefefe;
  --ink: #2a2b3c;
  --muted: #5c5d6b;
  --header-h: 118px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: inherit; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

/* generic icon strokes */
.ic, .caret { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* =========================== HEADER =========================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0 14px;
  color: var(--cream);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
/* Solid state: on scroll (front page) OR always on inner pages (no hero) */
.site-header.scrolled,
body:not(.alj-front) .site-header {
  background: var(--cream-light);
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.nav-inner {
  width: min(var(--wrap), 94vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand utility utility"
    "primary primary signin";
  align-items: center;
  column-gap: 28px;
  row-gap: 2px;
}

.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 12px; }
.brand-badge { display: inline-grid; place-items: center; }
/* Uploaded logo: keep its real proportions. The old rule forced a 34px circle
   with object-fit:cover, which cropped the sides off anything non-square. */
.brand-badge .custom-logo,
.footer-logo .custom-logo {
  width: auto;
  height: 40px;
  max-width: 180px;
  border-radius: 0;
  object-fit: contain;
}
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }

/* utility row */
.nav-utility {
  grid-area: utility;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0; padding: 0;
}
.util-item { flex: 0 0 auto; }
.util-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  color: inherit; font: inherit; font-size: 1.13rem; padding: 4px 0;
}
.util-btn .ic { width: 28.2px; height: 28.2px; color: inherit; }
.util-btn:hover { opacity: .8; }

/* inline expanding search */
.search-inline {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: 30px;
  padding: 8px 0; margin: 0;
  transition: max-width .35s var(--ease), opacity .25s var(--ease),
              padding .35s var(--ease), border-color .25s var(--ease);
}
.search-inline.is-open {
  max-width: 340px; opacity: 1; padding: 8px 18px; margin-right: 4px;
  border-color: currentColor;
}
.site-header.scrolled .search-inline.is-open,
body:not(.alj-front) .search-inline.is-open { background: #fff; }
.search-inline .ic { flex: 0 0 auto; }
.search-inline input {
  width: 240px; background: none; border: 0; outline: none;
  color: inherit; font: inherit; font-size: 1rem;
}
.search-inline input::placeholder { color: currentColor; opacity: .7; }

/* primary nav (WordPress menu output mapped to the design) */
.nav-primary { grid-area: primary; }
.nav-primary ul { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-primary li { position: relative; }
.nav-primary a,
.nav-primary .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: inherit; font: inherit; font-size: 1.13rem; padding: 6px 0;
  position: relative;
}
.nav-primary a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: currentColor; transition: width .25s var(--ease);
}
.nav-primary li:hover > a::after,
.nav-primary a:focus-visible::after { width: 100%; }
.nav-primary > ul > li:hover > a { color: var(--cream-light); }
.site-header.scrolled .nav-primary > ul > li:hover > a,
body:not(.alj-front) .nav-primary > ul > li:hover > a { color: var(--red); }

/* caret on parent items (uses currentColor via mask) */
.nav-primary .menu-item-has-children > a { padding-right: 22px; }
.nav-primary .menu-item-has-children > a::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s var(--ease);
}
.nav-primary .menu-item-has-children:hover > a::before { transform: translateY(-50%) rotate(180deg); }

.btn-signin {
  grid-area: signin;
  justify-self: end;
  border: 1.5px solid currentColor;
  border-radius: 14px;
  padding: 12px 26px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.site-header.scrolled .btn-signin:hover,
body:not(.alj-front) .btn-signin:hover { background: var(--navy); color: var(--cream-light); }
body.alj-front .site-header:not(.scrolled) .btn-signin:hover { background: var(--cream-light); color: var(--navy); }

/* dropdowns — utility (.dropdown) + nav (.sub-menu) share styling */
.has-dropdown { position: relative; }
.dropdown,
.nav-primary .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 210px;
  background: var(--cream-light);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(34, 35, 68, .18);
  padding: 10px;
  list-style: none;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 50;
}
.lang-dropdown { left: auto; right: 0; min-width: 150px; }
.dropdown a,
.nav-primary .sub-menu a {
  color: var(--navy);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-primary .sub-menu a::after { display: none; }
.dropdown a:hover, .dropdown a.is-active,
.nav-primary .sub-menu a:hover { background: var(--red); color: var(--white); }
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown,
.nav-primary li:hover > .sub-menu,
.nav-primary .menu-item-has-children.open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* 2-column dropdown when it has many children */
.nav-primary .menu-item-has-children.mega-wide > .sub-menu { grid-template-columns: 1fr 1fr; min-width: 420px; }

.hamburger { display: none; }

/* =========================== HERO / SLIDER =========================== */
.hero {
  position: relative;
  min-height: 640px;
  color: var(--cream-light);
  overflow: hidden;
}
.hero-slides { position: relative; min-height: 640px; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 70px;
  background: var(--hero-bg, url("assets/hero-containers.svg")) center/cover no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20, 22, 32, .72) 0%, rgba(20, 22, 32, .45) 45%, rgba(20, 22, 32, .30) 100%);
}
.hero-content { position: relative; width: min(var(--wrap), 92vw); margin-inline: auto; }
.hero-title, .hero-slide h2.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02; font-weight: 400; margin: 0 0 26px;
  letter-spacing: -.01em; color: var(--cream-light);
}
.hero-sub { max-width: 430px; font-size: 1.15rem; font-weight: 300; line-height: 1.5; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-progress { margin-top: 46px; width: 260px; height: 3px; background: rgba(255, 255, 255, .28); border-radius: 2px; position: relative; }
.hero-progress span { display: block; width: 62px; height: 100%; background: var(--cream-light); border-radius: 2px; transition: transform .6s var(--ease); }

.hero-scroll {
  position: absolute; right: max(4vw, 24px); bottom: 60px; z-index: 3;
  color: var(--cream-light); animation: bob 1.8s var(--ease) infinite;
}
.hero-scroll svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* dots when there are multiple slides */
.hero-dots { position: absolute; left: max(4vw, 24px); bottom: 64px; z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .45); transition: .2s; }
.hero-dots button.is-active { background: var(--cream-light); transform: scale(1.15); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 6px; font-weight: 500; font-size: 1.02rem;
  border: 1.5px solid transparent; transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(140, 12, 4, .34); }
.btn-solid:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: var(--cream-light); color: var(--cream-light); }
.btn-ghost:hover { background: var(--cream-light); color: var(--navy); }

/* =========================== ANNOUNCEMENT =========================== */
/* Front-page only, so it lives here rather than in pages.css (which is not
   enqueued on the front page). The bar overlaps the hero's lower edge. */
.ann {
  width: min(var(--wrap), 92vw); margin-inline: auto;
  position: relative; z-index: 5; margin-top: -46px;
}
/* main.js adds .is-empty once every notice has been dismissed. */
.ann.is-empty { display: none; }
/* z-index above creates a stacking context, which would otherwise trap the
   popup below the header (z-index 100) however high its own z-index is. */
body.ann-open .ann { z-index: 300; }

/* These paths are outlines, not shapes — without this the browser fills them
   and the chevron becomes a solid triangle while the ✕ vanishes entirely.
   Same properties as .ic, minus its fixed 20px sizing. */
.ann svg {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.ann-bar {
  display: flex; align-items: center; gap: 20px;
  background: #f4f1ec; color: var(--ink);
  border-radius: 10px; padding: 18px 22px;
  box-shadow: 0 10px 26px rgba(34, 35, 68, .09);
}
.ann-bar[hidden] { display: none; }
.ann-icon { width: 30px; height: 30px; flex: none; color: var(--navy); }
.ann-bar-text { margin: 0; flex: 1; font-size: 1.05rem; }
.ann-bar-text strong { font-weight: 600; color: var(--navy); }
/* .btn is written for <a>; as a <button> it needs the font spelling out. */
.ann-bar .ann-more { flex: none; padding: 12px 26px; font-size: .98rem; font-family: inherit; cursor: pointer; }

.ann-close, .ann-dismiss {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--muted);
  transition: color .2s;
}
.ann-close:hover, .ann-dismiss:hover { color: var(--red); }
.ann-dismiss svg { width: 18px; height: 18px; }

/* Step to the next notice — only rendered when there is more than one. */
.ann-next {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--navy);
  transition: background .2s, color .2s;
}
.ann-next:hover { background: rgba(34, 35, 68, .07); color: var(--red); }
.ann-next svg { width: 22px; height: 22px; }

/* ---- Full-message popup ---- */
.ann-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 5vh 4vw;
  background: rgba(34, 35, 68, .55);
}
.ann-modal[hidden] { display: none; }
.ann-modal-panel {
  position: relative;
  width: min(920px, 100%); max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--cream-light); color: var(--ink);
  border-radius: 12px; padding: 30px 38px 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
/* The panel is focused programmatically on open so screen readers land inside
   it. Doubled up to out-specify the global :focus-visible rule at the end of
   this file, which would otherwise ring the whole panel in red. */
.ann-modal-panel:focus, .ann-modal-panel:focus-visible { outline: none; }

.ann-dismiss { position: absolute; top: 18px; right: 22px; font-size: 1.05rem; color: var(--ink); }
.ann-title {
  margin: 12px 0 4px; padding-right: 170px;
  font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.15; color: var(--navy);
}
.ann-sub { margin: 0 0 6px; font-size: 1.3rem; font-weight: 300; color: var(--navy); }
.ann-updated { margin: 0 0 18px; font-style: italic; color: var(--muted); font-size: .98rem; }

/* Body typography has to be declared here: the .entry-content rules live in
   pages.css, which never loads on the front page. */
.ann-body {
  overflow-y: auto; flex: 1; padding-right: 14px;
  scrollbar-width: thin;
}
.ann-body::-webkit-scrollbar { width: 8px; }
.ann-body::-webkit-scrollbar-thumb { background: #b9b6b0; border-radius: 8px; }
.ann-body h2, .ann-body h3, .ann-body h4 {
  color: var(--navy); font-weight: 500; line-height: 1.25; margin: 22px 0 8px;
}
.ann-body h2 { font-size: 1.5rem; }
.ann-body h3 { font-size: 1.25rem; }
.ann-body h4 { font-size: 1.08rem; }
.ann-body > :first-child { margin-top: 0; }
.ann-body p { margin: 0 0 14px; font-size: 1.02rem; }
.ann-body ul, .ann-body ol { margin: 0 0 16px; padding-left: 22px; }
.ann-body li { margin: 0 0 6px; font-size: 1.02rem; }
.ann-body strong { font-weight: 600; color: var(--navy); }
.ann-body a { color: var(--red); text-decoration: underline; }
.ann-body hr { border: 0; border-top: 1px solid rgba(34, 35, 68, .2); margin: 22px 0; }

/* Stop the page scrolling behind an open popup. */
body.ann-open { overflow: hidden; }

/* =========================== INTRO (from Home page body) =========================== */
.intro { position: relative; background: var(--cream); padding: 96px 0 40px; }
/* The bar eats into the intro's top padding while it is present. */
.ann:not(.is-empty) + .intro { padding-top: 64px; }
.intro-title, .intro .wrap > h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400; line-height: 1.12; color: var(--navy);
  margin: 0 0 40px;
}
.intro-copy { max-width: 900px; }
.intro-copy p, .intro .wrap p, .intro .cols p {
  color: var(--ink); font-size: 1.25rem; font-weight: 400; margin: 0 0 26px;
}
.intro .cols { max-width: 900px; display: flex; flex-direction: column; }
.intro a { color: var(--red); text-decoration: underline; }

.side-chevron {
  position: absolute; right: max(3vw, 20px); top: 55%;
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1.5px solid var(--navy); border-radius: 12px; color: var(--navy);
  background: var(--cream-light); transition: background .2s, color .2s, transform .2s var(--ease);
}
.side-chevron:hover { background: var(--navy); color: var(--cream-light); transform: translateY(-2px); }
.side-chevron svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================== SERVICES =========================== */
.services { position: relative; background: var(--cream); padding: 40px 0 110px; }
.section-title { text-align: center; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; color: var(--navy); margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.25rem; margin: 0 0 54px; font-weight: 500; }

.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 26px; }
.service-card { display: flex; flex-direction: column; text-align: center; }
.service-card h3 {
  font-size: 1.12rem; font-weight: 500; color: var(--navy); line-height: 1.25;
  margin: 0 0 18px; min-height: 2.8em; display: flex; align-items: flex-end; justify-content: center;
}
.card-img {
  position: relative; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden;
  background: var(--thumb, #4d6b7a); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(34, 35, 68, .12);
}
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .28)); z-index: 1; }
.card-img svg { position: relative; z-index: 2; width: 46%; height: 46%; color: rgba(255, 255, 255, .92); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service-card .btn-details {
  margin-top: 16px; background: var(--red); color: var(--white);
  padding: 13px 10px; border-radius: 12px; font-weight: 500; font-size: 1rem;
  transition: background .2s, transform .18s var(--ease);
}
.service-card .btn-details:hover { background: var(--red-dark); transform: translateY(-2px); }

/* =========================== GENERIC PAGE / POST (inner pages) =========================== */
.page-wrap { max-width: 820px; margin: 0 auto; padding: calc(var(--header-h) + 56px) 20px 90px; }
.page-wrap .entry-title { color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; margin: 0 0 24px; }
.page-wrap .entry-content p { margin: 0 0 18px; color: var(--ink); font-size: 1.1rem; }
.page-wrap .entry-content a { color: var(--red); text-decoration: underline; }
.page-wrap img { border-radius: 8px; margin: 18px 0; }
/* Search-term highlight. background:none is required — <mark> defaults to yellow. */
.page-wrap mark { background: none; color: var(--red); font-weight: 600; }
.posts-nav { margin-top: 30px; }

/* WordPress helper classes */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin: 12px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* =========================== FOOTER =========================== */
.site-footer { background: #0c0c0e; color: var(--cream); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr;
  grid-template-areas: "brand search";
  gap: 34px 40px;
  align-items: start;
}
.footer-brand { grid-area: brand; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo .brand-name { font-size: 1.5rem; font-weight: 600; }
/* Footer logo sizing is shared with the header rule near the top of this file. */
.footer-brand address { font-style: normal; margin-top: 20px; color: #cfccc6; font-weight: 400; line-height: 1.7; font-size: 1.25rem; }

.footer-search { grid-area: search; }
.footer-label { font-size: 1.25rem; margin: 0 0 14px; font-weight: 400; }
.footer-label.center { text-align: center; }
.footer-label.right { text-align: right; }
.footer-searchbar { display: flex; align-items: center; background: transparent; border: 1.5px solid #55555c; border-radius: 30px; padding: 6px 8px 6px 20px; }
.footer-searchbar input { flex: 1; background: none; border: 0; outline: none; color: var(--cream); font: inherit; }
.footer-searchbar input::placeholder { color: #8b8b91; }
.footer-searchbar button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #2a2a2e; color: var(--cream); cursor: pointer; }
.footer-searchbar button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.footer-social-section { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 85px 0; }
.footer-col { }
.social-row, .contact-row { display: flex; gap: 18px; }
.contact-row { justify-content: flex-end; }
.social-row a, .contact-row a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  color: var(--cream); transition: background .2s, transform .2s var(--ease);
}
.social-row a svg, .contact-row a svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-row a:hover, .contact-row a:hover { transform: translateY(-2px); }

.store-row { display: flex; gap: 16px; justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; border: 1.5px solid #55555c; border-radius: 14px; padding: 10px 22px; transition: border-color .2s, background .2s; }
.store-btn:hover { border-color: var(--cream); background: rgba(255, 255, 255, .05); }
.store-btn svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.store-btn span { display: flex; flex-direction: column; font-size: 1rem; font-weight: 500; line-height: 1.15; }
.store-btn small { font-size: .85rem; font-weight: 400; color: #b9b6b0; }

.footer-bar { background: var(--red); margin-top: 56px; }
.footer-bar-inner { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 16px 0; flex-wrap: wrap; }
.footer-bar .privacy { text-decoration: underline; color: var(--white); font-size: .95rem; }
.footer-bar .copyright { margin: 0; color: var(--white); font-size: .95rem; font-weight: 300; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .nav-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand primary actions"; }
  /* Smaller logo so the brand block can't crowd the nav on narrow screens. */
  .brand-badge .custom-logo,
  .footer-logo .custom-logo { height: 32px; max-width: 140px; }
  .nav-utility { display: none; }
  .btn-signin { display: none; }
  .nav-primary { grid-area: primary; }
  .hamburger {
    grid-area: actions; justify-self: end; display: inline-grid; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 6px; color: inherit;
  }
  .hamburger span { width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }

  .nav-primary {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream-light); color: var(--navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav-primary.open { max-height: 80vh; overflow: auto; }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 6vw; }
  .nav-primary > ul > li { border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .nav-primary a { width: 100%; justify-content: space-between; padding: 16px 0; color: var(--navy); }
  /* Keep parent links readable on touch (no invisible cream-light hover state). */
  .nav-primary > ul > li:hover > a,
  body:not(.alj-front) .nav-primary > ul > li:hover > a { color: var(--navy); }
  .nav-primary a::after { display: none; }
  .nav-primary .menu-item-has-children > a::before { right: 2px; }
  .dropdown,
  .nav-primary .sub-menu {
    position: static; box-shadow: none; background: transparent; padding: 0 0 10px 10px;
    opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease); min-width: 0;
  }
  .has-dropdown.open > .dropdown,
  .nav-primary .menu-item-has-children.open > .sub-menu { max-height: 600px; }
  .nav-primary .menu-item-has-children.mega-wide > .sub-menu { grid-template-columns: 1fr; min-width: 0; }
  .dropdown a:hover, .dropdown a.is-active,
  .nav-primary .sub-menu a:hover { background: transparent; color: var(--red); }
  .dropdown a, .nav-primary .sub-menu a { white-space: normal; }

  .side-chevron { display: none; }

  /* Bar: let the text wrap under the icon rather than squeezing the button. */
  .ann { margin-top: -30px; }
  .ann-bar { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
  .ann-bar-text { flex: 1 1 100%; order: 2; font-size: 1rem; }
  .ann-icon { order: 1; }
  .ann-close { order: 1; margin-left: auto; }
  .ann-bar .ann-more { order: 3; }
  .ann-modal { padding: 3vh 3vw; }
  .ann-modal-panel { padding: 26px 24px 28px; max-height: 92vh; }
  .ann-title { padding-right: 0; margin-top: 34px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "search"; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-social-section { margin: 34px 0 0; flex-direction: column; align-items: center; }
  .footer-label.right, .footer-label.center { text-align: center; }
  .contact-row, .social-row, .store-row { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }

  .ann { margin-top: -20px; }
  .ann-bar .ann-more { width: 100%; }
  .ann-close span, .ann-dismiss span { display: none; }
  .ann-modal { padding: 0; }
  .ann-modal-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .ann-sub { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .btn:hover, .side-chevron:hover, .service-card .btn-details:hover, .social-row a:hover, .contact-row a:hover, .hero-slide { transition: none; transform: none; }
}

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
body.alj-front .site-header:not(.scrolled) :focus-visible { outline-color: var(--cream-light); }
