/* ------------------------------------------------------------------
   Couche de personnalisation GBM Computer Expert
   Ce fichier adapte le theme source au branding, aux layouts metier
   et aux contraintes responsive du site public, du dashboard admin
   et de l'espace client.
------------------------------------------------------------------- */
:root {
  /* Variables de theme : couleurs, surfaces, ombres et rayons utilises partout. */
  --primary-color: #0888d0;
  --primary-color-dark: #066ea8;
  --primary-color-hover: #10a0d8;
  --primary-color-soft: #e8f5fd;
  --primary-color-rgb: 8, 136, 208;
  --secondary-color: #0d2742;
  --secondary-color-rgb: 13, 39, 66;
  --accent-color: #3ab1e6;
  --accent-color-rgb: 58, 177, 230;
  --text-color: #122033;
  --text-muted: #5b6475;
  --surface-color: #ffffff;
  --surface-soft: #f4f9fd;
  --border-color: rgba(13, 39, 66, 0.10);

  --gbm-primary: var(--primary-color);
  --gbm-primary-dark: var(--primary-color-dark);
  --gbm-primary-hover: var(--primary-color-hover);
  --gbm-primary-soft: var(--primary-color-soft);
  --gbm-primary-rgb: 8, 136, 208;
  --gbm-secondary: var(--secondary-color);
  --gbm-secondary-rgb: 13, 39, 66;
  --gbm-accent: var(--accent-color);
  --gbm-accent-rgb: 58, 177, 230;
  --gbm-ink: var(--text-color);
  --gbm-ink-soft: var(--text-muted);
  --gbm-border: var(--border-color);
  --gbm-surface: var(--surface-color);
  --gbm-surface-soft: var(--surface-soft);
  --gbm-shadow-sm: 0 10px 24px rgba(11, 34, 58, 0.08);
  --gbm-shadow-md: 0 18px 42px rgba(13, 39, 66, 0.12);
  --gbm-shadow-lg: 0 24px 60px rgba(13, 39, 66, 0.16);
  --gbm-radius-sm: 14px;
  --gbm-radius-md: 20px;
  --gbm-radius-lg: 28px;
}

/* Fondations globales de la personnalisation GBM. */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--gbm-ink-soft);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

section,
.public-section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.page-banner,
.public-main,
.section-bg,
#footer {
  overflow: clip;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: rgba(var(--gbm-primary-rgb), 0.16);
  color: var(--gbm-ink);
}

a,
button,
.btn,
.get-started-btn,
#hero .btn-get-started,
.nav-menu a,
.mobile-nav a,
.portfolio .portfolio-wrap,
.public-card,
.public-highlight,
.public-stat,
.team .member,
.contact .info-box,
#footer .social-links a,
.back-to-top i,
.form-control,
.form-select,
textarea {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  text-decoration: none;
}

button:focus,
.btn:focus,
a:focus,
.form-control:focus,
.form-select:focus,
textarea:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(var(--gbm-primary-rgb), 0.22);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Header public et navigation principale
   Cette section redefine le header du theme pour porter l'identite GBM,
   le logo dynamique, les CTA de role et la navigation responsive.
------------------------------------------------------------------- */
.container-fluid.public-header-shell {
  padding-left: clamp(18px, 3vw, 32px);
  padding-right: clamp(18px, 3vw, 32px);
}

.public-header-row {
  min-height: 82px;
}

#header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

#header.header-scrolled {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

#header .logo {
  flex: 1 1 auto;
  min-width: 0;
}

#header .public-site-logo {
  gap: 14px;
  min-width: 0;
}

#header .public-site-logo .public-logo-image {
  max-height: 62px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

#header .public-site-logo .public-logo-text {
  font-size: 1.55rem;
  line-height: 1.05;
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu > ul > li {
  padding: 0;
}

