/* Automatize site styles
   Own work. Built on Bootstrap 5 (MIT) + Bootstrap Icons (MIT) + AOS (MIT) + Swiper (MIT) + GLightbox (MIT). */

/* ---------- Design tokens ---------- */
:root {
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --font-nav: "Raleway", sans-serif;

  --bg: #ffffff;
  --text: #2b180d;
  --heading: #1b2f45;
  --accent: #56b8e6;
  --accent-ink: #ffffff;
  --surface: #ffffff;

  --nav-link: rgba(255, 255, 255, 0.6);
  --nav-link-hover: #ffffff;
  --nav-mobile-bg: #ffffff;
  --nav-dropdown-bg: #ffffff;
  --nav-dropdown-link: #212529;
  --nav-dropdown-link-hover: #56b8e6;

  scroll-behavior: smooth;
}

/* Section color presets */
.light-background {
  --bg: #f6fcfe;
  --surface: #ffffff;
}
.dark-background {
  --bg: #000000;
  --text: #ffffff;
  --heading: #ffffff;
  --surface: #254160;
  --accent-ink: #ffffff;
}

/* ---------- Base ---------- */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--font-heading);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: color-mix(in srgb, var(--accent), transparent 25%);
}

img { max-width: 100%; }

/* ---------- Header ---------- */
.header {
  --bg: rgba(255, 255, 255, 0);
  --heading: #ffffff;
  color: var(--text);
  background-color: var(--bg);
  padding: 15px 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 997;
}
.header .logo { line-height: 1; }
.header .logo img { max-height: 32px; margin-right: 8px; }
.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading);
}
.scrolled .header {
  --bg: #000000;
  box-shadow: 0 0 18px #000000;
}

/* ---------- Navmenu (desktop) ---------- */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
  }
  .navmenu li { position: relative; }
  .navmenu a,
  .navmenu a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 15px;
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: 400;
    color: var(--nav-link);
    white-space: nowrap;
    transition: color 0.25s ease;
  }
  .navmenu a i { font-size: 12px; line-height: 0; margin-left: 5px; transition: 0.25s ease; }
  .navmenu li:last-child a { padding-right: 0; }
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus { color: var(--nav-link-hover); }

  .navmenu .dropdown ul {
    position: absolute;
    left: 14px;
    top: 130%;
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-bg);
    display: block;
    visibility: hidden;
    opacity: 0;
    z-index: 99;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
  }
  .navmenu .dropdown ul li { min-width: 200px; }
  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--nav-dropdown-link);
  }
  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul li:hover > a { color: var(--nav-dropdown-link-hover); }
  .navmenu .dropdown:hover > ul {
    top: 100%;
    opacity: 1;
    visibility: visible;
  }
  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
  }
  .navmenu .dropdown .dropdown:hover > ul {
    top: 0;
    left: -100%;
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- Navmenu (mobile) ---------- */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-link);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.25s ease;
  }
  .navmenu {
    padding: 0;
    z-index: 9997;
  }
  .navmenu ul {
    display: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    border-radius: 6px;
    background-color: var(--nav-mobile-bg);
    overflow-y: auto;
    z-index: 9998;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.25s ease;
  }
  .navmenu a,
  .navmenu a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-family: var(--font-nav);
    font-size: 17px;
    font-weight: 500;
    color: var(--nav-dropdown-link);
    white-space: nowrap;
  }
  .navmenu a i {
    margin-left: 5px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--accent), transparent 90%);
    transition: 0.25s ease;
  }
  .navmenu a i:hover {
    background-color: var(--accent);
    color: var(--accent-ink);
  }
  .navmenu a:hover,
  .navmenu .active { color: var(--nav-dropdown-link-hover); }
  .navmenu .active i {
    background-color: var(--accent);
    color: var(--accent-ink);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-bg);
    border: 1px solid color-mix(in srgb, var(--text), transparent 90%);
  }
  .navmenu .dropdown ul ul { background-color: rgba(33, 37, 41, 0.1); }
  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active { overflow: hidden; }
  .mobile-nav-active .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    margin-right: 0;
    color: #fff;
    font-size: 32px;
    z-index: 9999;
  }
  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: rgba(33, 37, 41, 0.8);
  }
  .mobile-nav-active .navmenu > ul { display: block; }
}

