/* =========================================
   1. GLOBAL RESETS & MODERN TYPOGRAPHY
   ========================================= */

/* Make the whole site feel smoother */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #f8f9fa;
  /* Very subtle off-white for depth */
  color: #1a1a1a;
  line-height: 1.7;
}

/* Aggressive Typography Overwrites */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  /* Modern tight tracking */
  line-height: 1.1;
}

h1 {
  font-size: 50px;
  /* Responsive massive text */
  margin-bottom: 40px;
  /* Gradient Text using your palette */
  background: linear-gradient(135deg, var(--color-2), var(--color-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

h2 {
  font-size: 40px;
  color: var(--color-2);
}

/* Modern Button Restyle - Pill Shape */
@property --grad-angle {
  syntax: '<angle>';
  initial-value: -10deg;
  inherits: false;
}

.btn {
  color: var(--color-2-text);
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 15px 35px;

  /* gradient driven by animatable custom property */
  background: linear-gradient(var(--grad-angle),
      var(--color-1),
      var(--color-2));

  box-shadow: 0 10px 20px -10px var(--color-1);

  transition:
    transform 1.2s ease,
    box-shadow 1.2s ease,
    --grad-angle 1.2s ease;

  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.btn:hover {
  --grad-angle: -180deg;
  box-shadow: 0 15px 20px -10px var(--color-1);
  color: var(--color-2-text);
  background: linear-gradient(var(--grad-angle),
      var(--color-1),
      var(--color-2));
}

/* Inputs styling */
input,
textarea,
.umbraco-form input,
.umbraco-form textarea {
  border: 2px solid transparent;
  background: white;
  border-radius: 12px;
  padding: 15px;
  font-size: 18px;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-3);
  box-shadow: 0 0 0 4px rgba(0, 160, 226, 0.1);
  /* Color 3 faint glow */
}

/* =========================================
   2. HEADER: THE FLOATING GLASS ISLAND
   ========================================= */

header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  width: auto;
  margin: 0 auto;
  z-index: 1000;
  padding: 0 15px;
  pointer-events: none;
  /* Let clicks pass through the sides */
}

header .container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  /* Full pill shape */
  padding: 10px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo styling inside the pill */
header .logo img {
  max-height: 40px;
  width: auto;
}

header .logo {
  display: flex;
  align-items: center;
  color: var(--color-2);
  font-weight: 900;
  font-size: 24px;
  text-decoration: none;
}

/* Navigation Links */
nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

ul.nav-primary {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.nav-primary>li>div>a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-2);
  /* Dark Blue */
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: block;
}

ul.nav-primary a {
  text-decoration: none;
}

/* Hover & Active States */
ul.nav-primary>li>div>a:hover,
ul.nav-primary>li>div>a.active {
  background-color: var(--color-3);
  /* Light Blue */
  color: var(--color-3-text);
}

/* Dropdown styling */
.dropdown-controls {
  display: flex;
  align-items: center;
}

.dropdownToggle {
  display: none;
  /* Hidden on desktop, cleaner look */
}

/* Submenu - Modern Floating Card */
ul.nav-primary ul {
  background: white;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-top: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: block;
  max-width: 350px;
  width: max-content;
}

ul.nav-primary ul li a {
  padding: 10px 15px;
  display: block;
  border-radius: 10px;
  color: #333;
  font-size: 15px;
  transition: 300ms ease;
}

ul.nav-primary ul li a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-1);
}

/* Hide navigation socials on desktop to clean up the island */
header .socials {
  display: none;
}

/* Toggle button for mobile */
.toggleNav {
  background: transparent;
  color: var(--color-2);
  border: none;
  font-size: 28px;
  margin-left: 15px;
  cursor: pointer;
  display: none;
  /* Hidden by default */
}

/* =========================================
   3. HERO / EYE-CATCHER
   ========================================= */

/* Make content start lower because of floating header */
body>*:first-child:not(header),
main>*:first-child {
  padding-top: 200px;
}

.eye-catcher {
  position: relative;
  border-radius: 0 0 50px 50px;
  /* Rounded bottom */
  overflow: hidden;
  margin-bottom: 50px;
  /* Add a gradient overlay using your colors */
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.2);
}

.eye-catcher::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.eye-catcher .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
  min-height: 200px;
}

.text-element-1 h1 {
  background: white;
  /* White text on hero */
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  color: var(--color-2);
  background-clip: unset;
  padding: 20px 40px;
  border-radius: 0 30px 30px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  /* Reset rotation from old template */
  transform: none;
  display: inline-block;
  margin-bottom: 20px;
}

.text-element-1 {
  position: absolute;
  left: 15px;
  top: 0;

  background: linear-gradient(80deg,
      var(--color-1),
      var(--color-2),
      var(--color-1));

  background-size: 300% 300%;
  background-position: 0% 50%;

  animation: gradient-move 6s linear infinite;

  color: var(--color-1-text);
  padding: 15px;
  min-width: 200px;
  font-size: 25px;
  font-weight: bold;
  border-radius: 15px;
}

