/* ==========================================================
   FIRRHILL WEB
   Main Stylesheet
========================================================== */


/* ----------------------------------------------------------
   BRAND
---------------------------------------------------------- */

:root {
  --brand-navy: #0F172A;
  --brand-navy-light: #1E293B;

  --brand-primary: #2563EB;
  --brand-primary-hover: #1D4ED8;
  --brand-primary-dark: #1E40AF;

  --brand-accent: #38BDF8;
  --brand-accent-light: #E0F2FE;

  --brand-white: #FFFFFF;

  --brand-grey-50: #F8FAFC;
  --brand-grey-100: #F1F5F9;
  --brand-grey-200: #E5E7EB;
  --brand-grey-400: #94A3B8;
  --brand-grey-600: #475569;
  --brand-grey-700: #334155;

  --brand-text: #334155;
  --brand-heading: #0F172A;

  --brand-border: #E2E8F0;

  --brand-focus-ring: rgba(37, 99, 235, 0.25);

  --brand-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08);

  --brand-shadow-hover:
    0 18px 45px rgba(15, 23, 42, 0.14);

  --brand-radius: 12px;
}


/* ----------------------------------------------------------
   GLOBAL
---------------------------------------------------------- */

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--brand-white);
  color: var(--brand-text);

  display: flex;
  flex-direction: column;

  line-height: 1.65;
}

main {
  flex: 1;
}

section {
  position: relative;
}

img {
  max-width: 100%;
}

a {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


/* ----------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

h3 {
  line-height: 1.3;
}

.lead {
  color: var(--brand-grey-600);
  line-height: 1.7;
}

.text-muted {
  color: var(--brand-grey-600) !important;
}

.text-primary {
  color: var(--brand-primary) !important;
}


/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */

.navbar {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--brand-border) !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  color: var(--brand-navy) !important;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-brand img {
  object-fit: contain;
  margin-right: 0.65rem;
}

.nav-link {
  position: relative;

  color: var(--brand-grey-700) !important;

  font-weight: 600;

  margin-left: 0.3rem;
  margin-right: 0.3rem;

  border-bottom: none !important;
}

.nav-link:hover {
  color: var(--brand-primary) !important;
}

.nav-link.active {
  color: var(--brand-primary) !important;
}

.nav-link.active::after {
  content: "";

  position: absolute;

  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;

  height: 2px;

  background-color: var(--brand-primary);

  border-radius: 10px;
}

.navbar-toggler {
  border-color: var(--brand-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--brand-focus-ring);
}


/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */

.btn {
  border-radius: 8px;
  font-weight: 600;

  padding: 0.7rem 1.25rem;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);

  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--brand-white);

  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-light {
  color: var(--brand-navy);

  background-color: var(--brand-white);
  border-color: var(--brand-white);
}

.btn-light:hover {
  color: var(--brand-primary);

  background-color: var(--brand-grey-50);
  border-color: var(--brand-grey-50);
}

.btn-outline-light:hover {
  color: var(--brand-navy);
}


/* ----------------------------------------------------------
   HOMEPAGE HERO
---------------------------------------------------------- */

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: 620px;

  padding: 110px 0;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(56, 189, 248, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(37, 99, 235, 0.22),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #0F172A 0%,
      #172554 55%,
      #1E3A8A 100%
    );
}


/* Subtle decorative glow */

.hero-home::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  right: -170px;
  top: -180px;

  border-radius: 50%;

  background:
    rgba(56, 189, 248, 0.12);

  filter: blur(5px);

  pointer-events: none;
}


/* Subtle second glow */

.hero-home::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  left: -180px;
  bottom: -190px;

  border-radius: 50%;

  background:
    rgba(37, 99, 235, 0.18);

  pointer-events: none;
}

.hero-home .container {
  position: relative;
  z-index: 2;
}

.hero-home h1 {
  color: var(--brand-white);

  max-width: 900px;

  margin-left: auto;
  margin-right: auto;
}

.hero-home .lead {
  color: #DBEAFE;

  max-width: 720px;

  font-size: 1.25rem;
}

.hero-home .text-uppercase {
  color: var(--brand-accent);

  letter-spacing: 0.12em;

  font-size: 0.85rem;
}

.hero-home .small {
  color: #BFDBFE;
}


/* ----------------------------------------------------------
   GENERAL SECTIONS
---------------------------------------------------------- */

.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.bg-light {
  background-color: var(--brand-grey-50) !important;
}