.nav-menu a {
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a {
  color: var(--gbm-primary);
  background: rgba(var(--gbm-primary-rgb), 0.08);
}

.nav-menu .nav-mobile-cta {
  display: none;
}

.header-cta {
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(var(--gbm-primary-rgb), 0.22);
}

/* ------------------------------------------------------------------
   Boutons, CTA et formulaires
   Les memes principes visuels sont partages entre le hero, les boutons
   d'action du site, les formulaires publics et le dashboard.
------------------------------------------------------------------- */
.get-started-btn,
#hero .btn-get-started,
.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.get-started-btn,
#hero .btn-get-started {
  background: linear-gradient(135deg, var(--gbm-primary) 0%, var(--gbm-accent) 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 12px 24px rgba(var(--gbm-primary-rgb), 0.18);
}

.get-started-btn:hover,
#hero .btn-get-started:hover,
.btn:hover {
  transform: translateY(-1px);
}

.get-started-btn:hover,
#hero .btn-get-started:hover {
  background: linear-gradient(135deg, var(--gbm-primary-dark) 0%, var(--gbm-primary) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(var(--gbm-primary-rgb), 0.24);
}

.btn,
.get-started-btn,
#hero .btn-get-started,
.contact .php-email-form button[type="submit"] {
  min-height: 48px;
}

.btn-primary,
.btn-danger,
.contact .php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--gbm-primary) 0%, var(--gbm-accent) 100%);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(var(--gbm-primary-rgb), 0.18);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:not(:disabled):not(.disabled).active,
.btn-danger:not(:disabled):not(.disabled):active,
.contact .php-email-form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--gbm-primary-dark) 0%, var(--gbm-primary) 100%);
  box-shadow: 0 16px 30px rgba(var(--gbm-primary-rgb), 0.24);
  border-color: transparent;
  color: #fff;
}

.btn-primary:focus,
.btn-danger:focus,
.get-started-btn:focus,
#hero .btn-get-started:focus,
.contact .php-email-form button[type="submit"]:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--gbm-primary-rgb), 0.18);
}

.btn-outline-primary,
.btn-outline-danger,
.btn-outline-light {
  border-width: 2px;
}

.btn-outline-primary,
.btn-outline-danger {
  color: var(--gbm-primary);
  border-color: rgba(var(--gbm-primary-rgb), 0.28);
  background: rgba(var(--gbm-primary-rgb), 0.04);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:not(:disabled):not(.disabled).active,
.btn-outline-danger:not(:disabled):not(.disabled):active {
  color: #fff;
  background: linear-gradient(135deg, var(--gbm-primary) 0%, var(--gbm-accent) 100%);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(var(--gbm-primary-rgb), 0.18);
}

.text-primary,
.text-danger {
  color: var(--gbm-primary) !important;
}

.bg-primary,
.bg-danger,
.badge-primary,
.badge-danger {
  background: linear-gradient(135deg, var(--gbm-primary) 0%, var(--gbm-accent) 100%) !important;
  color: #fff !important;
}

.border-primary,
.border-danger {
  border-color: rgba(var(--gbm-primary-rgb), 0.24) !important;
}

.alert-danger {
  color: var(--gbm-secondary);
  background: linear-gradient(180deg, rgba(var(--gbm-primary-rgb), 0.14) 0%, rgba(var(--gbm-primary-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--gbm-primary-rgb), 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.alert-danger .alert-link {
  color: var(--gbm-primary-dark);
}

.page-link {
  color: var(--gbm-primary);
  border-color: rgba(var(--gbm-secondary-rgb), 0.12);
}

.page-link:hover,
.page-link:focus,
.page-item.active .page-link {
  color: #fff;
  background: var(--gbm-primary);
  border-color: var(--gbm-primary);
  box-shadow: none;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: linear-gradient(135deg, var(--gbm-primary) 0%, var(--gbm-accent) 100%);
  box-shadow: 0 12px 24px rgba(var(--gbm-primary-rgb), 0.18);
}

/* Sections publiques, cartes et blocs de contenu reutilisables. */
.public-main {
  padding-top: 88px;
}

.page-banner {
  padding: clamp(116px, 15vw, 152px) 0 clamp(54px, 7vw, 78px);
}

.page-banner h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.04;
  margin-bottom: 16px;
  color: #fff;
}

.page-banner p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
}

.section-title {
  padding-bottom: 22px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 16px;
  color: var(--gbm-ink);
}

.section-title.text-left {
  text-align: left;
}

.section-title.text-left h2::after {
  left: 0;
  transform: none;
}

.section-title p,
.public-main p,
.public-main li,
.public-main label {
  font-size: 1rem;
  line-height: 1.8;
}

.public-card,
.public-highlight,
.public-stat,
.auth-card,
.client-card,
.dashboard-card,
.team .member,
.contact .info-box,
.contact .php-email-form,
.portfolio .portfolio-wrap {
  border: 1px solid var(--gbm-border);
  box-shadow: var(--gbm-shadow-sm);
}

.public-card,
.public-highlight,
.public-stat,
.team .member,
.contact .info-box,
.portfolio .portfolio-wrap {
  background: var(--gbm-surface);
}

.public-card:hover,
.public-highlight:hover,
.public-stat:hover,
.team .member:hover,
.contact .info-box:hover,
.portfolio .portfolio-wrap:hover {
  transform: translateY(-6px);
  box-shadow: var(--gbm-shadow-md);
}

.public-card .card-body,
.public-highlight,
.public-stat {
  padding: 24px;
}

/* Message vide reutilisable lorsqu'aucun contenu n'a encore ete publie. */
.section-empty {
  border-radius: 18px;
  padding: 20px 22px;
}

/* ------------------------------------------------------------------
   Hero de la page d'accueil
   Bloc le plus visible du site public : typo, visuel, actions et
   equilibrage desktop/mobile du carousel principal.
------------------------------------------------------------------- */
#hero {
  min-height: min(860px, calc(100vh - 8px));
  height: auto;
  padding-top: 118px;
  padding-bottom: 84px;
  display: flex;
  align-items: center;
}

#hero .carousel-inner,
#hero .carousel-item {
  min-height: inherit;
}