/* ---------- Footer ---------- */
.footer {
  color: var(--text);
  background-color: var(--bg);
  font-size: 14px;
  position: relative;
}
.footer .footer-top { padding-top: 50px; }
.footer .footer-about .logo { line-height: 1; margin-bottom: 25px; }
.footer .footer-about .logo span {
  color: var(--heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}
.footer .footer-about p { font-size: 14px; font-family: var(--font-heading); }
.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--accent-ink);
  background-color: var(--accent);
  transition: background-color 0.25s ease;
}
.footer .social-links a:hover {
  color: var(--accent-ink);
  background-color: color-mix(in srgb, var(--accent) 90%, black 15%);
}
.footer h4 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  position: relative;
}
.footer .footer-links { margin-bottom: 30px; }
.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.footer .footer-links ul li:first-child { padding-top: 0; }
.footer .footer-links ul a {
  color: color-mix(in srgb, var(--text), transparent 20%);
  display: inline-block;
  line-height: 1;
}
.footer .footer-links ul a:hover { color: var(--accent); }
.footer .footer-contact p { margin-bottom: 5px; }
.footer .copyright {
  margin-top: 25px;
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent), transparent 80%);
}
.footer .copyright p { margin-bottom: 0; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--bg);
  transition: opacity 0.6s ease-out;
}
#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 6px solid var(--accent);
  border-top-color: color-mix(in srgb, var(--accent), transparent 90%);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Scroll-top button ---------- */
.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  border-radius: 4px;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.25s ease;
}
.scroll-top i { font-size: 24px; color: var(--accent-ink); line-height: 0; }
.scroll-top:hover { background-color: color-mix(in srgb, var(--accent), transparent 20%); }
.scroll-top.active { visibility: visible; opacity: 1; }

/* Disable AOS delay on small screens */
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/* ---------- Sections ---------- */
section,
.section {
  color: var(--text);
  background-color: var(--bg);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}
@media (max-width: 1199px) {
  section,
  .section { scroll-margin-top: 66px; }
}

/* Section title with accent underline */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 50px;
  height: 3px;
  margin: auto;
  background: var(--accent);
}
.section-title p { margin-bottom: 0; }

/* ---------- Page title (interior-page hero) ---------- */
.page-title {
  position: relative;
  padding: 160px 0 60px;
  color: var(--text);
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--bg), transparent 40%);
}
.page-title .container { position: relative; }
.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
.page-title .breadcrumbs ol li + li { padding-left: 10px; }
.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--text), transparent 70%);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg), transparent 40%);
}
@media (min-width: 1200px) {
  .hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44%;
    z-index: 2;
    background-image:
      linear-gradient(180deg,
        color-mix(in srgb, var(--bg), transparent 15%),
        color-mix(in srgb, var(--bg), transparent 15%) 100%),
      linear-gradient(180deg, rgb(0, 0, 0), rgb(0, 0, 0) 100%);
  }
}
.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero .container,
.hero .container-fluid {
  position: relative;
  z-index: 3;
}
.hero h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
}
.hero blockquote {
  margin: 40px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: color-mix(in srgb, var(--text), transparent 20%);
}
.hero .btn-get-started {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50px;
  transition: background 0.4s ease;
}
.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent) 90%, white 15%);
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; line-height: 36px; }
}

/* ---------- Services ---------- */
.services .service-item {
  position: relative;
  height: 100%;
  margin-bottom: 30px;
}
.services .service-item .icon { margin-right: 20px; }
.services .service-item .icon i {
  font-size: 40px;
  line-height: 0;
  color: var(--accent);
  transition: color 0.25s ease;
}
.services .service-item .title {
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}
.services .service-item .description {
  font-size: 15px;
  color: color-mix(in srgb, var(--text), transparent 30%);
  margin-bottom: 10px;
}
.services .service-item .readmore {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text), transparent 50%);
  transition: color 0.25s ease;
}
.services .service-item .readmore i { margin-left: 8px; }
.services .service-item:hover .title,
.services .service-item:hover .readmore,
.services .service-item:hover .icon i { color: var(--accent); }

/* ---------- Call to action ---------- */
.call-to-action {
  position: relative;
  padding: 80px 0;
  clip-path: inset(0);
}
.call-to-action img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.call-to-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg), transparent 50%);
}
.call-to-action .container { position: relative; z-index: 3; }
.call-to-action h3,
.call-to-action h4,
.call-to-action p { color: var(--text); }
.call-to-action h3 { font-size: 28px; font-weight: 700; }
.call-to-action .cta-btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 40px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50px;
  transition: background 0.4s ease;
}
.call-to-action .cta-btn:hover {
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 90%, black 15%);
}

