/*
Theme Name: Spyglė Innovative
Theme URI: https://www.spygle.lt/
Author: Spyglė
Description: Moderni, greita ir mobiliems įrenginiams pritaikyta tema augalų verslui „Spyglė – idėjos sodui“.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: spygle-innovative
Tags: e-commerce, custom-logo, custom-menu, featured-images, accessibility-ready, responsive-layout
*/

:root {
  --spygle-forest-950: #08251a;
  --spygle-forest-900: #0d3324;
  --spygle-forest-800: #154a34;
  --spygle-leaf-600: #4f7a33;
  --spygle-leaf-300: #b8d98b;
  --spygle-cream: #f5f2e9;
  --spygle-paper: #fffdf8;
  --spygle-ink: #132018;
  --spygle-muted: #627067;
  --spygle-orange: #df7d3d;
  --spygle-white: #ffffff;
  --spygle-line: rgba(13, 51, 36, 0.14);
  --spygle-shadow: 0 24px 70px rgba(8, 37, 26, 0.13);
  --spygle-radius-xl: 36px;
  --spygle-radius-lg: 26px;
  --spygle-radius-md: 18px;
  --spygle-container: 1240px;
  --spygle-ease: 220ms cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--spygle-ink);
  background: var(--spygle-paper);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto; height: auto;
  left: 16px; top: 16px;
  z-index: 100000;
  padding: 12px 16px;
  color: var(--spygle-white);
  background: var(--spygle-forest-900);
  border-radius: 10px;
}

.spygle-container {
  width: min(calc(100% - 40px), var(--spygle-container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--spygle-line);
  backdrop-filter: blur(16px);
}
.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 12px 40px rgba(8, 37, 26, .08);
}
.admin-bar .site-header.is-sticky { top: 32px; }
.brand-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 98px;
  gap: 24px;
}
.brand-contact {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--spygle-forest-800);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}
.brand-contact::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--spygle-orange);
  box-shadow: 0 0 0 6px rgba(223, 125, 61, .12);
}
.site-branding { justify-self: center; text-align: center; }
.site-branding a { display: inline-flex; align-items: center; text-decoration: none; }
.site-branding img, .custom-logo {
  width: auto;
  max-width: 320px;
  max-height: 68px;
  object-fit: contain;
}
.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  color: var(--spygle-forest-900);
  border: 1px solid var(--spygle-line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background var(--spygle-ease), color var(--spygle-ease), transform var(--spygle-ease);
}
.header-action:hover { color: var(--spygle-white); background: var(--spygle-forest-900); transform: translateY(-1px); }

.nav-shell { border-top: 1px solid var(--spygle-line); }
.primary-navigation { position: relative; }
.primary-navigation .menu,
.primary-navigation .menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation > .menu,
.primary-navigation div > .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 58px;
  white-space: nowrap;
}
.primary-navigation .menu-item { position: relative; }
.primary-navigation .menu-item > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  color: var(--spygle-ink);
  font-size: .94rem;
  font-weight: 750;
  text-decoration: none;
  transition: color var(--spygle-ease);
}
.primary-navigation .menu-item > a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a { color: var(--spygle-leaf-600); }
.primary-navigation .menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--spygle-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--spygle-ease);
}
.primary-navigation .menu-item > a:hover::after,
.primary-navigation .current-menu-item > a::after { transform: scaleX(1); }
.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 230px;
  padding: 12px;
  background: var(--spygle-paper);
  border: 1px solid var(--spygle-line);
  border-radius: 16px;
  box-shadow: var(--spygle-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity var(--spygle-ease), transform var(--spygle-ease), visibility var(--spygle-ease);
}
.primary-navigation .menu-item:hover > .sub-menu,
.primary-navigation .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.primary-navigation .sub-menu a {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
}
.primary-navigation .sub-menu a::after { display: none; }
.primary-navigation .sub-menu a:hover { background: var(--spygle-cream); }
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  color: var(--spygle-forest-900);
  background: transparent;
  border: 1px solid var(--spygle-line);
  border-radius: 14px;
}
.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 3px;
  transition: transform var(--spygle-ease), opacity var(--spygle-ease);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 118px) 0 80px;
  background:
    radial-gradient(circle at 18% 12%, rgba(184, 217, 139, .30), transparent 32%),
    linear-gradient(135deg, var(--spygle-paper), var(--spygle-cream));
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -130px; top: -130px;
  border: 1px solid rgba(21, 74, 52, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(21, 74, 52, .025), 0 0 0 130px rgba(21, 74, 52, .02);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(46px, 7vw, 96px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--spygle-leaf-600);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--spygle-orange); }
.hero h1 {
  max-width: 740px;
  margin: 0;
  color: var(--spygle-forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 6.8vw, 6.7rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.055em;
}
.hero h1 em { color: var(--spygle-leaf-600); font-style: italic; }
.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--spygle-muted);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform var(--spygle-ease), box-shadow var(--spygle-ease), background var(--spygle-ease), color var(--spygle-ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--spygle-white); background: var(--spygle-forest-900); box-shadow: 0 14px 34px rgba(13, 51, 36, .2); }
.button-primary:hover { background: var(--spygle-forest-800); box-shadow: 0 18px 42px rgba(13, 51, 36, .25); }
.button-secondary { color: var(--spygle-forest-900); background: transparent; border-color: var(--spygle-line); }
.button-secondary:hover { background: var(--spygle-white); }
.button-light { color: var(--spygle-forest-950); background: var(--spygle-white); }
.button-light:hover { background: var(--spygle-leaf-300); }

