/* ======================================================
   GALAZ DOJO – LANDING 
      extra.css (rensad + stabil)
   ====================================================== */
:root{
  --landing-title-size: clamp(1.85rem, 2.7vw, 2.75rem);
}

/* ======================================================
   0) STARTSIDA – SCOPE + SIDTITEL
   ====================================================== */

/* Lite luft efter att H1 döljs */
.md-content__inner {
  padding-top: 0.5rem;
}

/* ======================================================
   1) HERO – FULLSCREEN + FULLBREDD
   ====================================================== */

.landing-hero--bg{
  min-height: 100vh;

  width: 100vw;
  max-width: 100vw;

  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  background-image: var(--hero-bg);
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;

  padding: 0;
  border-bottom: none;

  display: flex;
  align-items: flex-end;

  overflow: visible; /* så hint inte klipps */
}

.landing-hero--bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.35) 35%,
    rgba(0,0,0,.10) 60%,
    rgba(0,0,0,0) 80%
  );
  pointer-events: none;
}

/* Inner: plats för sticky header + bottenluft för hint */
.landing-hero--bg .landing-hero__inner{
  width: 100%;
  padding-top: calc(var(--md-header-height) + 2.25rem);
  padding-bottom: clamp(7rem, 10vh, 8rem);

  /* aligna mot header/grid */
  padding-left: .4rem;
  padding-right: .4rem;

  position: relative;
  z-index: 1;
  overflow: visible;
}

.landing-hero__content{
  margin-top: 2.75rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px){
  .landing-hero__content{ margin-top: 3.5rem; }
}

/* Visual-kolumn (om du vill använda senare: ta bort display:none) */
.landing-hero--bg .landing-hero__visual{
  display: none;
}

@media (max-width: 700px){
  .landing-hero--bg .landing-hero__inner{
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 6.25rem;
  }
}

/* ======================================================
   2) HERO TEXT – typografi (ingen låda)
   ====================================================== */

