/* MEDANTRON - RESPONSIVE CSS: one set of rules per breakpoint */
@media (max-width: 1024px) {
  .container {
    width: 92%;
  }
  .section {
    padding: 80px 0;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 0.8rem;
  }
  .hero {
    min-height: 600px;
  }
  .feature-grid {
    gap: 18px;
  }
  .service-card {
    padding: 30px;
  }
}
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  html,
  body {
    max-width: 100%;
  }
  .container {
    width: calc(100% - 32px);
  }
  .section {
    padding: 70px 0;
  }
  .site-header .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    position: relative;
  }
  .site-header .brand.brand-logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .site-header .brand-logo .header-logo {
    width: 58px;
    height: 58px;
  }
  .site-header .brand-logo .brand-text {
    flex: 1;
    min-width: 0;
  }
  .site-header .brand-logo .brand-name {
    font-size: 20px;
  }
  .site-header .brand-logo .brand-tagline {
    font-size: 5px;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .site-header .menu-toggle {
    display: flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #171a20;
    border: 1px solid #444;
    border-radius: 7px;
    position: relative;
    z-index: 1002;
  }
  .site-header .menu-toggle span {
    width: 16px;
    height: 2px;
    margin: 0;
    background: #ffff00;
    border-radius: 2px;
  }
  .site-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px;
    background: #101216;
    border: 1px solid #333;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 30px #0008;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    z-index: 1001;
  }
  .site-header .main-nav.is-open {
    display: flex;
  }
  .site-header .main-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 7px;
  }
  .site-header .main-nav a:hover,
  .site-header .main-nav a.active {
    color: #ffff00;
    background: #202329;
  }
  .hero {
    min-height: 580px;
  }
  .hero-content {
    padding-top: 75px;
    padding-bottom: 80px;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 9vw, 4.5rem);
    letter-spacing: -1.5px;
  }
  .hero h1 span {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
  }
  .hero-description {
    font-size: 1rem;
  }
  .feature-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    margin-bottom: 38px;
  }
  .portfolio-placeholder {
    padding: 55px 22px;
  }
  .contact-hero {
    padding: 65px 0 55px;
  }
  .contact-hero h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .contact-hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.8;
  }
  .contact-section {
    padding: 45px 0;
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .contact-panel,
  .contact-form-panel {
    min-width: 0;
    width: 100%;
    padding: 24px 18px;
  }
  .contact-panel h2,
  .contact-form-panel h2 {
    font-size: 23px;
    overflow-wrap: break-word;
  }
  .contact-form,
  .form-group,
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  .hero {
    min-height: auto;
  }
  .hero-content {
    padding-top: 65px;
    padding-bottom: 75px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }
  .hero h1 span {
    margin-top: 18px;
    font-size: 1.5rem;
    line-height: 1.35;
  }
  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
  }
  .hero-description {
    font-size: 0.94rem;
    line-height: 1.8;
  }
  .official-slogan {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section-heading h2,
  .cta-content h2 {
    font-size: 1.85rem;
  }
  .feature-card,
  .service-card {
    padding: 26px 22px;
  }
  .service-card {
    min-height: auto;
  }
  .service-card h3 {
    font-size: 1.25rem;
  }
  .portfolio-placeholder {
    padding: 45px 18px;
  }
  .footer-nav {
    gap: 12px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