.hero-visual { position: relative; min-height: 610px; }
.hero-main-image {
  position: absolute;
  inset: 0 72px 62px 0;
  width: calc(100% - 72px);
  height: calc(100% - 62px);
  object-fit: cover;
  border-radius: 52% 32% 46% 30% / 32% 46% 34% 52%;
  box-shadow: var(--spygle-shadow);
}
.hero-detail-image {
  position: absolute;
  right: 0; bottom: 0;
  width: 42%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border: 8px solid var(--spygle-paper);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(8, 37, 26, .18);
}
.experience-card {
  position: absolute;
  left: -34px; bottom: 38px;
  z-index: 2;
  display: block;
  width: min(280px, 52%);
  padding: 22px 24px;
  color: var(--spygle-white);
  background: rgba(8, 37, 26, .94);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(8, 37, 26, .24);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform var(--spygle-ease), background var(--spygle-ease);
}
.experience-card:hover { transform: translateY(-5px); background: var(--spygle-forest-800); }
.experience-card strong { display: block; font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; }
.experience-card span { display: block; margin-top: 7px; color: rgba(255,255,255,.78); font-size: .86rem; }

.trust-strip { position: relative; z-index: 3; margin-top: -26px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--spygle-white);
  border: 1px solid var(--spygle-line);
  border-radius: var(--spygle-radius-lg);
  box-shadow: 0 20px 54px rgba(8, 37, 26, .08);
}
.trust-item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 24px 28px; }
.trust-item + .trust-item { border-left: 1px solid var(--spygle-line); }
.trust-number { color: var(--spygle-orange); font-family: Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.trust-item strong { display: block; color: var(--spygle-forest-950); font-size: .98rem; }
.trust-item span { display: block; color: var(--spygle-muted); font-size: .8rem; }

.section { padding: clamp(82px, 10vw, 136px) 0; }
.section-soft { background: var(--spygle-cream); }
.section-dark {
  color: var(--spygle-white);
  background:
    linear-gradient(110deg, rgba(8, 37, 26, .97) 0%, rgba(8, 37, 26, .93) 58%, rgba(8, 37, 26, .82) 100%),
    url("assets/images/kankoreziai.webp") center / cover no-repeat;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}
.section-heading h2 {
  max-width: 820px;
  margin: 0;
  color: var(--spygle-forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.section-heading p { margin: 0; color: var(--spygle-muted); }

.category-grid { display: grid; grid-template-columns: 1.25fr .85fr .85fr; gap: 20px; }
.category-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--spygle-white);
  border-radius: var(--spygle-radius-lg);
  text-decoration: none;
  isolation: isolate;
}
.category-card:nth-child(n+2) { min-height: 440px; }
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(5, 28, 19, .88), rgba(5, 28, 19, .06) 65%);
}
.category-card:hover img { transform: scale(1.055); }
.category-content { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 26px; }
.category-kicker { display: block; margin-bottom: 7px; color: var(--spygle-leaf-300); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.category-card h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; }
.category-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .84rem; font-weight: 800; }
.category-link::after { content: "→"; transition: transform var(--spygle-ease); }
.category-card:hover .category-link::after { transform: translateX(5px); }

.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(46px, 8vw, 110px); }
.story-image-wrap { position: relative; padding: 0 0 44px 44px; }
.story-image-wrap::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 58%; height: 62%;
  background: var(--spygle-leaf-300);
  border-radius: 28px;
}
.story-image-wrap img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--spygle-radius-lg); box-shadow: var(--spygle-shadow); }
.story-copy h2 { margin: 0; color: var(--spygle-forest-950); font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.story-copy p { color: var(--spygle-muted); }
.feature-list { display: grid; gap: 14px; margin: 28px 0 34px; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 750; }
.feature-list li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; color: var(--spygle-white); background: var(--spygle-leaf-600); border-radius: 50%; font-size: .78rem; }