section .text-uppercase {
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}


/* ----------------------------------------------------------
   CARDS
---------------------------------------------------------- */

.card {
  border: 1px solid var(--brand-border) !important;

  border-radius: var(--brand-radius);

  background-color: var(--brand-white);

  box-shadow: var(--brand-shadow);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);

  box-shadow: var(--brand-shadow-hover);

  border-color: rgba(37, 99, 235, 0.2) !important;
}

.card h3 {
  color: var(--brand-navy);
}

.card .bi {
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.card:hover > .bi,
.card:hover .service-icon {
  transform: translateY(-5px);

  color: var(--brand-primary-dark) !important;
}


/* ----------------------------------------------------------
   WHY FIRRHILL WEB
---------------------------------------------------------- */

.why-card {
  position: relative;

  background-color: var(--brand-white);

  border: 1px solid var(--brand-border);

  border-radius: var(--brand-radius);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--brand-shadow);

  border-color: rgba(37, 99, 235, 0.2);
}

.why-card .bi {
  color: var(--brand-primary) !important;

  transition: transform 0.25s ease;
}

.why-card:hover .bi {
  transform: translateY(-4px);
}


/* ----------------------------------------------------------
   FORMS
---------------------------------------------------------- */

form label {
  font-weight: 600;
  color: var(--brand-navy);
}

form input,
form textarea,
form select {
  border-radius: 8px !important;

  border: 1px solid #CBD5E1 !important;

  padding: 0.75rem 0.9rem !important;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--brand-primary) !important;

  box-shadow:
    0 0 0 0.2rem var(--brand-focus-ring) !important;
}


/* ----------------------------------------------------------
   CONTACT
---------------------------------------------------------- */

.contact-info-box {
  background-color: var(--brand-grey-50);

  border: 1px solid var(--brand-border);

  border-radius: var(--brand-radius);

  padding: 1.5rem;
}

.contact-info-box p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info-box i {
  font-size: 1.2rem;
  color: var(--brand-primary);
}


/* ----------------------------------------------------------
   FINAL CTA
---------------------------------------------------------- */

.footer-cta-gradient {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(56, 189, 248, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      var(--brand-primary-dark),
      var(--brand-primary),
      #0F172A
    );
}

.footer-cta-gradient h2 {
  color: var(--brand-white);
}

.footer-cta-gradient .lead {
  color: #DBEAFE;
}

.footer-cta-btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-cta-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.22);
}


/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

footer {
  background-color: var(--brand-navy) !important;

  color: #CBD5E1;

  border-top: 3px solid var(--brand-primary);
}

footer h5,
footer h6,
footer .h5,
footer .h6 {
  color: var(--brand-white) !important;
}

footer p {
  color: #CBD5E1;
}

footer a {
  color: #E2E8F0;
  text-decoration: none;
}

footer a.text-light {
  display: inline-block;

  padding: 5px 0;

  color: #E2E8F0 !important;
}

footer a:hover {
  color: var(--brand-accent) !important;
}

.footer-current-page {
  color: var(--brand-accent);

  font-weight: 700;
}

.footer-current-page::before {
  content: "› ";
}

.footer-contact-link {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

footer .bi {
  display: inline-block;

  transition: transform 0.2s ease;
}

footer a:hover .bi {
  transform: scale(1.15);
}


/* Social platform colours */

.social-facebook .bi {
  color: #1877F2;
}

.social-twitter .bi {
  color: #1DA1F2;
}

.social-instagram .bi {
  color: #E1306C;
}


/* ----------------------------------------------------------
   IMAGE / PORTFOLIO UTILITIES
---------------------------------------------------------- */

.card-img-wrapper {
  position: relative;

  overflow: hidden;

  border-radius:
    var(--brand-radius)
    var(--brand-radius)
    0
    0;
}

.card-img-wrapper img {
  transition: transform 0.35s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.05);
}

.card-img-top {
  width: 100%;
  height: 250px;

  object-fit: cover;

  display: block;
}

.card-img-overlay-hover {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    rgba(15, 23, 42, 0.72);

  color: var(--brand-white);

  opacity: 0;

  transition: opacity 0.3s ease;

  font-size: 1.1rem;
  font-weight: 600;
}

.card-img-wrapper:hover .card-img-overlay-hover {
  opacity: 1;
}




/* ----------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}


/* ----------------------------------------------------------
   TABLET
---------------------------------------------------------- */

