/* =========================
   DragonGate — responsive.css
   Location: assets/css/responsive.css
   Combines global + responsive rules for all pages.
   ========================= */

/* =========================
   VARIABLES
   ========================= */
:root {
  --dg-primary: #7C0E03;
  /* --dg-secondary: #C2BEB7; */
  --dg-text: #222;
  --dg-muted: #6b6b6b;
  --dg-white: #ffffff;
}

/* =========================
   BASE / TYPOGRAPHY / BODY
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--dg-secondary);
  color: var(--dg-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga" 1;
  -moz-font-feature-settings: "liga" 1;
  -ms-font-feature-settings: "liga" 1;
  -o-font-feature-settings: "liga" 1;
}

/* utility */
.text-muted {
  color: var(--dg-muted) !important;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

.navbar .brand-logo {
  max-height: 56px;
  width: auto;
}

.navbar .nav-link {
  color: inherit;
}

.navbar .nav-link.active {
  font-weight: 600;
  color: var(--dg-primary);
}

/* =========================
   HERO / PAGE-HERO / PAGE-HEADER
   ========================= */
.hero,
.page-hero,
.page-header {
  position: relative;
  color: #fff;
}

.hero {
  min-height: 80vh;
  display: grid;
  align-items: center;
  padding: 3rem 0;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
}

.hero .hero-content {
  z-index: 1;
}

.page-hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(124, 14, 3, 0.06), rgba(124, 14, 3, 0.02));
  color: #222;
}

.page-header {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(124, 14, 3, 0.08), rgba(124, 14, 3, 0.03));
}

/* =========================
   BUTTONS
   ========================= */
.btn-dg,
.btn-dg:focus,
.btn-dg:active {
  background-color: var(--dg-primary);
  border-color: var(--dg-primary);
  color: #fff !important;
  transition: all 0.18s ease;
}

.btn-dg:hover {
  background-color: #5f0b02;
  border-color: #5f0b02;
  color: #fff !important;
}

/* alternative primary naming used across pages */
.btn-dg-primary {
  background-color: var(--dg-primary);
  border-color: var(--dg-primary);
  color: #fff !important;
  transition: all 0.18s ease;
}

.btn-dg-primary:hover {
  background-color: #5f0b02;
  border-color: #5f0b02;
}

/* outline dark */
.btn-outline-dark {
  color: var(--dg-primary);
  border-color: var(--dg-primary);
}

.btn-outline-dark:hover {
  background-color: var(--dg-primary);
  color: #fff;
  border-color: var(--dg-primary);
}

/* small layout tweak for outline/ light */
.btn-outline-light:hover {
  color: var(--dg-primary) !important;
  background-color: white !important;
}

/* =========================
   CARDS & SERVICES
   ========================= */
.card-service,
.mission-card,
.service-card,
.partner-card,
.form-card {
  background: var(--dg-white);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-service:hover,
.mission-card:hover,
.service-card:hover,
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(124, 14, 3, 0.08);
}

/* service icon */
.service-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(124, 14, 3, 0.10), rgba(124, 14, 3, 0.06));
  color: var(--dg-primary);
  font-weight: 700;
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

/* =========================
   PARTNERS CAROUSEL / GRID
   ========================= */
.partners-carousel .carousel-item {
  padding: 1.6rem 0;
}

.partner-logo {
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(80%);
  opacity: 0.65;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* partners grid card adjustments */
.partners-grid .partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}

.partners-grid .partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(124, 14, 3, 0.12);
}

.partners-grid .partner-logo {
  max-height: 64px;
}

/* =========================
   TIMELINE
   ========================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.9rem;
  height: 100%;
  width: 2px;
  background: rgba(124, 14, 3, 0.12);
}

.timeline li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dg-primary);
  box-shadow: 0 0 0 4px rgba(124, 14, 3, 0.12);
  z-index: 1;
}

/* =========================
   TEAM
   ========================= */
.team-member img,
.col-md-4 .rounded-circle,
img.rounded-circle {
  max-width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid var(--dg-primary);
}

.team-member {
  margin-bottom: 1rem;
}

/* =========================
   FAQ / ACCORDION
   ========================= */
.faq .accordion-item {
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 0, 0, .08);
}

.faq .accordion-button:not(.collapsed) {
  color: #fff;
  background-color: var(--dg-primary);
  box-shadow: none;
}

/* =========================
   CTA STRIP / CTA BAR
   ========================= */
.cta-strip {
  background: var(--dg-primary);
  color: #fff;
  padding: 1.6rem;
  border-radius: 10px;
}

.cta-bar .btn-lg {
  min-width: 220px;
}

