/*
 Theme Name:   OTI Limited
 Theme URI     https://www.otilimited.com
 Description:  Custom WordPress Theme for OTI Limited
 Author:       McKenna Digital
 Author URI:   https://www.mckennadigital.co.uk
 Template:     bootscore
 Version:      1.0.0
 Text Domain:  oti-theme
*/

/* ---------------------------------------------------
   OTI Custom Styles
--------------------------------------------------- */

/* ---------------------------------------------------
   Base / Typography
--------------------------------------------------- */

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  font-style: normal;
}

h1 {
  font-size: clamp(2.25rem, 3vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 2.2vw, 2.5rem);
  line-height: 1.3;
  margin: 3rem 0 1rem;
  font-weight: 600;
  color: #082b4d;
  padding: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 1.75rem 0 0.5rem;
  font-weight: 600;
  color: #1f2a35;
}

p {
  margin: 0 0 1.25rem;
}

.content-text {
  max-width: 680px;
}

/* ---------------------------------------------------
   Header / Branding
--------------------------------------------------- */

.site-header {
  background: #082b4d !important;
}

.web-logo {
  width: 30% !important;
}

.navbar-brand {
  width: 50% !important;
}

/* ---------------------------------------------------
   Navigation
--------------------------------------------------- */

a.nav-link {
  color: #fff !important;
}

a.nav-link:hover,
a.nav-link:focus {
  text-decoration: underline !important;
}

.bg-body-tertiary {
  color: #fff !important;
}

#menu-main-menu > li > a,
ul.sub-menu a {
  color: #fff;
  text-decoration: none !important;
}

.navbar-nav .dropdown-menu {
  background: #082b4d !important;
  color: #fff !important;
  border: 0;
  margin-top: 0.5rem;
  left: auto;
  right: 0;
  transform: none !important;
  min-width: 260px;
}

a.dropdown-item {
  color: #fff;
}

a.dropdown-item:hover,
a.dropdown-item:focus {
  text-decoration: underline;
}

.dropdown-item.active {
  background-color: #ca2830 !important;
}


/* ---------------------------------------------------
   Entry Content
--------------------------------------------------- */

.entry-content {
  max-width: 94ch;
  margin-left: auto;
  margin-right: auto;
}

.entry-content h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.entry-content h2 {
  position: relative;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.entry-content h2:not(:first-child) {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(8, 43, 77, 0.12);
}

.entry-content p {
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

div.entry-content p a {
  color: #c73222 !important;
  text-decoration: none !important;
}

div.entry-content p a:hover,
div.entry-content p a:focus {
  text-decoration: underline !important;
}

.wp-block-separator {
  border: none;
  border-top: 2px solid rgba(8, 43, 77, 0.25);
  width: 80px;
  margin: 0.75rem 0 1.75rem;
}

.wp-block-list {
  list-style-type: circle !important;
}

/* ---------------------------------------------------
   CTA Section
--------------------------------------------------- */

.cta-section {
  width: 100%;
  background-color: #082b4d;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: #fff;
}

.cta-section p {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: #c73222;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #a1281a;
}

/* ---------------------------------------------------
   Hero Section
--------------------------------------------------- */

.oti-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 760px);
  display: flex;
  align-items: center;
  background: url("/wp-content/uploads/your-hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.oti-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.58)
  );
}

.oti-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(0, 0, 0, 0.4);
}

.oti-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.oti-hero__title {
  margin: 0 0 0.9rem;
  font-weight: 600;
  line-height: 1.15;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
}

.oti-hero__subtitle {
  margin: 0;
  line-height: 1.6;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 60ch;
}

/* ---------------------------------------------------
   Services / Cards
--------------------------------------------------- */

.service-block,
.service-card,
.services .card,
.services .shadow-sm {
  background: #fff !important;
  color: #1f2937 !important;
}

.service-block h3,
.service-block h4,
.service-block p,
.service-card h3,
.service-card h4,
.service-card p,
.services .card h3,
.services .card h4,
.services .card p {
  color: #1f2937 !important;
}

.service-icon {
  transition: color 0.3s ease;
}

.service-block:hover .service-icon {
  color: #c73222;
}

.service-block,
.services .card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-block:hover,
.services .card:hover {
  transform: translateY(-2px);
}

.service-block,
.service-block .card,
.service-block .shadow-sm,
.service-block .p-4.border.rounded.shadow-sm.h-100 {
  transition: transform 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}

