/*
Theme Name: InStorage
Theme URI: https://instorage.pl/
Author: InStorage
Description: Dedykowany motyw strony InStorage z panelem zarządzania lokalizacjami skrytek.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: instorage
*/

:root {
  --instorage-image: url("assets/images/instorage-beach.jpg");
}

.freedom-image,
.postcard-photo-one,
.postcard-photo-two {
  background-image: var(--instorage-image);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.location-result[hidden] {
  display: none !important;
}

.location-results-empty {
  color: #123257a6;
  padding: 28px 10px;
  line-height: 1.55;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2ba66a;
}

.location-result[data-status="inactive"] .status-dot {
  background: #c34b43;
}

.location-result[data-status="preparation"] .status-dot {
  background: #dc9b16;
}

.active-location-card.is-hidden {
  display: none;
}

.active-location-card .location-card-status {
  margin-top: 6px;
  font-size: 12px;
}

.site-header .custom-logo-link {
  display: block;
}

.site-header .custom-logo {
  object-fit: contain;
  object-position: left center;
  width: 205px;
  height: 68px;
}

.site-header .primary-menu {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.default-page {
  width: min(900px, 90vw);
  min-height: 60vh;
  margin: 0 auto;
  padding: 80px 0;
}

.default-page h1 {
  margin-bottom: 28px;
  color: var(--navy);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
}

.default-page .entry-content {
  line-height: 1.75;
}

.default-page .entry-content > * + * {
  margin-top: 1.2em;
}

@media (max-width: 900px) {
  .site-header .custom-logo {
    width: 165px;
    height: 58px;
  }

  .site-header .primary-menu {
    display: none;
  }
}

/* Google Maps */
.google-map-wrap {
  position: relative;
  background: #d8f3f4;
}

.google-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-status-message {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100% - 40px));
  margin: 0;
  padding: 18px 22px;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: var(--cream);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 8px 9px #1232571a;
}

.map-status-message.is-error {
  border-color: #c34b43;
}

.active-location-card {
  z-index: 7;
}

.instorage-map-marker {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 50% 50% 50% 0;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px #12325740;
  transition: transform 0.2s, filter 0.2s;
}

.instorage-map-marker b {
  display: block;
  transform: rotate(45deg);
}

.instorage-map-marker.status-inactive {
  background: #d5d8db;
}

.instorage-map-marker.status-preparation {
  background: #ffb548;
}

.instorage-map-marker.is-selected {
  filter: drop-shadow(0 0 8px #fff);
  transform: rotate(-45deg) scale(1.25);
}

.instorage-map-cluster {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--cream);
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 9px #1232572b, 0 10px 24px #12325745;
  transition: transform 0.2s;
}

.instorage-map-cluster:hover {
  transform: scale(1.1);
}

/* Desktop: 1441 px i więcej */
@media (min-width: 1441px) {
  .site-header {
    padding-right: max(5vw, calc((100vw - 1680px) / 2));
    padding-left: max(5vw, calc((100vw - 1680px) / 2));
  }

  .section {
    padding: 120px max(5vw, calc((100vw - 1680px) / 2));
  }

  .hero-content {
    padding-left: max(5vw, calc((100vw - 1680px) / 2));
  }

  .location-browser {
    grid-template-columns: 430px 1fr;
    height: 720px;
  }
}

