@layer reset, default, layout, basic, components, decorations;

:root {
   /* spacing loosely based on fibonacci sequence */
   --size-base: 1rem;

   --size-tiny: calc(0.125 * var(--size-base)); /* 2px */

   --size-xxxs: calc(0.25 * var(--size-base)); /* 4px */
   --size-xxs:  calc(0.375 * var(--size-base)); /* 6px */
   --size-xs:   calc(0.5 * var(--size-base)); /* 8px */
   --size-sm:   calc(0.75 * var(--size-base)); /* 12px */
   --size-md:   calc(1.25 * var(--size-base)); /* 20px */
   --size-lg:   calc(2 * var(--size-base)); /* 32px */
   --size-xl:   calc(3.25 * var(--size-base)); /* 52px */
   --size-xxl:  calc(5.25 * var(--size-base)); /* 84px */
   --size-xxxl: calc(8.5 * var(--size-base)); /* 136px */

   --size-4xl: calc(13.75 * var(--size-base)); /* 220px */
   --size-5xl: calc(22.25 * var(--size-base)); /* 356px */
   --size-6xl: calc(36 * var(--size-base)); /* 576px */
   --size-7xl: calc(58.125 * var(--size-base)); /* 932 */
   --size-8xl: calc(93.75 * var(--size-base)); /* 1505 */

 /* colors */
  --color-accent-1: hsl(42, 80%, 60%); 
  --color-accent-2: hsl(0, 0%, 60%);
  --color-accent-3: hsl(213, 46%, 31%); 
  --color-dark: hsl(0, 0%, 13%);
  --color-dark: hsl(0, 0%, 2%); 
  --color-light: hsl(34, 78%, 91%);
  --color-white: #fff;
  --color-black: #000;

  --color-base: var(--color-dark);
  --color-primary: var(--color-light);
  --color-secondary: var(--color-accent-3); 
  --color-accent: var(--color-accent-1);
  --color-light-border: var(--color-accent-2);

  --color-link: var(--color-primary);

  --color-background: var(--color-base); 
  --color-text: var(--color-primary); 

  /* spacing */
  --main-content-space-top: var(--size-lg);
  --main-content-space-bottom: var(--size-xxl);

    /* fonts */
  --font-family: "Lato", sans-serif;
  --font-size-h1: var(--size-xl);
  --font-size-h2: var(--size-md);
  --font-size-h3: var(--size-base);
  --font-size-text: var(--size-base); 
  --font-size-logo: var(--size-md);

  @media (min-width: 475px) {
    --font-size-h1: var(--size-xxl);
    --font-size-h2: var(--size-lg);
    --font-size-logo: var(--size-lg);
    --main-content-space-top: var(--size-xxl);
  }



  /* border */
  --border-radius: 8px;

  /* container, content and width */
  --full-size: 100%;
  --reading-width: var(--size-6xl);
  --main-container-width: min(89%, var(--size-7xl));
  --main-container-width: min(89%, );
  --content-container-width: 
    min(calc(var(--full-size) - var(--size-lg) ), 
    var(--size-6xl));
  --main-content-width: 75rem;
  
  /* shadows and effects */
  --text-shadow: 0.125rem 0.125rem 0.125rem hsl(0 0% 0% / 90%);
}

/* dark-mode is default */
.light-mode {
  --color-background: var(--color-secondary); 
  --color-text: var(--color-base); 
}


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

  html {
    max-width: 100%;
    line-height: 1.6;
    font-size: 100%;
    scroll-padding-top: var(--size-xxl);
  }

  body {
    min-height: 100%;
    overflow-x: hidden; /* no horizontal scroll */ 
    font-size: var(--size-base);
  }

  /* Only smooth scrolling for peoople that has set not set reduced motion */
  @media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
  }

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

}

/* defaults for non layout elements */
@layer default {
  body {
   font-family: arial;
   font-family: "Poppins", sans-serif;
   background: var(--color-background);
   color: var(--color-text);
  }

  h1, h2, h3 {
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal; 
    line-height: 1;
    color: var(--color-accent);
    text-wrap: balance;
  }

  h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(var(--size-xl), 2.9423rem + 1.5385vw, var(--size-xxl));
    font-size: var(--font-size-h1);
    letter-spacing: -0.25rem;
    color: var(--color-accent);
    margin-top: var(--size-sm);
    margin-bottom: var(--size-lg);
  }

  h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--size-xxs);
  }

  h3 {
    font-size: var(--font-size-h3);
    color: var(--color-text);
  }

  a.button,
  button {
    width: var(--size-4xl);
    height: var(--size-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-accent);
  }

  a.button {
    text-decoration: none;
  }

  button.icon {
    border: none;
    background: none;
  }

  button svg {
    width: 100%;
    height: 100%;
    fill: var(--color-text);
  }

  p {
    width: min(100%, var(--size-6xl));
    font-weight: 400;
    font-style: normal;
  }

  a {
    color: var(--color-link);
    display: inline-block;
    transition: all 0.3s ease-in-out;
  }

  a:hover {
    font-weight: 700;
    scale: 1.25;
  }

  ul {
    display: flex;
    flex-flow: column;
    list-style-type: none;
    gap: var(--size-sm);
    padding-left: 0;
    margin-block: var(--size-xxxs) var(--size-lg);
  }

  li {
    line-height: 1.3;
  }

  strong {
    color: #fafafa;
    letter-spacing: 0.025rem;
  }

  input, textarea {
    font: inherit;
    font-size: inherit;
    font-size: 1rem;
    border: none;
    margin-bottom: var(--size-xxxs, 0.25rem);
    border-radius: var(--size-xxxs, 0.25rem);
    box-shadow: inset 0 1px 1px hsla(0, 0%, 0%, 0.075);
    padding: var(--size-xxs) var(--size-sm);
    background: var(--color-light);
  }
}