#hero .carousel-item > .container-fluid {
  padding-left: clamp(18px, 3vw, 32px);
  padding-right: clamp(18px, 3vw, 32px);
}

#hero .hero-title {
  font-size: clamp(1.6rem, 3.8vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 24ch;
  overflow-wrap: normal;
  word-break: normal;
}

#hero h2 {
  margin-top: 14px;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 33ch;
}

#hero p {
  max-width: 42ch;
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
}

#hero .hero-actions {
  gap: 14px;
}

#hero .btn-get-started,
#hero .btn.btn-outline-light {
  min-width: 208px;
  padding: 13px 26px;
  margin-top: 0;
}

#hero .hero-visual-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 28px !important;
}

#hero .hero-visual-card {
  border-radius: 28px !important;
  box-shadow: var(--gbm-shadow-lg) !important;
}

.hero-visual-card h3 {
  color: var(--gbm-ink);
}

/* Variantes de sections alternees pour rythmer les pages publiques. */
.section-bg {
  padding: clamp(84px, 9vw, 118px) 0;
}

.section-bg:before {
  top: 48px;
  bottom: 48px;
}

.services .icon-box,
.public-card.card,
.public-highlight,
.public-stat {
  border-radius: 20px;
}

.services .icon-box {
  box-shadow: var(--gbm-shadow-sm);
}

.team .member {
  border-radius: 22px;
}

.team .member .member-img img,
.team .member .member-img > div,
.portfolio .portfolio-wrap img {
  width: 100%;
}

.team .member .member-img img {
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.portfolio .portfolio-wrap {
  border-radius: 22px;
}

.portfolio .portfolio-wrap img {
  height: 280px;
  object-fit: cover;
}

.portfolio .portfolio-wrap .portfolio-info {
  padding: 22px;
}

.contact .info-box {
  border-radius: 22px;
  padding: 28px 24px 30px;
}

.contact .php-email-form {
  border-radius: 22px;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.form-control,
.form-select,
.contact .php-email-form input,
.contact .php-email-form textarea {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #d6dde8;
  background: #fff;
  color: var(--gbm-ink);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

textarea.form-control,
.contact .php-email-form textarea {
  min-height: 148px;
}

.form-control:focus,
.form-select:focus,
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: rgba(var(--gbm-primary-rgb), 0.55);
  box-shadow: 0 0 0 0.22rem rgba(var(--gbm-primary-rgb), 0.12);
}

#footer .footer-top {
  padding: 72px 0 36px;
}

#footer .footer-top .footer-links ul li {
  align-items: flex-start;
}

#footer .footer-top .footer-links ul a {
  line-height: 1.55;
}

#footer .social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

#footer .social-links a:hover {
  transform: translateY(-2px);
}

.back-to-top i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(var(--gbm-primary-rgb), 0.24);
}

.flash-wrapper {
  top: 98px;
}

.flash-wrapper .alert {
  border: 0;
  border-radius: 16px;
}