.innovation-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: stretch; gap: 28px; }
.innovation-copy { padding: clamp(16px, 3vw, 38px) 0; }
.section-dark .eyebrow { color: var(--spygle-leaf-300); }
.innovation-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.innovation-copy p { max-width: 580px; color: rgba(255,255,255,.72); }
.innovation-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.innovation-card { min-height: 230px; padding: 28px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
.innovation-card:nth-child(2) { background: var(--spygle-orange); }
.innovation-card:nth-child(3) { background: var(--spygle-leaf-600); }
.innovation-card strong { display: block; font-family: Georgia, serif; font-size: 2.1rem; font-weight: 500; }
.innovation-card p { margin-bottom: 0; color: rgba(255,255,255,.76); font-size: .91rem; }

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: clamp(38px, 6vw, 74px);
  color: var(--spygle-white);
  background: var(--spygle-forest-800);
  border-radius: var(--spygle-radius-xl);
}
.cta-panel::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 360px; height: 360px;
  border: 70px solid rgba(255,255,255,.055);
  border-radius: 50%;
}
.cta-panel h2 { position: relative; z-index: 1; margin: 0; font-family: Georgia, serif; font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.cta-phone { display: inline-flex; align-items: center; min-height: 54px; padding: 12px 20px; color: var(--spygle-white); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 850; text-decoration: none; }

.site-main { min-height: 50vh; }
.content-wrap { padding: clamp(70px, 9vw, 120px) 0; }
.entry-header { max-width: 840px; margin: 0 auto 44px; text-align: center; }
.entry-title { margin: 0; color: var(--spygle-forest-950); font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.entry-content { width: min(100%, 900px); margin-inline: auto; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { color: var(--spygle-forest-900); font-family: Georgia, serif; line-height: 1.15; }
.entry-content a { color: var(--spygle-leaf-600); }
.entry-content img { border-radius: var(--spygle-radius-md); }
.elementor-page .content-wrap { padding: 0; }
.elementor-page .entry-header { display: none; }
.elementor-page .entry-content { width: 100%; max-width: none; }
.elementor-page .content-wrap > .spygle-container { width: 100%; max-width: none; }

.not-found { display: grid; place-items: center; min-height: 64vh; padding: 80px 20px; text-align: center; background: var(--spygle-cream); }
.not-found-inner { max-width: 720px; }
.not-found-code { color: var(--spygle-orange); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.not-found h1 { margin: 14px 0; color: var(--spygle-forest-950); font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; line-height: 1; }
.not-found p { color: var(--spygle-muted); }

.site-footer { color: rgba(255,255,255,.78); background: var(--spygle-forest-950); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: clamp(36px, 7vw, 90px); padding: 76px 0 58px; }
.footer-brand img { width: auto; max-width: 270px; max-height: 64px; padding: 5px 8px; background: var(--spygle-white); border-radius: 10px; }
.footer-brand p { max-width: 420px; margin: 22px 0 0; }
.footer-title { margin: 0 0 18px; color: var(--spygle-white); font-size: .86rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.footer-menu { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-menu a, .footer-contact a { text-decoration: none; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--spygle-leaf-300); }
.footer-contact { display: grid; gap: 10px; }
.social-link { display: inline-flex; margin-top: 18px; padding: 9px 14px; color: var(--spygle-white); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
  color: var(--spygle-white) !important;
  background: var(--spygle-forest-900) !important;
  border-radius: 999px !important;
}
.woocommerce div.product div.images img, .woocommerce ul.products li.product a img { border-radius: var(--spygle-radius-md); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .hero-visual { min-height: 520px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:first-child { grid-column: span 2; min-height: 470px; }
  .innovation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .site-header.is-sticky { top: 46px; }
  .spygle-container { width: min(calc(100% - 28px), var(--spygle-container)); }
  .brand-row { grid-template-columns: 1fr auto; min-height: 82px; }
  .brand-contact, .header-action { display: none; }
  .site-branding { justify-self: start; }
  .site-branding img, .custom-logo { max-width: 230px; max-height: 56px; }
  .nav-toggle { display: block; justify-self: end; }
  .nav-shell { border-top: 0; }
  .primary-navigation {
    position: fixed;
    inset: 82px 0 0;
    padding: 28px;
    background: var(--spygle-paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--spygle-ease), transform var(--spygle-ease), visibility var(--spygle-ease);
    overflow-y: auto;
  }
  .admin-bar .primary-navigation { inset: 128px 0 0; }
  .nav-open .primary-navigation { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-navigation > .menu, .primary-navigation div > .menu { display: block; min-height: 0; }
  .primary-navigation .menu-item > a { min-height: 52px; font-size: 1.05rem; }
  .primary-navigation .menu-item > a::after { bottom: 7px; }
  .primary-navigation .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 4px 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-open .nav-toggle span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(3) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 54px; }
  .hero-grid, .story-grid, .cta-panel { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; margin-top: 18px; }
  .hero-main-image { inset: 0 48px 52px 0; width: calc(100% - 48px); height: calc(100% - 52px); }
  .experience-card { left: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--spygle-line); }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:first-child, .category-card:nth-child(n+2) { grid-column: auto; min-height: 420px; }
  .innovation-cards { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .hero-main-image { inset: 0 32px 48px 0; width: calc(100% - 32px); height: calc(100% - 48px); border-radius: 44% 24% 38% 24% / 26% 40% 28% 45%; }
  .hero-detail-image { width: 46%; border-width: 5px; }
  .experience-card { bottom: 24px; width: 62%; padding: 16px 18px; }
  .experience-card strong { font-size: 1.55rem; }
  .innovation-cards { grid-template-columns: 1fr; }
  .innovation-card { min-height: 0; }
  .story-image-wrap { padding: 0 0 26px 26px; }
  .cta-panel { padding: 34px 24px; border-radius: 24px; }
  .cta-actions > * { width: 100%; text-align: center; justify-content: center; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
