/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --main-font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --main-color: #734ae8;

  /* Puerto Rican Colors */
  --pr-red: #ed1c24;
  --pr-red-dark: #c8102e;
  --pr-blue: #002b7f;
  --pr-blue-dark: #001f5c;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

a {
  color: var(--pr-blue);
  text-decoration: none;
}

a:hover {
  color: var(--pr-blue-dark);
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  padding-bottom: 40px;
}
.section-header h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0;
  color: var(--pr-blue);
  text-transform: uppercase;
}
.section-header p {
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 38px;
  line-height: 42px;
  font-weight: 700;
  color: var(--pr-blue);
}
@media (max-width: 768px) {
  .section-header p {
    font-size: 28px;
    line-height: 32px;
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background: var(--pr-blue);
  min-height: 40px;
  margin-top: 82px;
  color: #fff;
}
@media (max-width: 992px) {
  .breadcrumbs {
    margin-top: 57px;
  }
}
.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 500;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}
.breadcrumbs ol a {
  color: #fff;
  transition: 0.3s;
}
.breadcrumbs ol a:hover {
  text-decoration: underline;
}
.breadcrumbs ol li + li {
  padding-left: 10px;
}
.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: var(--pr-blue);
  content: "/";
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--pr-blue);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover {
  background: var(--pr-blue-dark);
  color: #fff;
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
}
.header.header-scrolled {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}
.header .logo {
  line-height: 0;
}
.header .logo img {
  max-height: 40px;
  margin-right: 6px;
}
.header .logo span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pr-blue);
  font-family: var(--main-font);
  margin-top: 3px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar .social-section .social-link {
  margin: 0 4px; /* smaller space between icons */
}

.navbar .social-section .social-link a {
  font-size: 18px;
  color: var(--pr-red);
  transition: color 0.3s;
  display: flex;
  align-items: center; /* vertically aligns with nav text */
}

.navbar .social-section .social-link a:hover {
  color: var(--pr-red-dark);
}
.navbar {
  padding: 0;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}
.navbar li {
  position: relative;
}
.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--pr-red) !important;
  white-space: nowrap;
  transition: 0.3s;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--pr-red) !important;
}
.navbar .getstarted,
.navbar .getstarted:focus {
  background: var(--pr-blue);
  padding: 8px 20px;
  margin-left: 30px;
  border-radius: 4px;
  color: #fff;
}
.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  color: #fff;
  background: var(--pr-blue-dark);
}

.social-mobile-section h3 {
  display: none;
}
@media (max-width: 1366px) {
  .navbar .social-section {
    overflow: auto;
    max-height: none;
  }
}

/* Mobile nav */
.mobile-nav-toggle {
  color: var(--pr-red) !important;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}
.mobile-nav-toggle.bi-x {
  color: #fff !important;
}
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}
.navbar-mobile {
  background: rgba(1, 22, 61, 0.9);
}
.navbar-mobile a {
  color: var(--pr-red) !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  height: 100vh;
  background-color: var(--pr-blue);
  background-image: linear-gradient(315deg, var(--pr-blue) 0%, #09c6f9 74%);
  background-size: cover;
}
.hero h1 {
  margin: 0;
  font-size: 70px;
  font-weight: 500;
  color: #fff;
}
.hero h2 {
  color: #fff;
  margin: 15px 0 0 0;
  font-size: 26px;
}
.hero .btn-get-started {
  margin-top: 30px;
  line-height: 0;
  padding: 15px 40px;
  border-radius: 4px;
  transition: 0.5s;
  color: #fff !important;
  background: var(--pr-blue) !important;
  box-shadow: 0 5px 20px rgba(0, 43, 127, 0.4);
  border: 2px solid var(--pr-blue);
}
.hero .btn-get-started:hover {
  background: var(--pr-blue-dark) !important;
  border-color: var(--pr-blue-dark);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about h2,
.about h3,
.about .btn-read-more {
  color: var(--pr-blue) !important;
}
.about .btn-read-more {
  background: var(--pr-blue) !important;
}
.about .btn-read-more:hover {
  background: var(--pr-blue-dark) !important;
}

/*--------------------------------------------------------------
# Values Section
--------------------------------------------------------------*/
.values h2,
.values .box h3 {
  color: var(--pr-blue) !important;
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq .accordion-button,
.faq .accordion-button:not(.collapsed),
.faq .accordion-button::after,
.faq h3 {
  color: var(--pr-blue) !important;
}
.faq .accordion-button:not(.collapsed) {
  background-color: rgba(0, 43, 127, 0.05);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box i,
.contact .php-email-form button[type="submit"],
.contact h3 {
  color: var(--pr-blue) !important;
}
.contact .php-email-form button[type="submit"] {
  background: var(--pr-blue) !important;
}
.contact .php-email-form button[type="submit"]:hover {
  background: var(--pr-blue-dark) !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer .footer-newsletter h4,
.footer .footer-top h4,
.footer .footer-top .footer-links ul a:hover,
.footer .footer-top .social-links a:hover,
.footer .copyright,
.footer .credits {
  color: var(--pr-blue) !important;
}
.footer .footer-newsletter form input[type="submit"] {
  background: var(--pr-blue) !important;
}
.footer .footer-newsletter form input[type="submit"]:hover {
  background: var(--pr-blue-dark) !important;
}

/* ==== Mobile navbar hard fixes ==== */
#navbar.navbar-mobile {
  position: fixed !important;
  z-index: 9999 !important;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(1, 22, 61, 0.9); /* same as theme */
  transition: 0.3s;
}

#navbar.navbar-mobile ul {
  display: block !important;          /* override .navbar ul { display:none } */
  position: absolute;
  top: 55px; right: 15px; bottom: 15px; left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background: #fff;
  overflow-y: auto;
}

#navbar.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px; right: 15px;
}

#navbar.navbar-mobile a {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--pr-red) !important;
}

/* ===== iOS/Safari text-boost + responsive type fixes ===== */

/* Disable Safari “font boosting” that inflates text sizes unpredictably */
html { -webkit-text-size-adjust: 100%; }

/* Make hero headings scale sanely across devices */
.hero h1 {
  /* clamp(min, preferred, max) */
  font-size: clamp(32px, 9vw, 64px);
  line-height: 1.05;
  font-weight: 600; /* crisp on iOS */
}

.hero h2 {
  font-size: clamp(18px, 3.8vw, 28px);
  line-height: 1.3;
  font-weight: 500;
}

/* Prevent weird line breaks & keep shadows under control on narrow screens */
.hero h1,
.hero h2 {
  word-break: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 6px rgba(0,0,0,0.35);
}

/* Also tame large section titles elsewhere */
.section-header p {
  font-size: clamp(22px, 5.2vw, 38px);
  line-height: 1.15;
}

/* Ensure system respects our sizes even if user text-size is bumped */
body {
  font-size: 16px;            /* base */
  -webkit-text-size-adjust: 100%;
}

/* Avoid zoom on inputs (iOS zooms if <16px) */
input, select, textarea, button { font-size: 16px; }