/* Laptop: 960–1440 px */
@media (min-width: 960px) and (max-width: 1440px) {
  .site-header {
    grid-template-columns: 190px 1fr 190px;
    gap: 16px;
    height: 84px;
    padding: 0 3vw;
  }

  .brand img,
  .site-header .custom-logo {
    width: 178px;
    height: 60px;
  }

  .site-header .primary-menu,
  .site-header nav {
    gap: clamp(15px, 2vw, 30px);
    font-size: 13px;
  }

  .button-small {
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .section {
    padding: 92px 4vw;
  }

  .hero {
    height: min(730px, calc(100vh - 84px));
    min-height: 640px;
  }

  .hero-content {
    max-width: 59%;
    padding: 90px 4vw 50px;
  }

  .hero h1 {
    font-size: clamp(60px, 6.3vw, 88px);
  }

  .hero-photo-frame {
    right: 2.5vw;
    width: min(45vw, 610px);
  }

  .hero-note {
    right: 35%;
  }

  .intro,
  .location-heading {
    column-gap: 7vw;
  }

  .location-browser {
    grid-template-columns: 380px 1fr;
    height: 650px;
  }

  .freedom-content {
    padding-right: 5vw;
    padding-left: 6vw;
  }

  .use-cases {
    gap: 6vw;
  }
}

/* Tablet: 768–959 px */
@media (min-width: 768px) and (max-width: 959px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 78px;
    padding: 0 28px;
  }

  .site-header nav,
  .site-header .primary-menu {
    display: none;
  }

  .brand img,
  .site-header .custom-logo {
    width: 170px;
    height: 58px;
  }

  .section {
    padding: 82px 32px;
  }

  .hero {
    height: auto;
    min-height: 820px;
    padding-bottom: 50px;
  }

  .hero-content {
    max-width: 100%;
    padding: 68px 32px 420px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(60px, 9vw, 78px);
  }

  .hero-photo-frame {
    inset: auto auto 38px 32px;
    width: calc(100% - 64px);
    height: 390px;
    border-radius: 180px 180px 24px 24px;
    transform: rotate(1deg);
  }

  .hero-photo {
    border-radius: 170px 170px 17px 17px;
  }

  .hero-sun {
    top: 32%;
    right: 7%;
    width: 105px;
    height: 105px;
  }

  .hero-note {
    display: none;
  }

  .intro,
  .location-heading,
  .faq,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .section-copy,
  .location-heading > p {
    margin-top: 26px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 48px;
  }

  .steps article,
  .steps article:nth-child(2),
  .steps article:nth-child(3) {
    min-height: 285px;
    padding: 24px;
    transform: none;
  }

  .steps h3 {
    margin-top: 30px;
    font-size: 20px;
  }

  .location-browser {
    grid-template-columns: 1fr;
    height: auto;
  }

  .location-panel {
    max-height: 540px;
    border-right: 0;
    border-bottom: 1px solid #dfe2e2;
    border-radius: 24px;
  }

  .demo-map {
    height: 520px;
    border-radius: 24px;
  }

  .freedom {
    grid-template-columns: 1fr;
  }

  .freedom-image {
    min-height: 460px;
    margin: 30px 32px 0;
  }

  .freedom-content {
    padding: 76px 32px;
  }

  .collage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .use-case-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .app-copy {
    padding: 65px 44px 30px;
  }

  .phone {
    margin-top: 20px;
  }

  .faq-list {
    margin-top: 28px;
  }
}