@media (max-width: 991.98px) {

  .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .nav-link {
    margin-left: 0;
    margin-right: 0;

    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .hero-home {
    min-height: 560px;

    padding: 90px 0;
  }

}


/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */

@media (max-width: 576px) {

  
  .navbar-brand {
    font-size: 1.1rem;
  }

  .hero-home {
    min-height: auto;

    padding: 80px 0 !important;
  }

  .hero-home h1 {
    font-size: 2.25rem;
  }

  .hero-home .lead {
    font-size: 1.05rem;
  }

  .hero-home .btn {
    width: 100%;

    max-width: 300px;
  }

  section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .card {
    margin-bottom: 0;
  }

  .card:hover,
  .why-card:hover {
    transform: none;
  }

  .why-card {
    padding: 1.5rem !important;
  }

  .btn {
    margin-bottom: 0;
  }

  form .form-control {
    margin-bottom: 15px;
  }

  footer .list-inline-item {
    display: block;

    margin-bottom: 8px;
  }

}


/* ----------------------------------------------------------
   REDUCED MOTION
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

/* ----------------------------------------------------------
   SERVICES HERO
---------------------------------------------------------- */

.services-hero {
  position: relative;
  overflow: hidden;

  padding: 100px 0;

  background:
    radial-gradient(
      circle at 15% 30%,
      rgba(56, 189, 248, 0.16),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--brand-navy),
      #172554 55%,
      var(--brand-primary-dark)
    );
}

.services-hero h1 {
  color: var(--brand-white);
}

.services-hero .lead {
  color: #DBEAFE;
  max-width: 750px;
}

.services-hero .text-uppercase {
  color: var(--brand-accent);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

@media (max-width: 576px) {

  .services-hero {
    padding: 70px 0;
  }

}

/* ----------------------------------------------------------
   PORTFOLIO
---------------------------------------------------------- */

.portfolio-preview {
  max-width: 650px;
  margin: 0 auto;
}

.portfolio-browser {
  overflow: hidden;

  background: var(--brand-white);

  border: 1px solid var(--brand-border);
  border-radius: 14px;

  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.15);
}

.portfolio-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;

  min-height: 48px;

  padding: 0 14px;

  background: var(--brand-grey-100);

  border-bottom: 1px solid var(--brand-border);
}

.portfolio-browser-bar > span {
  width: 10px;
  height: 10px;

  flex: 0 0 10px;

  border-radius: 50%;

  background: var(--brand-grey-400);
}

.portfolio-address {
  overflow: hidden;

  margin-left: 10px;
  padding: 5px 15px;

  flex: 1;

  background: var(--brand-white);

  border: 1px solid var(--brand-border);
  border-radius: 6px;

  color: var(--brand-grey-600);

  font-size: 0.75rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-screen {
  min-height: 360px;
}

.portfolio-demo-hero {
  min-height: 360px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 50px 30px;

  text-align: center;

  background:
    linear-gradient(
      rgba(13, 110, 253, 0.78),
      rgba(13, 110, 253, 0.78)
    ),
    linear-gradient(
      135deg,
      #334155,
      #64748B
    );
}

.portfolio-demo-label {
  margin-bottom: 15px;

  color: #FFFFFF;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.portfolio-demo-hero h3 {
  margin-bottom: 15px;

  color: #FFFFFF;

  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.portfolio-demo-hero p {
  margin-bottom: 25px;

  color: #EAF2FF;
}

.portfolio-demo-button {
  display: inline-block;

  padding: 10px 20px;

  background: #FFFFFF;

  color: #0D6EFD;

  border-radius: 6px;

  font-size: 0.85rem;
  font-weight: 700;
}

.portfolio-tag {
  display: inline-block;

  padding: 6px 12px;

  background: var(--brand-primary-light, #EFF6FF);

  border: 1px solid #BFDBFE;
  border-radius: 999px;

  color: var(--brand-primary-dark);

  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 576px) {

  .portfolio-screen,
  .portfolio-demo-hero {
    min-height: 300px;
  }

  .portfolio-demo-hero {
    padding: 40px 20px;
  }

}

/* =====================================================
   SITE LOGO
===================================================== */

.site-logo {
  display: block;
  width: auto;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .site-logo {
    height: 60px;
  }
}

/* Keep generous vertical spacing without oversized mobile horizontal gutters */
@media (max-width: 767.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 3rem;
  }
}