.mobile-nav-toggle {
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle i {
  color: var(--gbm-ink);
}

.mobile-nav-active .mobile-nav-toggle {
  background: var(--gbm-ink);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

.mobile-nav {
  top: 80px;
  right: 16px;
  left: 16px;
  bottom: 16px;
  border-radius: 22px;
  padding: 14px 0 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--gbm-shadow-lg);
}

.mobile-nav a {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0;
}

.mobile-nav .nav-mobile-cta {
  display: block;
  padding: 10px 18px 6px;
}

.mobile-nav .nav-mobile-cta a {
  background: linear-gradient(135deg, var(--gbm-primary) 0%, var(--gbm-accent) 100%);
  color: #fff !important;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(var(--gbm-primary-rgb), 0.24);
}

.mobile-nav-overly {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 1199.98px) {
  .nav-menu a {
    padding: 10px 11px;
    font-size: 13px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 1.36rem;
  }
}

@media (max-width: 991.98px) {
  .public-main {
    padding-top: 82px;
  }

  #header {
    padding: 12px 0;
  }

  .public-header-row {
    min-height: 64px;
    padding-right: 64px;
  }

  #header .public-site-logo .public-logo-image {
    max-height: 50px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 1.16rem;
  }

  #hero {
    min-height: auto;
    padding-top: 122px;
    padding-bottom: 64px;
    text-align: center;
  }

  #hero h1,
  #hero h2,
  #hero p {
    max-width: none;
  }

  #hero .hero-actions {
    justify-content: center;
  }

  #hero .hero-visual-image {
    max-height: 420px;
  }

  .section-bg:before {
    top: 32px;
    bottom: 32px;
    transform: skewY(-2deg);
  }

  #footer .footer-top {
    padding-top: 56px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.96rem;
  }

  .public-main {
    padding-top: 76px;
  }

  .flash-wrapper {
    left: 12px;
    right: 12px;
    top: 84px;
    width: auto;
  }

  #header .public-site-logo {
    gap: 10px;
  }

  #header .public-site-logo .public-logo-image {
    max-height: 44px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 1rem;
    max-width: 160px;
  }

  .page-banner {
    padding: 108px 0 46px;
  }

  .page-banner h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .public-card .card-body,
  .public-highlight,
  .public-stat,
  .contact .info-box,
  .cta-panel,
  .client-card,
  .dashboard-stat {
    padding: 22px 18px;
  }

  #hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  #hero h2 {
    font-size: 1rem;
    line-height: 1.65;
  }

  #hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #hero .btn-get-started,
  #hero .btn.btn-outline-light {
    width: 100%;
    min-width: 0;
  }

  #hero .hero-visual-card {
    padding: 26px 20px !important;
    text-align: left;
  }

  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    display: none;
  }

  .portfolio .portfolio-wrap img,
  .team .member .member-img img {
    height: 250px;
  }

  .testimonials .testimonial-item {
    margin: 10px 4px;
    padding: 24px 18px;
  }

  .testimonials .testimonial-item p {
    margin-top: 20px;
  }

  #footer .footer-top .row > div {
    margin-bottom: 12px;
  }

  #footer .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  #footer .social-links a {
    margin-right: 0;
  }
}

@media (max-width: 575.98px) {
  .mobile-nav {
    top: 74px;
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .mobile-nav-toggle {
    top: 14px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .public-header-row {
    padding-right: 56px;
  }

  .section-title h2 {
    font-size: 1.55rem;
  }

  .page-banner p,
  .public-main p,
  .public-main li,
  .public-main label {
    font-size: 0.96rem;
  }

  .contact .php-email-form .form-row > .col,
  .contact .php-email-form .form-row > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cta-panel {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ------------------------------------------------------------------
   Calibration responsive mobile-first
   Base 320px, puis ajustements progressifs pour 375, 390, 414, 768,
   1024 et 1440 px afin de garder un rendu propre sur mobile, tablette
   et desktop sans casser les layouts admin/public/client.
------------------------------------------------------------------- */
body {
  font-size: 15px;
}

.public-main,
.client-shell,
.dashboard-shell {
  overflow-x: hidden;
}

.container,
.container-fluid {
  padding-left: 16px;
  padding-right: 16px;
}

.public-header-shell {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.public-header-row {
  min-height: 60px;
  padding-right: 54px;
}

#header {
  padding: 10px 0;
}

#header .logo {
  min-width: 0;
}

#header .public-site-logo {
  gap: 8px;
  max-width: calc(100vw - 84px);
}

#header .public-site-logo .public-logo-image {
  max-height: 38px;
}

#header .public-site-logo .public-logo-text {
  font-size: 0.92rem;
  max-width: 142px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mobile-nav-toggle {
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-nav {
  top: 64px;
  right: 10px;
  left: 10px;
  bottom: 10px;
  border-radius: 18px;
  padding: 12px 0 18px;
}

.mobile-nav a {
  padding: 13px 20px;
  font-size: 15px;
}

.public-main {
  padding-top: 72px;
}

.page-banner {
  padding: 92px 0 38px;
}

.page-banner h1,
#hero h1,
.section-title h2,
.public-main h3,
.public-main h4 {
  overflow-wrap: anywhere;
}

.page-banner h1 {
  font-size: 1.85rem;
  line-height: 1.08;
}

.page-banner p,
.public-main p,
.public-main li,
.public-main label {
  font-size: 0.95rem;
  line-height: 1.75;
}

.section-title {
  padding-bottom: 18px;
}

.section-title h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  padding-bottom: 14px;
}

.section-title.text-left,
.page-banner,
#hero {
  text-align: center;
}