/* ---------- Recent posts / post boxes ---------- */
.recent-posts .post-box {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.25s ease;
}
.recent-posts .post-box .post-img { overflow: hidden; position: relative; }
.recent-posts .post-box .post-img img { transition: transform 0.5s ease; }
.recent-posts .post-box .meta { margin-top: 15px; }
.recent-posts .post-box .meta .post-date {
  font-size: 15px;
  color: var(--accent);
}
.recent-posts .post-box .meta .post-author {
  font-size: 15px;
  color: color-mix(in srgb, var(--text), transparent 40%);
}
.recent-posts .post-box .post-title {
  margin: 15px 0 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  transition: color 0.25s ease;
}
.recent-posts .post-box p {
  margin: 15px 0 0 0;
  color: color-mix(in srgb, var(--text), transparent 40%);
}
.recent-posts .post-box .readmore {
  display: flex;
  align-items: center;
  margin-top: 15px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.25s ease;
}
.recent-posts .post-box .readmore i {
  margin-left: 4px;
  font-size: 18px;
  line-height: 0;
}
.recent-posts .post-box:hover .post-title { color: var(--accent); }
.recent-posts .post-box:hover .post-img img { transform: scale(1.1); }

/* ---------- About content ---------- */
.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}
.about .content p {
  margin: 30px 0;
  color: color-mix(in srgb, var(--text), transparent 40%);
}
.about .content ul {
  list-style: none;
  padding: 0;
}
.about .content ul li {
  padding: 0 0 15px 0;
  display: flex;
  font-weight: 400;
}
.about .content ul i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact { position: relative; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg), transparent 30%);
}
.contact .info-item + .info-item { margin-top: 40px; }
.contact .info-item i {
  width: 44px;
  height: 44px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 20px;
  color: var(--accent-ink);
  background: var(--accent);
  transition: 0.25s ease;
}
.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.contact .info-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Contact form (generic, no php-email-form class ties) */
.contact form input[type="text"],
.contact form input[type="email"],
.contact form textarea,
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text);
  background-color: color-mix(in srgb, var(--bg), transparent 50%);
  border: 1px solid color-mix(in srgb, var(--text), transparent 80%);
  border-radius: 0;
  box-shadow: none;
}
.contact form input:focus,
.contact form textarea:focus,
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.contact form input::placeholder,
.contact form textarea::placeholder,
.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--text), transparent 70%);
}
.contact form button[type="submit"],
.contact .php-email-form button[type="submit"] {
  padding: 10px 30px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 50px;
  transition: background 0.4s ease;
}
.contact form button[type="submit"]:hover,
.contact .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent), transparent 20%);
}

/* Form status messages */
.php-email-form .error-message {
  display: none;
  padding: 15px;
  margin-bottom: 24px;
  color: #ffffff;
  background: #df1529;
  font-weight: 600;
  text-align: left;
}
.php-email-form .sent-message {
  display: none;
  padding: 15px;
  margin-bottom: 24px;
  color: #ffffff;
  background: #059652;
  font-weight: 600;
  text-align: center;
}
.php-email-form .loading {
  display: none;
  padding: 15px;
  margin-bottom: 24px;
  background: var(--surface);
  text-align: center;
}
.php-email-form .loading::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent);
  border-top-color: var(--surface);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ---------- Service details ---------- */
.service-details .services-list {
  background-color: var(--surface);
}
.service-details .services-list a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 15px;
  color: color-mix(in srgb, var(--text), transparent 20%);
  background-color: color-mix(in srgb, var(--text), transparent 96%);
  transition: 0.25s ease;
}
.service-details .services-list a:first-child { margin-top: 0; }
.service-details .services-list a i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--accent);
}
.service-details .services-list a.active {
  color: var(--accent-ink);
  background-color: var(--accent);
}
.service-details .services-list a.active i { color: var(--accent-ink); }
.service-details .services-list a:hover {
  color: var(--accent);
  background-color: color-mix(in srgb, var(--accent), transparent 95%);
}
.service-details h3 { font-size: 26px; font-weight: 700; }
.service-details p { font-size: 15px; }
.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}
.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}
.service-details ul i {
  margin-right: 8px;
  font-size: 20px;
  color: var(--accent);
}
