/* =========================================================
   BROCE DEVELOPMENTS — stylesheet
   Colors:  white #ffffff | orange #ef7b22 | blue #015b81
            dark blue #003850 | black #000000
   Fonts:   Montserrat (titles / subtitles) | Roboto (paragraphs)
   ========================================================= */

:root {
  --white: #ffffff;
  --orange: #ef7b22;
  --blue: #015b81;
  --dark-blue: #003850;
  --black: #000000;

  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --container-width: 1200px;
  --radius: 10px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

p { margin: 0; }

/* ---------- Reusable type ---------- */

.eyebrow {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin: 0 0 8px;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.75); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }

.section-title { font-size: 28px; color: var(--dark-blue); }

.section-title--light { color: var(--white); }

.section-text {
  margin-top: 14px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

.text-accent { color: var(--orange); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #d9691a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(239, 123, 34, 0.35);
}

/* ---------- Check lists ---------- */

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--white);
  transition: transform var(--transition), color var(--transition);
}

.check-list li:hover {
  transform: translateX(4px);
  color: var(--orange);
}

.check-list li:hover::before { transform: scale(1.15); }

.check-list li::before { transition: transform var(--transition); }

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
}

.check-list--dark li { color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img { height: 57px; width: auto; transition: transform var(--transition); }

.logo:hover .logo-img { transform: scale(1.05); }

img.logo-img--footer {
  box-sizing: content-box;
  width: 182px;
  height: auto;
  background: var(--white);
  padding: 15px;
  border-radius: 6px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark-blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1000;
  padding: 100px 30px 30px;
}

.primary-nav.open { transform: translateX(0); }

.primary-nav ul { display: flex; flex-direction: column; gap: 22px; }

.nav-link {
  position: relative;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark-blue);
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover,
.nav-link.active { color: var(--orange); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.nav-backdrop.open { opacity: 1; visibility: visible; }

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-contact__item {
  font-size: 13px;
  color: var(--dark-blue);
}

.header-contact__item--accent { color: var(--orange); font-weight: 600; }

.header-contact--mobile {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 56, 80, 0.12);
}

.header-contact--desktop { display: none; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding: 60px 0 70px;
  background: #23262b url('../images/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.6));
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero__title {
  font-size: 30px;
  color: var(--white);
  margin: 12px 0 18px;
}

.hero__text {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-bottom: 26px;
}

.hero__card {
  background: rgba(0, 56, 80, 0.78);
  border: 1px solid rgba(239, 123, 34, 0.35);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(2px);
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why {
  background: var(--blue);
  padding: 64px 0;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.why-card {
  background: var(--dark-blue);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(239, 123, 34, 0.4);
  background: #01415c;
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(239, 123, 34, 0.12);
  transition: transform var(--transition), background var(--transition);
}

.why-card:hover .why-card__icon {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(239, 123, 34, 0.25);
}

.why-card__icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-size: 16px;
  color: var(--orange);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.why-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  background: var(--dark-blue);
  padding: 64px 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tab:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  background: rgba(239, 123, 34, 0.12);
}

.tab.active:hover { transform: none; }

.tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.service-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 34px;
}

.service-panel__title {
  font-size: 22px;
  color: var(--orange);
  margin-bottom: 18px;
}

.service-panel .check-list { border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding-bottom: 24px; margin-bottom: 20px; }

.badge {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
  background: var(--orange);
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(239, 123, 34, 0.35);
}

.service-gallery__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #012738;
}

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

.service-gallery__frame:hover img { transform: scale(1.06); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-nav:hover { background: var(--orange); }

.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }

.service-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.gallery-dot:hover { background: rgba(239, 123, 34, 0.7); }

.gallery-dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

.services-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  margin-top: 40px;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  padding: 64px 0;
  background: #142229 url('../images/contact-bg.jpg') center/cover no-repeat fixed;
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 33, 48, 0.9), rgba(0, 20, 30, 0.94));
}

.contact .container { position: relative; z-index: 1; }

.contact-form {
  background: rgba(0, 25, 38, 0.82);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 30px 22px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-form__title {
  font-size: 16px;
  color: var(--orange);
  margin-bottom: 18px;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.service-option {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.service-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.service-option:hover {
  border-color: rgba(239, 123, 34, 0.6);
  background: rgba(239, 123, 34, 0.1);
}

.service-option:has(input:checked) {
  border-color: var(--orange);
  background: rgba(239, 123, 34, 0.18);
}

.service-option:has(input:focus-visible) { outline: 2px solid var(--orange); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color var(--transition), background var(--transition);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.form-footer .btn { width: 100%; text-align: center; }

.form-success {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(239, 123, 34, 0.18);
  border: 1px solid var(--orange);
  color: var(--white);
  font-size: 13.5px;
  text-align: center;
}

.form-success.visible { display: block; }

.form-error {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(220, 60, 40, 0.18);
  border: 1px solid #dc3c28;
  color: var(--white);
  font-size: 13.5px;
  text-align: center;
}

.form-error.visible { display: block; }

.btn--loading { opacity: 0.7; cursor: wait; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { background: #045b82; padding: 60px 0 0; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.logo--footer { margin-bottom: 16px; }
.logo--footer .logo-text { color: var(--orange); }
.logo--footer .logo-text em { color: rgba(255, 255, 255, 0.6); }

.footer-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col li,
.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-col a { display: inline-block; transition: color var(--transition), transform var(--transition); }

.footer-col a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

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

.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"].in-view,
[data-reveal="right"].in-view {
  transform: translateX(0);
}

/* Staggered entrance for grouped items */
.why__grid [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.why__grid [data-reveal]:nth-child(3) { transition-delay: 0.24s; }

.footer__grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.footer__grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.footer__grid [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================
   RESPONSIVE — TABLET (>=768px)
   ========================================================= */

@media (min-width: 768px) {
  body { font-size: 16px; }

  .section-title { font-size: 34px; }
  .hero__title { font-size: 42px; }

  .why__grid { grid-template-columns: repeat(3, 1fr); }

  .hero__grid { flex-direction: row; align-items: center; }
  .hero__content { flex: 1 1 55%; }
  .hero__card { flex: 1 1 40%; }

  .service-panel { grid-template-columns: 1fr 1fr; gap: 50px; }

  .form-grid { grid-template-columns: 1fr 1fr; }

  .service-options { grid-template-columns: repeat(4, 1fr); }

  .form-footer { flex-direction: row; justify-content: space-between; align-items: center; }
  .form-footer .btn { width: auto; padding-left: 46px; padding-right: 46px; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* =========================================================
   RESPONSIVE — DESKTOP (>=1024px)
   ========================================================= */

@media (min-width: 1024px) {
  .header-inner { height: 88px; }

  .header-left { gap: 44px; }

  .logo-img { height: 68px; }

  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    transform: none;
    padding: 0;
  }

  .primary-nav ul { flex-direction: row; gap: 28px; }

  .header-contact--mobile { display: none; }

  .nav-backdrop { display: none; }

  .header-contact--desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    font-size: 12.5px;
    color: var(--dark-blue);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
  }

  .hero { padding: 100px 0 120px; }
  .hero__title { font-size: 50px; }

  .services-note { font-size: 14px; }
}

@media (min-width: 1200px) {
  .hero__title { font-size: 54px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