.section-title.text-left h2::after {
  left: 50%;
  transform: translateX(-50%);
}

section,
.public-section {
  padding: 48px 0;
}

.section-bg {
  padding: 58px 0;
}

.section-bg:before {
  top: 20px;
  bottom: 20px;
  transform: skewY(-1deg);
}

.public-card .card-body,
.public-highlight,
.public-stat,
.contact .info-box,
.cta-panel,
.team .member .member-info,
.auth-card .card-body,
.client-card,
.dashboard-stat {
  padding: 18px 16px;
}

.public-card,
.public-highlight,
.public-stat,
.contact .info-box,
.portfolio .portfolio-wrap,
.team .member,
.cta-panel {
  border-radius: 18px;
}

#hero {
  min-height: auto;
  height: auto;
  padding-top: 100px;
  padding-bottom: 42px;
}

#hero .carousel-item > .container-fluid {
  padding-left: 16px;
  padding-right: 16px;
}

#hero .carousel-inner,
#hero .carousel-item {
  min-height: auto;
}

#hero .hero-title {
  font-size: 1.6rem;
  line-height: 1.12;
  max-width: 24ch;
}

#hero h2 {
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-top: 12px;
}

#hero p {
  max-width: none;
  font-size: 0.95rem;
}

#hero .hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

#hero .hero-actions .btn-get-started,
#hero .hero-actions .btn {
  width: 100%;
  min-width: 0;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

#hero .btn-get-started,
#hero .btn.btn-outline-light,
.get-started-btn,
.btn,
.contact .php-email-form button[type='submit'] {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 0.95rem;
}

#hero .hero-visual-image {
  max-height: 280px;
  border-radius: 22px !important;
}

#hero .hero-visual-card {
  padding: 22px 16px !important;
  border-radius: 22px !important;
  text-align: left;
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  display: none;
}

.portfolio .portfolio-wrap img,
.team .member .member-img img,
.team .member .member-img > div {
  height: 220px;
  object-fit: cover;
}

.portfolio .portfolio-wrap .portfolio-info {
  padding: 16px;
}

.testimonials .testimonial-item {
  margin: 8px 0;
  padding: 20px 16px;
}

.contact .info-box {
  margin-bottom: 14px;
}

.contact .php-email-form .form-row > [class*='col-'] {
  flex: 0 0 100%;
  max-width: 100%;
}

.form-control,
.form-select,
.contact .php-email-form input,
.contact .php-email-form textarea {
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
}

textarea.form-control,
.contact .php-email-form textarea {
  min-height: 132px;
}

#footer .footer-top {
  padding: 48px 0 24px;
}

#footer .footer-top .row > div {
  margin-bottom: 16px;
}

#footer .footer-top .footer-links ul li {
  padding: 8px 0;
}

#footer .footer-newsletter .btn {
  width: 100%;
}

#footer .social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

#footer .social-links a {
  margin-right: 0;
}

.flash-wrapper {
  left: 10px;
  right: 10px;
  top: 78px;
  width: auto;
}

.back-to-top {
  right: 10px;
  bottom: 10px;
}

.back-to-top i {
  width: 44px;
  height: 44px;
}

/* 375px */
@media (min-width: 375px) {
  .container,
  .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-header-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #header .public-site-logo .public-logo-image {
    max-height: 40px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 0.98rem;
    max-width: 154px;
  }

  #hero .hero-title {
    font-size: 1.66rem;
  }

  #hero .hero-visual-image {
    max-height: 300px;
  }
}