/* basic classes */
@layer basic {
  .image-wrapper {
  }
}

/* laying out the page */
@layer layout {

  header {

    left: 0;
    right: 0;
    width: var(--full-size);
    position: fixed;
    top: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    z-index: 1;
    background: var(--color-background);
  }

  .page-container {
  }

  .main-content {
    display: grid;
    width: min( 95vw, 75rem);
    width: min(calc(var(--full-size) - var(--size-lg)), 75rem );
    width: min(calc(100% - var(--size-lg)), var(--main-content-width));
    margin: 0 auto;
    grid-template-columns: repeat( auto-fit, minmax(
      min(100%, var(--size-5xl)), 1fr));
    padding-block: 
      var(--main-content-space-top)
      var(--main-content-space-bottom);
    gap: var(--size-lg);
  }

  .content-container {
    width: var(--content-container-width);
    margin: 0 auto;
  }

  main {
    display: grid;
  }

  footer {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--size-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--size-sm);
  }

}

@layer component {
  .logo {
    font-weight: bold;
    font-size: var(--font-size-logo);
    padding: var(--size-xs) var(--size-sm);
  }

  .login {
    padding: var(--size-xs) var(--size-md);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .top-menu {
    width: var(--main-container-width);
    display: flex;
    justify-content: flex-end;
    gap: var(--size-md);
    margin: 0 auto;
    padding: var(--size-sm) 0;
  }
  
  .top-menu a {
    transition: all 0.5s ease-in-out;
  }

  .top-menu a:hover {
    transform: rotate(-3deg);
    font-size: var(--size-md);
  }

  .hero {
    position: relative;
    display: grid;
    height: 100vh;
    height: calc(100vh - 3.25rem);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    padding-top: var(--size-xxxl);
  }

  .video-background {
    position: absolute;
    /* center content */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
  }

  .video-background img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero .content-container {
    display: flex;
    flex-flow: column;
    justify-content: center;
  }

  .hero h2 {
    display: flex;
    flex-flow: column;
    padding-left: initial;
  }

  .hero h2::before {
    content: "";
  }

  .hero ul {
    margin-block: var(--size-lg);
    gap: var(--size-xs);
  }

  .hero li {
    position: relative;
    padding-left: var(--size-sm);
    display: flex;
    border-left: 10px solid var(--color-accent);
  }

  .control-group {
    display: flex;
    gap: var(--size-xs);
  }


  .hero a.button,
  .hero button {
    width: var(--size-xxxl); 
    height: var(--size-lg); /* Adjust to 2rem if needed */
    background: hsl(34, 78%, 91%); /* Antique White */
    font-weight: bold;
    color: #4a3625; /* Rich brown for contrast */
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px; /* Smooth, pill-like edges */
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), /* Soft outer shadow */
      inset 1px 1px 2px hsl(42, 80%, 60%), /* Inner gold shine */
      inset -1px -1px 3px rgba(255, 255, 255, 0.6); /* Light highlight */
  }

  .hero a.button:hover,
  .hero button:hover {
    background: hsl(34, 78%, 95%);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), 
              inset -2px -2px 8px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    scale: 1.05;
  }

  .hero a.button:active,
  .hero button:active {
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
  }

  .how {
    --check-color: var(--color-accent);
  }

  .info-groups {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(min(100%, var(--size-5xl)), 1fr));
  }

  .info-groups h2 {
    grid-column: 1 / -1;
  }

  .text-group {
    display: flex;
    flex-flow: row wrap;
    gap: var(--size-xxs);
    width: min(100%, var(--reading-width));
  }

  .text-group .label {
    font-weight: bold;
    width: min(100%, 10rem);
  }

  .text-group span {
    display: inline-block;
  }

  /*** contact form ***/
  .contact-wrapper {
    background: rgba(255,255,255, 0.3);
    padding-block: var(--size-xl);
  }
  
  /* DO NOT REMOVE or change #inputHere rule. Used to avoid junk mail */
  #inputHere {
    display: none;
  }

  .contact form {
    display: grid;
    gap: var(--size-md);

  }

  .contact button {
    width: var(--size-xl);
    margin: 0 auto;
  }

  .form-control {
    display: grid;
    width: min(var(--full-size, 100%), var(--size-6xl, 36rem));
    margin-inline: auto;
  }

  .validate {
    color: hsl(39, 100%, 50%);
  }

  .validate.no-display {
    display: none;
  }

} /* end components */

@layer decorations {
/*
  .pushpin::before {
    content: "📌";
    display: inline-block;
    margin-right: var(--size-sm);
    font-size: 0.82rem;
    top: var(--size-sm);
  }
  */

  .check-list li::before,
  .checkmark::before {
     content: "\2714";
     display: inline-block;
     line-height: inherit;
     color: var(--check-color, inherit);
     margin-right: var(--size-xxxs, 0.25rem)
  }
}