.service-block:hover,
.service-block:hover .card,
.service-block:hover .shadow-sm,
.service-block:hover .p-4.border.rounded.shadow-sm.h-100 {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.service-block .service-icon,
.service-block i,
.service-block svg {
  transition: transform 160ms ease, opacity 160ms ease;
}

.service-block:hover .service-icon,
.service-block:hover i,
.service-block:hover svg {
  transform: scale(1.04);
  opacity: 0.95;
}

.service-block * {
  box-shadow: none !important;
}

.service-block .p-4.border.rounded.shadow-sm.h-100,
.service-block .card,
.service-block .shadow-sm {
  box-shadow: none !important;
}

.service-block {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  transform: translateZ(0);
  will-change: transform;
}

.service-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

a.service-block,
a.service-block:hover,
a.service-block:focus {
  text-decoration: none !important;
  outline: none;
}

a.service-block {
  display: block;
}

a.service-block > .p-4.border.rounded.shadow-sm.h-100 {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
  transform: translateZ(0);
}

a.service-block:hover > .p-4.border.rounded.shadow-sm.h-100,
a.service-block:focus > .p-4.border.rounded.shadow-sm.h-100 {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14) !important;
}

a.service-block .service-icon {
  transition: transform 160ms ease;
}

a.service-block:hover .service-icon {
  transform: scale(1.05);
}

a.service-block h5 {
  margin: 0;
  line-height: 1.25;
  max-width: 14ch;
}

.icon-circle {
  width: 80px;
  height: 80px;
  margin: 6px auto 0;
  background-color: #c73222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-2x {
  font-size: 2.25em;
}

.col-sm-3 {
  padding-bottom: 20px;
}

/* ---------------------------------------------------
   Icons
--------------------------------------------------- */

.fa-solid,
.fas {
  font-weight: 900;
  color: #fff !important;
}

/* ---------------------------------------------------
   Offcanvas / Utility UI
--------------------------------------------------- */

.offcanvas {
  background: #082b4d !important;
}

.offcanvas-title {
  color: #fff !important;
}

.top-button.visible {
  background: #082b4d;
  border-color: #082b4d;
}

a.top-button,
a.top-button:visited,
a.top-button:hover,
a.top-button:focus,
a.top-button:active,
a.top-button.btn-primary,
a.top-button.btn-primary:hover,
a.top-button.btn-primary:focus,
a.top-button.btn-primary:active {
  background-color: #082b4d !important;
  border-color: #082b4d !important;
  color: #fff !important;
}

.top-button:hover {
  background-color: #ca2830; !important;
  border-color: #ca2830; !important;
}

.sticky-top {
  position: static;
}

/* ---------------------------------------------------
   Testimonials
--------------------------------------------------- */

.wpmtst-testimonial-heading,
.wpmtst-testimonial {
  border-color: #082b4d !important;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

.bootscore-footer-columns {
  background: #2e2e2e !important;
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}

.bootscore-footer-columns,
.bootscore-footer-columns p,
.bootscore-footer-columns li {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.bootscore-footer-columns h2,
.bootscore-footer-columns h3,
.bootscore-footer-columns h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.bootscore-footer-columns h3,
.bootscore-footer-columns h4 {
  color: #f2f2f2 !important;
  font-weight: 600;
}

.bootscore-footer-columns h3 {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.bootscore-footer-columns a {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
}

.bootscore-footer-columns a:hover,
.bootscore-footer-columns a:focus {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.bootscore-footer-columns a[href^="mailto:"],
.bootscore-footer-columns a[href^="tel:"] {
  font-weight: 600;
}

.bootscore-footer-columns .wp-block-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.bootscore-footer-info {
  background: #b52a1d !important;
  border-top: 0 !important;
  padding: 0.9rem 0 !important;
  font-size: 0.95rem;
}

.bootscore-footer-info a {
  text-decoration: none !important;
}

.bootscore-footer-info a:hover,
.bootscore-footer-info a:focus {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

a.footer-link,
a.footer-link:visited {
  color: #fff !important;
}

div.widget.footer_widget.mb-3 p a:link {
  text-decoration: none;
  color: #fff !important;
}

div.widget.footer_widget.mb-3 p a:hover,
div.widget.footer_widget.mb-3 p a:focus {
  text-decoration: underline !important;
}

/* ---------------------------------------------------
   Error Hero
--------------------------------------------------- */

.error-hero {
  position: relative;
  min-height: 65vh;
}

.error-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.error-hero__content {
  position: relative;
  z-index: 2;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */

@media (max-width: 768px) {
  .oti-hero {
    min-height: clamp(380px, 58vh, 560px);
  }

  .oti-hero__inner {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .oti-hero__title {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .oti-hero__subtitle {
    font-size: 1rem;
  }

  .bootscore-footer-columns .footer_widget {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .web-logo {
    width: 60% !important;
  }
}