/* 390px */
@media (min-width: 390px) {
  #header .public-site-logo .public-logo-text {
    max-width: 168px;
  }

  .page-banner h1 {
    font-size: 1.98rem;
  }

  #hero .hero-title {
    font-size: 1.74rem;
  }
}

/* 414px */
@media (min-width: 414px) {
  .public-header-row {
    min-height: 62px;
  }

  #header .public-site-logo .public-logo-image {
    max-height: 42px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 1.02rem;
    max-width: 182px;
  }

  #hero .hero-actions {
    gap: 12px;
  }

  #hero .hero-visual-image {
    max-height: 320px;
  }
}

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

  .container,
  .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .public-main {
    padding-top: 80px;
  }

  .public-header-row {
    min-height: 68px;
    padding-right: 62px;
  }

  #header .public-site-logo .public-logo-image {
    max-height: 48px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 1.14rem;
    max-width: 220px;
  }

  .mobile-nav {
    top: 76px;
    right: 16px;
    left: auto;
    width: 360px;
    bottom: 16px;
  }

  .page-banner {
    padding: 116px 0 52px;
    text-align: left;
  }

  .page-banner h1 {
    font-size: 2.45rem;
  }

  .section-title.text-left,
  #hero {
    text-align: left;
  }

  .section-title.text-left h2::after {
    left: 0;
    transform: none;
  }

  section,
  .public-section {
    padding: 64px 0;
  }

  .section-bg {
    padding: 82px 0;
  }

  .section-bg:before {
    top: 32px;
    bottom: 32px;
    transform: skewY(-2deg);
  }

  .public-card .card-body,
  .public-highlight,
  .public-stat,
  .contact .info-box,
  .cta-panel,
  .auth-card .card-body,
  .client-card,
  .dashboard-stat {
    padding: 24px 22px;
  }

  #hero {
    padding-top: 122px;
    padding-bottom: 64px;
  }

  #hero .hero-title {
    font-size: 2.35rem;
  }

  #hero h2,
  #hero p {
    max-width: 38ch;
  }

  #hero .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  #hero .hero-actions .btn-get-started,
  #hero .hero-actions .btn {
    width: auto;
    min-width: 210px;
  }

  #hero .hero-visual-image {
    max-height: 400px;
  }

  .portfolio .portfolio-wrap img,
  .team .member .member-img img,
  .team .member .member-img > div {
    height: 260px;
  }

  .contact .php-email-form .form-row > .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #footer .footer-newsletter .btn {
    width: auto;
  }
}

/* 1024px */
@media (min-width: 1024px) {
  .container,
  .container-fluid {
    padding-left: 28px;
    padding-right: 28px;
  }

  .public-header-row {
    min-height: 82px;
    padding-right: 0;
  }

  #header {
    padding: 14px 0;
  }

  #header .public-site-logo .public-logo-image {
    max-height: 56px;
  }

  #header .public-site-logo .public-logo-text {
    font-size: 1.34rem;
    max-width: none;
  }

  .nav-menu a {
    padding: 11px 13px;
    font-size: 14px;
  }

  .header-cta {
    display: inline-flex !important;
  }

  .page-banner {
    padding: 132px 0 60px;
  }

  .page-banner h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 2.15rem;
  }

  section,
  .public-section {
    padding: 74px 0;
  }

  .section-bg {
    padding: 96px 0;
  }

  #hero {
    min-height: 760px;
    padding-top: 138px;
    padding-bottom: 84px;
  }

  #hero .hero-title {
    font-size: 2.52rem;
  }

  #hero h2 {
    font-size: 1.16rem;
  }

  #hero .hero-visual-image {
    max-height: 500px;
  }

  .portfolio .portfolio-wrap img {
    height: 300px;
  }
}

/* 1440px */
@media (min-width: 1440px) {
  .container,
  .container-fluid {
    padding-left: 36px;
    padding-right: 36px;
  }

  .page-banner {
    padding: 148px 0 72px;
  }

  .page-banner h1 {
    font-size: 3.45rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .public-card .card-body,
  .public-highlight,
  .public-stat,
  .contact .info-box,
  .cta-panel,
  .client-card,
  .dashboard-stat {
    padding: 28px 26px;
  }

  #hero {
    min-height: 860px;
    padding-top: 152px;
  }

  #hero .hero-title {
    font-size: 2.78rem;
  }

  #hero .hero-visual-image {
    max-height: 560px;
  }
}
