/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --primary-color: #2494c0;
  --secondary-color: #00c6ff;
  --dark-color: #1a1a1a;
  --light-color: #f4f4f4;
  --text-color: #333;
  --white: #ffffff;
  --container-width: 1100px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding-top: 75px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

a,
button,
[role="button"],
.btn,
.lang-btn,
.hamburger {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

.navbar.scrolled {
  padding: 5px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar.scrolled a {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
  height: 45px;
}

.logo,
.logo:hover,
.logo:focus,
.footer-brand a,
.footer-brand a:hover,
.footer-brand a:focus,
.inline-logo {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.logo img,
.footer-brand a img,
.inline-logo {
  border: none !important;
  text-decoration: none !important;
  display: inline-block;
  vertical-align: middle;
}

.logo img {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.lang-switcher {
  margin-left: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-btn {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.navbar.scrolled .lang-btn {
  color: var(--text-color);
}

.lang-btn:hover {
  color: var(--primary-color);
}

.lang-btn.active,
.navbar.scrolled .lang-btn.active {
  color: var(--primary-color);
}

.lang-switcher span {
  color: #ccc;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #0056b3;
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../img/hero.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}

.hero-btns .btn {
  margin: 10px;
}

.hero h1, .hero p, .hero-btns {
  transition-delay: 0.1s;
}

.hero p {
  transition-delay: 0.3s;
}

.hero-btns {
  transition-delay: 0.5s;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--light-color);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.inline-logo {
  height: 1.4em;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-info {
  padding: 30px;
  text-align: left;
}

.service-info h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: -30px auto 50px;
  font-size: 1.1rem;
  color: #666;
}

/* Process Section */
.process {
  padding: 80px 0;
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 114, 255, 0.1);
  display: block;
  margin-bottom: -20px;
}

.step h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: 100px 0;
  overflow: hidden;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  text-align: left;
}

.about-content {
  flex: 1.5;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100px;
  height: 100px;
  border-top: 5px solid var(--primary-color);
  border-left: 5px solid var(--primary-color);
  z-index: 1;
}

.about-content > p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.value-item {
  background: var(--light-color);
  padding: 20px 25px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s;
}

.value-item:hover {
  transform: translateX(10px);
  background: #eef2f7;
}

.value-item h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.value-item p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .about-flex {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .about-image img {
    height: 300px;
  }
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background: var(--light-color);
}


.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--white);
  padding: 30px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Contact Section */
.contact {
  background: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.contact p {
  max-width: 700px;
  margin: 0 auto 30px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact .btn-primary {
  background: var(--white);
  color: var(--primary-color);
  margin-top: 20px;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-brand {
  flex: 1.5;
  min-width: 250px;
}

.footer-logo {
  height: 30px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  display: block;
}


.footer-brand p {
  color: #aaa;
  font-size: 0.9rem;
}

.footer-company-info {
  flex: 1;
  min-width: 200px;
}

.footer-company-info p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-company-info strong {
  color: var(--white);
  font-size: 1rem;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #aaa;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #777;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-brand, .footer-company-info, .footer-links {
    width: 100%;
  }

  .footer-logo {
    margin: 0 auto 20px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 75px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    margin-top: 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links .btn {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  .lang-switcher {
    margin: 15px 0;
    justify-content: center;
  }

  .navbar.scrolled .nav-links {
    top: 55px;
  }
}

/* Reveal animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered delays for grid items */
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.1s; }
.service-card:nth-child(5) { transition-delay: 0.2s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step:nth-child(4) { transition-delay: 0.3s; }

.benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefit-card:nth-child(3) { transition-delay: 0.2s; }
.benefit-card:nth-child(4) { transition-delay: 0.3s; }


/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 20px 0;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
  z-index: 2000;
}

.cookie-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: left;
}

.cookie-banner a {
  text-decoration: underline;
  color: var(--primary-color);
}

.cookie-banner .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner p {
    text-align: center;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

