/* Global interaction tweaks */
html,
body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
  /* no pinch-zoom */
  font-family: "filson-pro", "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

:root {
  --font-display: "roca", sans-serif;
  /* headings / UI */
  --font-text: "filson-pro", "Lato", sans-serif;
  /* paragraphs / long text */

  --display-weight: 800;
  --display-style: normal;
  --text-weight: 400;
  --text-style: normal;

  --ts: 1.0;

  /* Colors */
  --ink: #3A504A;
  --cream: #F3F0E9;
  --sand: #F2BF7C;
  --berry: #DE99C3;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  /* Chamfer size (ALL chamfers) */
  --chL: 20px;
  --chS:10px;
  /* <- requested fixed chamfer */
}

/* ===== Fullscreen image ===== */
#mainImageContainer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #000;
}

#mainImageContainer #mainImage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

/* ===== Centered overlay content ===== */
#mainMessageWrapper {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  padding: 12px;
}

/* Single chamfered container for h3 + button + message */
#logo{
  width:clamp(200px, 25vw, 300px);
  height:auto;
  margin-bottom:20px;
}
.overlayCard {
  display: flex;
  /* width: clamp(250px, 25vw, 600px); */
  width:auto;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  /* white with some transparency */
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);

  /* chamfer ALL corners */
  clip-path: polygon(var(--chL) 0,
      calc(100% - var(--chL)) 0,
      100% var(--chL),
      100% calc(100% - var(--chL)),
      calc(100% - var(--chL)) 100%,
      var(--chL) 100%,
      0 calc(100% - var(--chL)),
      0 var(--chL));

  padding: 16px 16px;
  /* optional subtle blur for the backdrop (supported browsers) */
  backdrop-filter: saturate(120%) blur(2px);
}

#mainMessageWrapper>* {
  text-align: center;
}

#titleBar {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  color: var(--ink);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Button with ALL corners chamfered (15px) */
.contactButton {
  background-color: var(--sand);
  border: none;
  /* border-radius removed; clip-path defines corners */
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 22px);
  padding: 12px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  margin: 0;

  clip-path: polygon(var(--chS) 0,
      calc(100% - var(--chS)) 0,
      100% var(--chS),
      100% calc(100% - var(--chS)),
      calc(100% - var(--chS)) 100%,
      var(--chS) 100%,
      0 calc(100% - var(--chS)),
      0 var(--chS));
}

.contactButton:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.contactButton:active {
  transform: translateY(1px) scale(0.99);
}

.contactButton:focus-visible {
  outline: 3px solid #00000055;
  outline-offset: 3px;
}

.mainMessage {
  font-family: var(--font-text);
  font-weight: var(--text-weight);
  font-style: var(--text-style);
  color: var(--ink);
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.4;
  /* inherit card background; keep text readable */
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: inline-block;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .contactButton {
    transition: none;
  }
}

/* ===== Language switch (square buttons) ===== */
.langSwitch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.langSep {
  display: inline-flex;       
  align-items: center;
  justify-content: center;
  height: 36px;               
  line-height: 36px;          
  user-select: none;
  padding: 0 2px;             
}
.langSep {
  display: inline-flex;       
  align-items: center;
  justify-content: center;
  height: 36px;               
  line-height: 36px;          
  user-select: none;
  padding: 0 2px;             
}

.langBtn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background-color 0.2s ease;

}

.langBtn[aria-pressed="true"] {
  background: var(--sand);
}

.langBtn:focus-visible {
  outline: 3px solid #00000055;
  outline-offset: 4px;
}

.langBtn:active {
  transform: translateY(1px) scale(0.99);
}

@media screen and (max-width: 768px) 
{
  #logo{
    width:clamp(150px, 80vw, 250px);
  }
  .overlayCard{
    width: auto;
  }
  #mainImageContainer #mainImage {
    left:100%;
  }
  
}