/* Mobile: do 767 px */
@media (max-width: 767px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 72px;
    padding: 0 16px;
  }

  .site-header nav,
  .site-header .primary-menu {
    display: none;
  }

  .brand img,
  .site-header .custom-logo {
    width: 148px;
    height: 52px;
  }

  .site-header .button-small {
    gap: 0;
    width: 44px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
  }

  .site-header .button-small span {
    font-size: 17px;
  }

  .section {
    padding: 66px 18px;
  }

  .hero {
    height: auto;
    min-height: 760px;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
    padding: 52px 18px 370px;
  }

  .hero h1 {
    max-width: 100%;
    margin: 20px 0;
    font-size: clamp(46px, 14vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-photo-frame {
    inset: auto auto 30px 18px;
    width: calc(100% - 36px);
    height: 340px;
    border-radius: 130px 130px 22px 22px;
    transform: rotate(1deg);
  }

  .hero-photo {
    border-radius: 122px 122px 15px 15px;
  }

  .photo-caption {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .hero-sun {
    top: 34%;
    right: 3%;
    width: 90px;
    height: 90px;
  }

  .hero-note {
    display: none;
  }

  .summer-ticker {
    justify-content: flex-start;
    min-height: 58px;
    padding: 13px 20px;
  }

  .section-heading h2,
  .location-heading h2,
  .freedom h2,
  .use-cases h2,
  .app-copy h2,
  .closing-cta h2 {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  .intro,
  .location-heading,
  .faq,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .section-copy,
  .location-heading > p {
    margin-top: 24px;
    font-size: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .steps article,
  .steps article:nth-child(2),
  .steps article:nth-child(3) {
    min-height: 235px;
    transform: none;
  }

  .location-browser {
    grid-template-columns: 1fr;
    height: auto;
    border-width: 6px;
    box-shadow: 8px 10px #1232571f;
  }

  .location-panel {
    max-height: 540px;
    padding: 22px 18px 0;
    border-right: 0;
    border-bottom: 1px solid #dfe2e2;
    border-radius: 24px;
  }

  .location-results {
    margin-right: -18px;
    margin-left: -18px;
  }

  .location-result {
    padding: 17px 15px;
  }

  .demo-map {
    height: 460px;
    border-radius: 24px;
  }

  .active-location-card {
    right: 12px;
    bottom: 20px;
    left: 12px;
    width: auto;
  }

  .map-status-message {
    width: calc(100% - 32px);
    padding: 15px 17px;
    font-size: 13px;
  }

  .freedom {
    grid-template-columns: 1fr;
  }

  .freedom-image {
    min-height: 330px;
    margin: 24px 18px 0;
    border-radius: 110px 24px;
  }

  .freedom-content {
    padding: 64px 18px;
  }

  .collage-heading {
    display: block;
  }

  .collage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 350px 260px 230px;
  }

  .postcard-photo-one {
    grid-row: auto;
  }

  .postcard-photo-two {
    display: none;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .use-case-grid article {
    min-height: 205px;
  }

  .app-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-card {
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .app-copy {
    padding: 54px 24px 20px;
  }

  .phone {
    width: min(282px, calc(100% - 24px));
    height: 510px;
    margin-top: 20px;
  }

  .phone-map {
    height: 260px;
  }

  .faq-list {
    margin-top: 24px;
  }

  summary {
    font-size: 16px;
  }

  .closing-cta {
    min-height: 450px;
    padding: 80px 18px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 35px 18px;
    text-align: center;
  }

  footer img {
    justify-self: center;
    object-position: center;
  }

  footer p {
    margin: 0;
  }

  footer div {
    justify-content: center;
  }
}

/* Stonowana paleta: żółty, grafit i ciepłe szarości */
:root {
  --ink: #1c1c1a;
  --navy: #1c1c1a;
  --blue: #5d5d58;
  --aqua: #d9d7cf;
  --sky: #e8e5dc;
  --yellow: #ffd23f;
  --coral: #d2aa2f;
  --sand: #e2dfd6;
  --cream: #f7f5ee;
  --white: #fffdf8;
}

body,
.intro,
.holiday-collage,
.faq {
  color: var(--ink);
  background: var(--cream);
}

.site-header,
footer {
  color: var(--ink);
  background: #faf8f2;
}

.site-header::after {
  background: #1c1c1a20;
}

.button,
.step-icon,
.locker-preview button,
.active-location-card div a,
.postcard-yellow {
  color: var(--ink);
  background: var(--yellow);
}

.button-dark {
  color: var(--cream);
  background: var(--ink);
}

.hero {
  color: var(--ink);
  background: linear-gradient(135deg, #e3e1da 0%, #efead8 58%, #f4e4a7 100%);
}

.hero::before {
  opacity: 0.22;
  background-image: radial-gradient(#1c1c1a55 1px, transparent 1px);
}

.hero h1 em {
  color: #5d5d58;
  text-shadow: none;
}

.hero-lead {
  color: #3f3f3bd1;
}

.eyebrow {
  color: var(--ink);
}

.eyebrow span {
  background: var(--yellow);
}

.hero-photo-frame,
.photo-caption,
.hero-note {
  background: #faf8f2;
}

.hero-sun,
.closing-sun {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 0 0 18px #ffd23f2e;
}

.hero-sun span,
.hero-sun::before,
.hero-sun::after,
.hero-sun span::before {
  background: var(--ink);
}

.summer-ticker {
  color: var(--cream);
  background: var(--ink);
}

.summer-ticker i {
  border-color: var(--yellow);
}

.kicker,
.step-number,
.map-disclaimer,
.result-copy small,
.result-meta span,
.active-location-card small,
details p,
.section-copy,
.location-heading > p,
.use-cases-intro > p:not(.kicker),
.use-case-grid p,
footer {
  color: #686863;
}

.steps article,
.steps article:first-child,
.steps article:nth-child(2),
.steps article:nth-child(3) {
  border-color: #2b2b28;
  box-shadow: 8px 9px #1c1c1a14;
}

.steps article:first-child {
  background: #f3e7b9;
}

.steps article:nth-child(2) {
  background: #e2e0d8;
}

.steps article:nth-child(3) {
  background: #eee4bd;
}

.steps article:nth-child(2) .step-icon {
  background: #faf8f2;
}

.steps article:nth-child(3) .step-icon {
  color: var(--ink);
  background: #e2c45d;
}

.locations {
  background: linear-gradient(180deg, #dddbd3 0%, #f7f5ee 100%);
}

.locations::before {
  border-color: #fffdf870;
}

.location-browser {
  border-color: #faf8f2;
  box-shadow: 12px 14px #1c1c1a1c;
}

.location-panel,
.location-result,
.search-box,
.active-location-card,
.map-controls button,
.map-legend {
  background: var(--cream);
}

.location-result:hover,
.location-result.is-active {
  background: #f3e7b9;
}

.location-result,
.location-panel,
.result-meta,
.faq-list,
details {
  border-color: #1c1c1a24;
}

.result-copy em,
.active-location-card b {
  color: #4f4f4a;
}

.google-map-wrap {
  background: #d8d6cf;
}

.google-map {
  filter: grayscale(0.72) sepia(0.12) saturate(0.72) contrast(0.96);
}

.map-status-message {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--cream);
  box-shadow: 8px 9px #1c1c1a17;
}

.instorage-map-marker {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--yellow);
}

.instorage-map-marker.status-inactive {
  background: #bdbdb7;
}

.instorage-map-marker.status-preparation {
  background: #e5c766;
}

.instorage-map-cluster {
  color: var(--cream);
  border-color: var(--cream);
  background: var(--ink);
  box-shadow: 0 0 0 9px #1c1c1a24, 0 10px 24px #1c1c1a3b;
}

.freedom {
  background: #20201e;
}

.freedom::after {
  border-color: #ffd23f1f;
}

.freedom-image {
  border-color: #f7f5ee;
}

.freedom-content > p:not(.kicker) {
  color: #d1d0ca;
}

.freedom .kicker,
.freedom li span,
.freedom h2 em {
  color: var(--yellow);
}

.holiday-collage em {
  color: var(--ink);
  text-decoration-color: var(--yellow);
}

.postcard {
  border-color: #faf8f2;
  box-shadow: 10px 12px #1c1c1a12;
}

.postcard-blue {
  color: var(--ink);
  background: #d2d0c8;
}

.postcard-photo-one::after,
.postcard-photo-two::after {
  background: linear-gradient(transparent 52%, #1c1c1a99);
}

.use-cases {
  background: #e2dfd6;
}

.use-case-grid article,
.use-case-grid article:nth-child(2),
.use-case-grid article:nth-child(3),
.use-case-grid article:nth-child(4) {
  border-color: #2b2b2838;
  box-shadow: 6px 7px #1c1c1a12;
}

.use-case-grid article {
  background: #f7f5ee;
}

.use-case-grid article:nth-child(2) {
  background: #dbd9d1;
}

.use-case-grid article:nth-child(3) {
  background: #eee3b9;
}

.use-case-grid article:nth-child(4) {
  background: #e4e1d8;
}

.app-section {
  background: #d8d6cf;
}

.app-card {
  background: var(--yellow);
  box-shadow: 14px 16px #1c1c1a1f;
}

.phone,
.locker-preview {
  background: #f7f5ee;
}

.phone {
  border-color: var(--ink);
}

.phone-map {
  background: #dad8d0;
}

.phone-map::before,
.phone-map::after {
  background: #c8c6be;
}

.map-line {
  background: #f7f5ee;
}

.faq details {
  border-color: #1c1c1a2b;
  background: #faf8f2;
  box-shadow: none;
}

summary span {
  color: #5d5d58;
}

.closing-cta {
  color: var(--ink);
  background: #d8d6cf;
}

.closing-cta .kicker {
  color: #5d5d58;
}

.closing-cta h2 em {
  color: #5d5d58;
  text-shadow: none;
}

.closing-wave {
  border-color: #fffdf875 transparent;
}

.button-light {
  color: var(--ink);
  background: var(--yellow);
}
