/* =========================
   MEMORY BEARS - MAIN STYLE
   Homepage + Gallery + Shared Header/Footer
   ========================= */

:root {
  --bg: #f6f2eb;
  --header: #ddd4c4;
  --text: #22304a;
  --body: #4b4037;
  --muted: rgba(34, 48, 74, 0.68);
  --line: rgba(34, 48, 74, 0.12);
  --white: #ffffff;
  --max: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(1480px, calc(100% - 72px));
  margin: 0 auto;
  padding: 22px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  text-decoration: none;
  color: var(--text);
  line-height: 1;
}

.site-brand__title {
  display: block;
  font-size: clamp(2.25rem, 3.3vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.site-brand__subtitle {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34, 48, 74, 0.75);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

.site-nav a:hover {
  opacity: 0.65;
}

/* =========================
   HERO
   ========================= */

.hero {
  min-height: calc(100vh - 104px);
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.hero__inner {
  width: min(1380px, calc(100% - 104px));
  margin: 0 auto;
  padding: 58px 0 72px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(3.2rem, 4.8vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  color: var(--text);
  max-width: 610;
}

.hero__text {
  max-width: 470px;
  margin: 0 0 32px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--body);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__media {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
}

.hero__image {
  width: 100%;
  height: min(68vh, 660px);
  object-fit: cover;
  object-position: center;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}

.btn--secondary {
  color: var(--text);
  border: 1px solid var(--text);
  background: transparent;
}

.btn--secondary:hover {
  background: rgba(34, 48, 74, 0.05);
}

/* =========================
   PROCESS / HOW IT WORKS
   ========================= */

.process-section {
  padding: 90px 0 110px;
  background: var(--bg);
}

.process-section__inner {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
}

.process-section__header {
  max-width: 760px;
  margin-bottom: 52px;
}

.process-section__eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-section__title {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  color: var(--text);
}

.process-steps {
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 52px;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}

.process-step__number {
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--text);
}

.process-step__content {
  max-width: 720px;
}

.process-step__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.process-step__text {
  margin: 0;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--body);
}

/* =========================
   MAKER SECTION
   ========================= */

.maker-section {
  padding: 90px 0 110px;
}

.maker-section__inner {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.maker-section__content {
  max-width: 520px;
}

.maker-section__eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.maker-section__title {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--text);
}

.maker-section__text {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--body);
}

.maker-section__signature {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.maker-section__media {
  width: 100%;
}

.maker-section__video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =========================
   HOMEPAGE GALLERY / OUR BEARS
   ========================= */

.gallery {
  padding: 90px 0 110px;
  text-align: center;
}

.gallery .container {
  width: min(var(--max), calc(100% - 96px));
}

.section-sub {
  margin: 0 auto 36px;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.gallery-wrapper {
  margin-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.gallery-link {
  text-decoration: none;
  color: inherit;
}

.bear-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  padding: 22px;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bear-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.82);
}

.bear-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 18px;
  background: #ece5d8;
}

.bear-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--text);
}

.bear-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--body);
}

/* =========================
   GALLERY PAGE
   ========================= */

.gallery-page {
  padding: 72px 0 100px;
  text-align: center;
}

.gallery-page .container {
  width: min(var(--max), calc(100% - 96px));
}

.gallery-page h2 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(380px, 1fr));
  gap: 36px;
  max-width: 980px;
  margin: 50px auto 0;
}

.option-link {
  text-decoration: none;
  color: inherit;
}

.option-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.option-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.82);
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ece5d8;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.option-card:hover .card-image img {
  transform: scale(1.04);
}

.option-card h3 {
  margin: 26px 28px 14px;
  font-size: 28px;
  color: var(--text);
  line-height: 1.15;
  font-weight: 700;
}

.option-card p {
  margin: 0 28px 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  font-weight: 500 ;
}

.coming-soon {
  display: inline-block;
  margin: 0 18px 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================
   HOME CONTACT STRIP
   ========================= */

.home-contact-strip {
  padding: 80px 0 96px;
}

.home-contact-strip__inner {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.home-contact-strip__eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-contact-strip__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.home-contact-strip__intro p {
  margin: 0;
  max-width: 34rem;
  line-height: 1.8;
  color: var(--body);
}

.home-contact-strip__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1.75rem 2rem;
}

.home-contact-item span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-contact-item a {
  color: var(--text);
  text-decoration: none;
  line-height: 1.6;
}

.home-contact-item a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: var(--header);
  padding: 2rem 0;
}

.site-footer__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.site-footer__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 48, 74, 0.7);
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__meta {
  font-size: 0.8rem;
  color: rgba(34, 48, 74, 0.7);
  text-align: right;
}