@keyframes gradient-move {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 200% 50%;
  }
}

.text-changer span {
  width: fit-content;
}

.secondary-text {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 22px;
  line-height: 1.4;
}

/* =========================================
   4. SECTIONS & GRIDS
   ========================================= */

.container {
  max-width: 1300px;
  padding: 0 30px;
}

/* Section Spacing */
section {
  padding: 80px 0;
}

/* Blog/Article Posts - Modern Cards */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.posts>* {
  width: 100%;
  box-sizing: border-box;
}

.posts article {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image handling in cards */
.posts article img,
.articleImage {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s ease;
}

.posts article:hover img {
  transform: scale(1.05);
}

.posts article:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(7, 78, 161, 0.15);
  /* Shadow colored with --color-2 */
}

.article-description {
  padding: 30px;
  background: white;
  flex-grow: 1;
  color: #444;
}

.posts article h3 {
  color: var(--color-2);
  margin-bottom: 15px;
  font-size: 24px;
}

/* Overwrite the solid hover background from style.css */
.posts article:hover {
  background: white;
  color: inherit;
}

.posts article:hover h3 {
  color: var(--color-1);
  /* Pink highlight on hover */
}

/* =========================================
   5. COMPONENTS (Accordion, Gallery)
   ========================================= */

/* Accordion - Clean Lines */
.accordeon {
  background: transparent;
  border: none;
}

.accordeon>div:first-child {
  background: white;
  padding: 25px 25px;
  transition: 0.3s;
  border-radius: 10px;
}

.accordeon>div:first-child:hover {
  padding-left: 20px;
  padding-right: 0px;
  box-shadow: 0px 0px 50px #00000017;
  /* Slide effect */
}

.accordeon>div:first-child h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-2);
}

.accordeon>div:last-child {
  border: none;
  background: transparent;
}

.accordeonContent {
  margin: 10px 25px;
  background: white;
  padding: 15px;
  border-radius: 15px;
}

.icon-state i {
  color: var(--color-1);
}

/* Gallery - Masonry feel */
.gallery {
  gap: 20px;
}

.gallery>* {
  border-radius: 15px;
  max-width: 100%;
}

.gallery a:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* =========================================
   6. FOOTER: BOLD & DARK
   ========================================= */

footer {
  background: var(--color-2);
  /* Deep Blue */
  color: white;
  padding-top: 80px;
  /* Modern top rounding */
  position: relative;
  overflow: hidden;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

/* Footer Grid Layout */
.footerContent {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

footer .logo {
  margin-bottom: 30px;
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
}

footer .logo:hover {
  padding: 15px;
}

footer h3,
footer strong {
  color: var(--color-3);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.footerMenu {
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.footerMenu a {
  font-size: 18px;
  font-weight: 500;
}

/* Contact Info */
.contactInfo a {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.contactInfo a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contactInfo a i {
  color: white !important;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 20px;
}

/* Copyright Strip */
.footerSecondary {
  background: rgba(0, 0, 0, 0.2);
  padding: 30px 0;
  border-radius: 10px;
  padding: 20px 15px;
  margin-bottom: 10px;
}

footer hr {
  border-color: var(--color-2-text);
  border-top: none;
}

.copyright {
  font-size: 14px;
}

ul.nav-primary li::marker {
  content: none;
}

.richText li {
  margin-bottom: 10px;
}

/* =========================================
   7. MOBILE ADAPTATIONS
   ========================================= */

@media screen and (max-width: 1024px) {
  header {
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  header .container {
    border-radius: 0 0 30px 30px;
    /* Only bottom rounded on mobile */
    padding: 15px;
  }

  .toggleNav {
    display: block;
    z-index: 1000;
  }

  .toggleNav .open {
    display: none;
  }

  .toggleNav .closed {
    display: block;
  }

  .open .toggleNav .open {
    display: block;
  }

  .open .toggleNav .closed {
    display: none;
  }

  ul.nav-primary {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: white;
    flex-direction: column;
    padding: 100px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 900;
  }

  /* When menu is open (class added by JS likely on nav or body) */
  nav.open ul.nav-primary,
  .open ul.nav-primary {
    transform: translateX(0);
  }

  ul.nav-primary>li>div>a {
    font-size: 24px;
    padding: 15px 30px;
    border-radius: 50px;
    border-bottom: 1px solid #eee;
  }

  .footerContent {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 25px;
  }

  .text-element-1 h1 {
    font-size: 2rem;
  }

  ul.nav-primary ul {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
  }
}


@media screen and (min-width: 1025px) {
  ul.nav-primary li {
    position: relative;
  }

  ul.nav-primary li ul {
    pointer-events: none;
    opacity: 0;
    position: absolute;
    top: 28px;
    right: 0;
    transition: 300ms ease;
  }

  ul.nav-primary li:hover ul {
    pointer-events: all;
    opacity: 1;
  }
}