/* =========================
   FORMS
   ========================= */
.form-card {
  background: var(--dg-white);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.form-card label,
.form-card .form-label {
  font-weight: 600;
}

.note-muted {
  color: var(--dg-muted);
  font-size: .95rem;
}

/* file input */
.form-card input[type="file"] {
  font-size: .95rem;
}

/* validation helpers */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: none;
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #198754;
}

/* reply hidden input defensive */
input[type="hidden"]#replyto {
  display: none !important;
}

/* small fix: consent + button row stacking */
.form-actions-stack {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (max-width:575.98px) {
  .form-actions-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions-stack .btn {
    width: 100% !important;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #222;
  color: #ddd;
  padding: 3rem 0 1.5rem 0;
}

footer img {
  filter: invert(1);
  opacity: 0.85;
  max-width: 160px;
}

footer a.text-muted:hover {
  color: #fff !important;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* =========================
   SEARCH / FILTER
   ========================= */
.search-filter {
  background: #fff;
  border-radius: 10px;
  padding: .6rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.search-filter input[type="search"] {
  border: none;
  outline: none;
  box-shadow: none;
}

.no-results {
  color: var(--dg-muted);
  padding: 2rem 0;
}

/* =========================
   ACCESSIBILITY / FOCUS
   ========================= */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
  outline: 3px solid rgba(124, 14, 3, 0.10);
  outline-offset: 2px;
}

/* =========================
   SMALL LAYOUT FIXES USED IN MANY PAGES
   ========================= */
img.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
   Comprehensive coverage for all device sizes
   ========================= */

/* =========================
   MOBILE PHONES
   ========================= */

/* 360 × 800 - Mid-range Android devices */
@media (max-width: 360px) {
  .brand-logo {
    max-height: 38px;
  }

  .about-hero {
    padding: 2rem 0 !important;
  }

  .about-hero h1 {
    font-size: 1.75rem !important;
  }

  .about-hero .lead {
    font-size: 0.9rem !important;
  }

  .about-hero .btn-lg {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
  }

  .team-member img {
    max-width: 95px;
    height: 95px;
    border-width: 2px;
  }

  .col-6.col-sm-4.col-md-3 {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
  }

  .form-card,
  .contact-card {
    padding: 1rem !important;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.25rem;
  }
}

/* 375 × 812 - iPhone X, XS */
@media (min-width: 361px) and (max-width: 375px) {
  .brand-logo {
    max-height: 42px;
  }

  .about-hero {
    padding: 2.25rem 0 !important;
  }

  .about-hero h1 {
    font-size: 1.85rem !important;
  }

  .about-hero .lead {
    font-size: 0.95rem !important;
  }

  .about-hero .btn-lg {
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
  }

  .team-member img {
    max-width: 100px;
    height: 100px;
    border-width: 2px;
  }

  .form-card,
  .contact-card {
    padding: 1.2rem !important;
  }
}

/* 390 × 844 - iPhone 12, 13, 14, 15 */
@media (min-width: 376px) and (max-width: 390px) {
  .brand-logo {
    max-height: 44px;
  }

  .about-hero {
    padding: 2.5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 1.95rem !important;
  }

  .about-hero .lead {
    font-size: 1rem !important;
  }

  .about-hero .btn-lg {
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
  }

  .team-member img {
    max-width: 105px;
    height: 105px;
  }

  .form-card,
  .contact-card {
    padding: 1.3rem !important;
  }
}

/* 393 × 873 - Modern Android flagship phones */
@media (min-width: 391px) and (max-width: 393px) {
  .brand-logo {
    max-height: 45px;
  }

  .about-hero {
    padding: 2.6rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2rem !important;
  }

  .about-hero .lead {
    font-size: 1.05rem !important;
  }

  .about-hero .btn-lg {
    font-size: 1rem;
    padding: 0.65rem 1.2rem;
  }

  .team-member img {
    max-width: 110px;
    height: 110px;
  }
}

/* 414 × 896 - Larger iPhones (iPhone 11, XR) */
@media (min-width: 394px) and (max-width: 414px) {
  .brand-logo {
    max-height: 46px;
  }

  .about-hero {
    padding: 2.75rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.1rem !important;
  }

  .about-hero .lead {
    font-size: 1.1rem !important;
  }

  .about-hero .btn-lg {
    font-size: 1.05rem;
    padding: 0.7rem 1.3rem;
  }

  .team-member img {
    max-width: 115px;
    height: 115px;
  }
}

/* Standard mobile devices (up to 767.98px) - General rules */
@media (max-width: 767.98px) {
  .brand-logo {
    max-height: 48px;
  }

  .about-hero {
    padding: 3rem 0 !important;
    text-align: center;
  }

  .about-hero .hero-content {
    text-align: center;
  }

  .about-hero h1 {
    font-size: 2.25rem !important;
  }

  .about-hero .lead {
    font-size: 1.1rem !important;
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero .d-flex.gap-3 {
    justify-content: center !important;
    flex-wrap: wrap;
  }

  .about-hero .btn-lg {
    width: 100%;
    max-width: 320px;
  }

  .col-md-4:not(:last-child) {
    margin-bottom: 1rem;
  }

  .col-6.col-md-3 {
    width: 50%;
  }

  /* team 2-per-row */
  .service-icon {
    margin-bottom: 0.5rem;
  }

  .about-cta {
    text-align: center;
  }

  .about-cta .btn-lg {
    width: 100%;
    max-width: 300px;
  }

  .position-sticky {
    position: static !important;
    top: auto !important;
  }

  .form-actions-stack {
    flex-direction: column;
    gap: .75rem;
  }

  .search-filter {
    width: 100%;
  }

  .text-md-end {
    text-align: center !important;
    margin-top: .5rem;
  }

  .col-md-4.text-md-end {
    text-align: center !important;
  }

  .col-md-4.text-md-end .btn {
    width: 100%;
  }

  .bg-light .col-md-8 {
    text-align: center;
  }

  .about-overview .row {
    text-align: center;
  }

  .about-team .row {
    justify-content: center;
  }

  .partners-grid .col-6 {
    width: 50%;
  }

  .partners-grid .col-sm-4 {
    width: 50%;
  }
}

/* =========================
   TABLETS
   ========================= */

/* 768 × 1024 - Standard tablets portrait (iPad, etc.) */
@media (min-width: 768px) and (max-width: 1024px) {
  .about-hero {
    padding: 4rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.5rem !important;
  }

  .about-hero .lead {
    font-size: 1.15rem !important;
  }

  .about-hero .col-lg-7 {
    max-width: 100%;
    text-align: center;
  }

  .about-hero .btn-lg {
    font-size: 1rem;
  }

  .col-6.col-sm-4.col-md-3 {
    width: 25%;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline::before {
    left: 0.4rem;
  }

  .timeline li::before {
    left: 0.1rem;
  }

  .team-member img {
    max-width: 125px;
    height: 125px;
  }

  .form-card,
  .contact-card {
    padding: 1.8rem !important;
  }

  .partners-grid .col-md-3 {
    width: 33.333%;
  }
}

/* 810 × 1080 - Modern mid-range tablets */
@media (min-width: 810px) and (max-width: 1080px) {
  .about-hero {
    padding: 4.5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.6rem !important;
  }

  .about-hero .lead {
    font-size: 1.2rem !important;
  }

  .brand-logo {
    max-height: 52px;
  }

  .team-member img {
    max-width: 130px;
    height: 130px;
  }

  .form-card,
  .contact-card {
    padding: 2rem !important;
  }
}

/* 820 × 1180 - Newer larger tablets (iPad Air) */
@media (min-width: 820px) and (max-width: 1180px) {
  .about-hero {
    padding: 4.75rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.7rem !important;
  }

  .about-hero .lead {
    font-size: 1.25rem !important;
  }

  .brand-logo {
    max-height: 54px;
  }

  .team-member img {
    max-width: 135px;
    height: 135px;
  }
}

/* 1024 × 1366 - Large premium tablets portrait (iPad Pro) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .about-hero {
    padding: 5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.8rem !important;
  }

  .about-hero .lead {
    font-size: 1.3rem !important;
  }

  .brand-logo {
    max-height: 56px;
  }

  .team-member img {
    max-width: 140px;
    height: 140px;
  }

  .form-card,
  .contact-card {
    padding: 2.2rem !important;
  }
}

/* =========================
   DESKTOP / LAPTOP
   ========================= */

/* 1280 × 720 - HD / 720p (older, smaller monitors) */
@media (min-width: 1280px) and (max-width: 1365px) {
  .about-hero {
    padding: 5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.8rem !important;
  }

  .about-hero .lead {
    font-size: 1.3rem !important;
    max-width: 90%;
  }

  .container {
    max-width: 1200px;
  }

  .brand-logo {
    max-height: 56px;
  }
}

/* 1366 × 768 - Standard budget laptops */
@media (min-width: 1366px) and (max-width: 1535px) {
  .about-hero {
    padding: 5.5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 3rem !important;
  }

  .about-hero .lead {
    font-size: 1.4rem !important;
    max-width: 85%;
  }

  .container {
    max-width: 1320px;
  }

  .brand-logo {
    max-height: 58px;
  }

  .form-card,
  .contact-card {
    padding: 2.5rem !important;
  }
}

/* 1536 × 864 - Mid-range laptops */
@media (min-width: 1536px) and (max-width: 1919px) {
  .about-hero {
    padding: 6rem 0 !important;
  }

  .about-hero h1 {
    font-size: 3.2rem !important;
  }

  .about-hero .lead {
    font-size: 1.5rem !important;
    max-width: 80%;
  }

  .container {
    max-width: 1440px;
  }

  .brand-logo {
    max-height: 60px;
  }

  .form-card,
  .contact-card {
    padding: 2.8rem !important;
  }

  .team-member img {
    max-width: 150px;
    height: 150px;
  }
}

/* 1920 × 1080 - Full HD / 1080p (most common) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .about-hero {
    padding: 6.5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 3.5rem !important;
  }

  .about-hero .lead {
    font-size: 1.6rem !important;
    max-width: 75%;
  }

  .container {
    max-width: 1600px;
  }

  .brand-logo {
    max-height: 64px;
  }

  .form-card,
  .contact-card {
    padding: 3rem !important;
  }

  .team-member img {
    max-width: 160px;
    height: 160px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    font-size: 1.75rem;
  }
}

/* 2560 × 1440 - Quad HD / 2K (high-end monitors) */
@media (min-width: 2560px) and (max-width: 3839px) {
  .about-hero {
    padding: 7rem 0 !important;
  }

  .about-hero h1 {
    font-size: 4rem !important;
  }

  .about-hero .lead {
    font-size: 1.8rem !important;
    max-width: 70%;
  }

  .container {
    max-width: 2000px;
  }

  .brand-logo {
    max-height: 70px;
  }

  .form-card,
  .contact-card {
    padding: 3.5rem !important;
  }

  .team-member img {
    max-width: 180px;
    height: 180px;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 2rem;
  }

  .about-overview {
    padding: clamp(5rem, 8vw, 6.5rem) 0 !important;
  }

  .about-story {
    padding: clamp(5rem, 8vw, 6.5rem) 0 !important;
  }

  .about-team {
    padding: clamp(5rem, 8vw, 6.5rem) 0 !important;
  }
}

/* 3840 × 2160 - 4K Ultra HD (high-end monitors, large TVs) */
@media (min-width: 3840px) {
  .about-hero {
    padding: 8rem 0 !important;
  }

  .about-hero h1 {
    font-size: 4.5rem !important;
  }

  .about-hero .lead {
    font-size: 2rem !important;
    max-width: 65%;
  }

  .container {
    max-width: 2400px;
  }

  .brand-logo {
    max-height: 80px;
  }

  .form-card,
  .contact-card {
    padding: 4rem !important;
  }

  .team-member img {
    max-width: 200px;
    height: 200px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    font-size: 2.25rem;
  }

  .about-overview {
    padding: clamp(6rem, 10vw, 8rem) 0 !important;
  }

  .about-story {
    padding: clamp(6rem, 10vw, 8rem) 0 !important;
  }

  .about-team {
    padding: clamp(6rem, 10vw, 8rem) 0 !important;
  }

  .about-cta {
    padding: clamp(3rem, 5vw, 4rem) 0 !important;
  }

  h2.h4 {
    font-size: 2.5rem !important;
  }

  h3.h5 {
    font-size: 2rem !important;
  }

  h5 {
    font-size: 1.5rem !important;
  }
}

/* =========================
   ADDITIONAL RESPONSIVE FIXES
   ========================= */

/* Large tablets / small desktops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .about-hero {
    padding: 5rem 0 !important;
  }

  .about-hero h1 {
    font-size: 2.8rem !important;
  }

  .brand-logo {
    max-height: 50px;
  }

  .team-member img {
    max-width: 130px;
    height: 130px;
  }
}

/* Ensure CTA buttons inside containers behave on small screens */
.d-grid.d-sm-block .btn-lg {
  width: 100%;
}

@media (min-width: 576px) {
  .d-grid.d-sm-block .btn-lg {
    width: auto;
  }
}

/* =========================
   ADDITIONAL SMALL FIXES / POLISH
   ========================= */

/* Ensure CTA buttons inside containers behave on small screens */
.d-grid.d-sm-block .btn-lg {
  width: 100%;
}

/* Make small decorative images behave consistently */
.ratio img,
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* helper class used by some pages */
.object-fit-cover {
  object-fit: cover;
}

/* =========================
   End of responsive.css
   ========================= */