/* =========================
   ADMIN SEARCH SHARED
   ========================= */

.admin-search-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-search-wrap input {
  flex: 1;
  min-width: 280px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 48, 74, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font: inherit;
}

.admin-search-wrap button {
  padding: 12px 16px;
  border: 1px solid rgba(34, 48, 74, 0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* Legal pages */

.legal-page {
  max-width: 820px;
  margin: 70px auto;
  padding: 0 22px 80px;
  color: #22304a;
  line-height: 1.75;
}

.legal-back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: #22304a;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 48, 74, 0.35);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.legal-updated {
  font-size: 14px;
  color: rgba(34, 48, 74, 0.7);
  margin-bottom: 42px;
}

.legal-page h2 {
  font-size: 18px;
  margin-top: 34px;
  margin-bottom: 10px;
  font-weight: 500;
}

.legal-page p {
  margin-bottom: 16px;
  font-size: 15px;
}

.legal-page strong {
  font-weight: 600;
}

.legal-page a {
  color: #22304a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .legal-page {
    margin: 42px auto;
    padding: 0 18px 60px;
  }

  .legal-page h1 {
    font-size: 34px;
  }
}

.site-footer {
  margin-top: 80px;
  padding: 30px 20px;
  border-top: 1px solid #ddd4c4;
  background: #f6f2eb;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left p {
  font-size: 13px;
  color: rgba(34, 48, 74, 0.7);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #22304a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom: 1px solid #22304a;
}

.site-footer__legal {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-footer__legal a {
  font-size: 11px;
  color: rgba(34, 48, 74, 0.75);
  text-decoration: none;
}

.site-footer__legal a:hover {
  text-decoration: underline;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px)   {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__title {
    max-width: 720px;
  }

  .hero__media {
    max-width: none;
  }

  .hero__image {
    height: 620px;
  }

  .maker-section__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    width: min(100%, calc(100% - 36px));
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

 .site-nav {
  width: 100%;
  display: flex;
  gap: 16px;

 
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}


.site-nav::-webkit-scrollbar {
  display: none;
}


.site-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.95rem;
}

  .hero {
    min-height: auto;
  }

  .hero__inner,
  .process-section__inner,
  .maker-section__inner,
  .gallery .container,
  .gallery-page .container,
  .home-contact-strip__inner {
    width: min(100%, calc(100% - 36px));
  }

  .hero__inner {
    padding: 52px 0 70px;
  }

  .hero__title {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

  .hero__image {
    height: 480px;
  }

  .process-section,
  .maker-section,
  .gallery,
  .gallery-page {
    padding: 64px 0 80px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 0 34px;
  }

  .process-step__number {
    font-size: 2.8rem;
  }

  .gallery-grid,
  .home-contact-strip__inner,
  .home-contact-strip__details {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__meta {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-brand__title {
    font-size: 2.1rem;
  }

  .site-nav {
    font-size: 0.9rem;
  }

  .hero__image {
    height: 380px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}


@media (max-width: 900px) {
  .options-grid,
  .gallery-grid,
  .home-contact-strip__inner,
  .home-contact-strip__details {
    grid-template-columns: 1fr;
  }
}

/* iPad / tablet hero image fix */
@media (min-width: 768px) and (max-width: 1180px) {
  .hero {
    min-height: auto;
  }

  .hero-image,
  .hero-media,
  .hero-visual {
    max-height: 520px;
    overflow: hidden;
  }

  .hero-image img,
  .hero-media img,
  .hero-visual img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
  }
}

/* Force iPad portrait homepage hero back into 2 columns */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .hero__inner {
    display: grid !important;
    grid-template-columns: 0.95fr 1.05fr !important;
    gap: 44px !important;
    align-items: center !important;
    padding: 56px 0 70px !important;
  }

  .hero__content {
    max-width: 520px !important;
  }

  .hero__media {
    max-width: 620px !important;
    margin-left: auto !important;
  }

  .hero__image {
    width: 100% !important;
    height: min(58vh, 560px) !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* iPad portrait final hero layout */
@media only screen 
  and (min-width: 768px) 
  and (max-width: 1024px) 
  and (orientation: portrait) {

  .hero {
    min-height: auto !important;
  }

  .hero__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, calc(100% - 72px)) !important;
    padding: 56px 0 64px !important;
    gap: 40px !important;
  }

  .hero__content {
    max-width: 680px !important;
  }

  .hero__title {
    max-width: 680px !important;
    font-size: clamp(3.8rem, 7vw, 5rem) !important;
  }

  .hero__media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hero__image {
    width: 100% !important;
    height: 420px !important;
    max-height: 480px !important;
    object-fit: cover !important;
    object-position: center 42% !important;
  }
}