.landing-hero--bg .landing-hero__content,
.landing-hero--bg .landing-hero__content::before{
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

.landing-hero__title{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: var(--landing-title-size)!important;
  margin: 0 0 .55rem 0;
  text-wrap: balance;

  color: rgba(255,255,255,.92)!important;
  text-shadow: 0 2px 10px rgba(0,0,0,.35)!important;
}

.landing-hero__subtitle{
  font-size: clamp(1.0rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 1.1rem 0;

  color: rgba(255,255,255,.75);
  text-wrap: balance;
  text-shadow: 0 5px 10px rgba(0,0,0,9);
}


/* ======================================================
   3) HERO CTA – rak form + mindre kompakt
   ====================================================== */

.landing-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-hero__actions .md-button{
  border-radius: 0.25rem !important;
  padding: 0.80em 1.55em !important;
  min-height: 44px;
  font-weight: 700;
  line-height: 1.1;
}

.landing-hero__actions .md-button--primary{
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.landing-hero__actions .md-button--primary:hover{
  background-color: #111 !important;
  border-color: #111 !important;
}

.landing-hero__actions .md-button:not(.md-button--primary){
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: #fff !important;
  backdrop-filter: blur(6px);
}
.landing-hero__actions .md-button:not(.md-button--primary):hover{
  background: rgba(255,255,255,.18);
}

@media (max-width: 700px){
  .landing-hero__actions{ gap: .75rem; }
  .landing-hero__actions .md-button{
    width: 100%;
    padding: 0.90em 1.35em !important;
    font-size: 1rem;
  }
}

/* ======================================================
   4) SCROLL HINT – pil
   ====================================================== */

.landing-scroll-hint{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(6rem + env(safe-area-inset-bottom));

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  z-index: 10;
  transition: opacity 240ms ease, transform 240ms ease, background .15s ease, border-color .15s ease;
}

.landing-scroll-hint:hover{
  background: rgba(0,0,0,0.32);
  border-color: rgba(255,255,255,0.35);
}

.landing-scroll-hint__arrow{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.95);
  border-bottom: 2px solid rgba(255,255,255,0.95);
  transform: rotate(45deg);
  margin-top: -2px;
  animation: landing-arrow-bounce 1.6s infinite;
}

@keyframes landing-arrow-bounce{
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: .7; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

.landing-scroll-hint.is-hidden{
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

/* ======================================================
   5) SCROLL REVEAL
   ====================================================== */

.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 620ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }
.reveal[data-delay="5"] { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ======================================================
   6) LANDING – TYPOGRAFI + BREDD (UNDER HERO)
   ====================================================== */

.landing-home{
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;

}

/* H2 på landningen */
.landing-home h2{
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: var(--landing-title-size);
  line-height: 1.06;
  margin: 0 0 1.6rem 0;
  color: rgba(255,255,255,.88);
}

/* luft mellan block */
.landing-home hr{
  margin: 3rem 0;
  opacity: 0.25;
}

/* Mobil */
@media (max-width: 60em){
  .landing-home{
    max-width: 44rem;
  }
  .landing-home h2{
    font-size: 2rem;
    margin-bottom: 1.1rem;
  }
}

/* ======================================================
   8) FEATURES – "More than just a static site"
   (du använder <div class="grid"> ... </div>)
   ====================================================== */

/* FEATURES-grid: gälla bara grid som INTE är cards */
.landing-home .reveal > .grid:not(.cards){
  display: grid;
  gap: 3rem !important;
  align-items: center;
}

@media (max-width: 60em){
  .landing-home .reveal > .grid:not(.cards){
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.landing-home .landing-placeholder{
  height: 220px;
  border-radius: 0.8rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

@media (max-width: 60em){
  .landing-home .landing-placeholder{ height: 180px; }
}

.landing-home .reveal h3{
  margin-top: 0;
}

/* Cards får styra sin egen layout – ignorera feature-gridens kolumner */
.landing-home .grid.cards.landing-cards{
  grid-template-columns: initial !important;
}


/* ======================================================
   0) STARTSIDA-SCOPE + SIDTITEL
   ====================================================== */

/* Dölj sidans H1 ("Hem"/"Index") bara när startsidan innehåller .landing-home */
article.md-content__inner:has(> .landing-home) > h1:first-child {
  display: none !important;
}

/* Lite mindre topp-padding på startsidan (efter att H1 döljs) */
article.md-content__inner:has(> .landing-home) {
  padding-top: 0.5rem !important;
}

.landing-home h2 {
  margin-top: 0.8rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 700px) {
  .landing-home h2 {
    margin-top: 0.6rem;
    margin-bottom: 1.5rem;
  }
}

/* ======================================================
   LANDING CARDS – SINGLE SOURCE OF TRUTH
   Matchar DOM: li > p > .twemoji + strong + .landing-card__desc
   ====================================================== */

/* Slå av Material cards helt */
.landing-home .grid.cards.landing-cards{
  border: none !important;
  display: block !important;
  grid-template-columns: initial !important;
}

/* UL styr layouten */
.landing-home .landing-cards > ul{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 2.4rem 4rem;
  margin: 0 !important;
  padding: 0 !important;

}

@media (min-width: 60em){
  .landing-home .landing-cards > ul{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* LI – total reset */
.landing-home .landing-cards > ul > li{
  all: unset;
  list-style: none;

  display: grid !important;
  grid-template-columns: 2.6rem minmax(0, 1fr) !important;
  column-gap: 0.5rem !important;
  row-gap: .25rem !important;
  align-items: start !important;

  min-width: 0;
}

/* Gör <p> layout-neutral */
.landing-home .landing-cards > ul > li > p{
  margin: 0 !important;
  display: contents !important;
}

/* Ikon */
.landing-home .landing-cards > ul > li > p > .twemoji{
  grid-column: 1;
  grid-row: 1;

  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.085);
  margin-top: -0.5rem;
}

.landing-home .landing-cards > ul > li > p > .twemoji svg{
  width: 1.25rem;
  height: 1.25rem;
}

/* Titel */
.landing-home .landing-cards > ul > li > p > strong{
  grid-column: 2;
  grid-row: 1;

  display: block;
  margin: 0;
  padding-top: .08rem;

  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* Beskrivning */
.landing-home .landing-cards > ul > li > p > .landing-card__desc{
  grid-column: 2;
  grid-row: 2;

  display: block;
  margin-top: .18rem;

  font-size: 0.95rem;
  line-height: 1.6;
  opacity: .82;
  max-width: 56ch;

  min-width: 0;
  overflow-wrap: break-word;
}

/* Hover */
.landing-home .landing-cards > ul > li:hover strong{
  opacity: .95;
  border: none !important;
}

/* Slå av Material cards helt */
.landing-home .landing-cards > ul> li{
  border: none !important;
}

.landing-hero__title{
  font-size: var(--landing-title-size);
}

.landing-home h2{
  font-size: var(--landing-title-size);
}


/* Section 3 – interkalerade features */
.landing-feature{
  align-items: center;
  gap: 2.5rem;
  row-gap: .25rem !important;
}



/* Mobil: alltid bild överst */
@media (max-width: 60em){
  .landing-feature{
    grid-template-columns: 1fr;
  }

}
/* ======================================================
   SECTION 3 – VARFÖR GALAZ DOJO DIGITAL?
   Sumi-e images + text-like links
   ====================================================== */

/* Bildram – samma visuella höjd överallt */
.landing-home .landing-feature__media{
  display: flex;
  align-items: center;
  justify-content: center;

  height: 360px;              /* justera 240–300 vid behov */
  overflow: hidden;

  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  margin: 0 0 1.25rem 0;
}

/* Bild – behåll hela motivet, mjuk sumi-e-känsla */
.landing-home .landing-feature__media img{
  width: 100%;
  height: 100%;

  object-fit: contain;        /* viktigt för sumi-e */
  object-position: left;

  opacity: 0.93;
  filter: contrast(0.98) brightness(1.03);

  transform: scale(1.04);     /* subtil kompensation för negativ yta */

  display: block;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Responsiv justering */
@media (max-width: 60em){
  .landing-home .landing-feature__media{
    height: 220px;
  }
}

/* ------------------------------------------------------
   Gör knappar till ord (textlänkar)
   ------------------------------------------------------ */
.landing-home .landing-feature-button{
  all: unset;                 /* tar bort all button-UI */
  display: inline;

  cursor: pointer;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 0.25em;

  transition: color 0.15s ease, opacity 0.15s ease;
}

.landing-home .landing-feature-button:hover{
  color: #ffffff;
  opacity: 1;
}
/* ======================================================
   SECTION 3 – samma textbredd i båda kolumnerna
   ====================================================== */

/* 1) Grid: alltid två lika kolumner (desktop) */
.landing-home .reveal > .grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 1rem;
  align-items: start;                 /* viktig: text startar lika */
}

/* 2) Textkolumn: lås läsbredd så radlängden blir konsekvent */
.landing-home .reveal > .grid > div:not(.landing-feature__media){
  width: 100%;
  max-width: 56ch;                    /* 🔧 justera 52–60ch */
  justify-self: start;                /* vänsterjustera inom kolumn */
}

/* 3) Om texten hamnar i högra kolumnen: håll samma maxbredd men lägg den lite inåt */
.landing-home .reveal > .grid > div.landing-feature__media + div{
  justify-self: start;                /* matchar vänsterblocket */
}

/* 4) Om texten hamnar i vänstra kolumnen (dvs text först): samma regler */
.landing-home .reveal > .grid > div:not(.landing-feature__media):first-child{
  justify-self: start;
}

/* Mobil: stapla, full bredd */
@media (max-width: 60em){
  .landing-home .reveal > .grid{
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .landing-home .reveal > .grid > div:not(.landing-feature__media){
    max-width: 100%;
  }
}


/* ------------------------------------------------------
   Bildram – konsekvent storlek
   ------------------------------------------------------ */
.landing-home .landing-feature__media{
  display: flex;
  align-items: center;
  justify-content: center;

  height: 400px;
  overflow: hidden;

  margin: 0;
  border: none !important;
  background: transparent !important;
}

.landing-home .landing-feature__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left;

  opacity: 0.93;
  filter: contrast(0.98) brightness(1.03);
  transform: scale(1.04);

  display: block;
  border: none !important;
  box-shadow: none !important;
}


.landing-home .image-position-left img{
  width: 100%;
  height: 100%;
  object-fit: contain;  
  object-position: left;
}

.landing-home .image-position-right img{
  width: 100%;
  height: 100%;
  object-fit: contain;  
  object-position: right;
}


/* ======================================================
   GLOBAL TYPO – LANDING PAGE
   En konsekvent skala för hela startsidan
   ====================================================== */

/* Bas för all text på landningen */
.landing-home{
  font-size: 1rem;
  line-height: 1.6;
}

/* ------------------------------------------------------
   H2 – primära sektionsrubriker
   ------------------------------------------------------ */
.landing-home h2{
  font-size: var(--landing-title-size);   /* redan definierad */
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;

  margin-top: 3.2rem;
  margin-bottom: 1.4rem;
}

/* Första H2 efter hero – lite mindre toppmarginal */
.landing-home h2:first-of-type{
  margin-top: 2.2rem;
}

/* ------------------------------------------------------
   H3 – underrubriker (cards, section 3, etc.)
   ------------------------------------------------------ */
.landing-home h3{
  font-size: clamp(1.10rem, 1.05vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;

  margin-top: 0;
  margin-bottom: .55rem;
}

/* ------------------------------------------------------
   Brödtext – ALL vanlig text
   ------------------------------------------------------ */
.landing-home p{
  font-size: clamp(0.98rem, 0.9vw, 1.05rem);
  line-height: 1.62;
  opacity: 0.88;

  margin-top: 0.55rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------
   Cards / beskrivningstext (behåller samma skala)
   ------------------------------------------------------ */
.landing-home .landing-card__desc{
  font-size: inherit;
  line-height: inherit;
  opacity: 0.82;
}

/* ------------------------------------------------------
   Avstånd mellan större block
   ------------------------------------------------------ */
.landing-home .reveal{
  margin-top: 1.25rem;
}

/* ------------------------------------------------------
   Mobil – något större text för läsbarhet
   ------------------------------------------------------ */
@media (max-width: 700px){
  .landing-home p{
    font-size: 1.02rem;
  }

  .landing-home h3{
    font-size: 1.15rem;
  }
}
