/* Responsive Styles for Digivistian Website */

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    color: var(--last-color);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--last-color);
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Base responsive adjustments */
@media (max-width: 1024px) {
    .layout {
        width: 100%;
        padding: 0 1rem;
    }

    header nav ul {
        gap: 1rem;
    }

    header nav a {
        font-size: 16px;
    }

    .buttons {
        gap: 0.5rem;
    }

    .buttons a {
        padding: 0.8rem 1.5rem;
        font-size: 18px;
    }

    .banner-window .layout .details h1 {
        font-size: 40px;
    }

    .banner-window .layout .details h3 {
        font-size: 22px;
    }

    .banner-window .layout .details p {
        font-size: 14px;
    }

    .services-section {
        padding: 40px 1rem;
    }

    .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .network-section .inner {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .right-col {
        padding-left: 20px;
    }

    .stat-card {
        padding: 18px;
        gap: 14px;
    }

    .partners-inner {
        padding: 12px 1rem;
    }

    .p-track {
        gap: 28px;
    }

    .testimonial-panel {
        padding: 40px 1rem;
    }

    .t-title {
        font-size: 24px;
    }

    .quote {
        font-size: 16px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 40px 1rem;
    }

    .col-company {
        order: 2;
    }

    .contact-hero {
        padding: 30px 1rem 20px;
    }

    .form-section {
        padding: 30px 1rem 60px;
    }

    .row {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .layout {
        width: 100%;
        padding: 1rem;
    }

    /* Hamburger Menu Activation */
    .menu-toggle {
        display: flex;
    }

    header nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    header nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    header nav a {
        font-size: 14px;
        display: block;
        padding: 10px 0;
    }

    .buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .buttons a {
        padding: 0.8rem 1.5rem;
        font-size: 16px;
    }

    .banner-window .layout .details {
        width: 90%;
    }

    .banner-window .layout .details h1 {
        font-size: 32px;
    }

    .banner-window .layout .details h3 {
        font-size: 20px;
    }

    .banner-window .layout .details p {
        font-size: 13px;
    }

    .services-section {
        padding: 30px 1rem;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .network-section .inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 1rem;
    }

    .right-col {
        padding-left: 0;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .partners-inner {
        padding: 12px 1rem;
    }

    .p-track {
        gap: 24px;
    }

    .testimonial-panel {
        padding: 30px 1rem;
    }

    .t-title {
        font-size: 22px;
    }

    .quote {
        font-size: 15px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 30px 1rem;
    }

    .col-company {
        order: 1;
    }

    .contact-hero {
        padding: 20px 1rem 15px;
    }

    .form-section {
        padding: 20px 1rem 50px;
    }

    .row {
        gap: 12px;
    }

    .site-footer .col-links {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .layout {
        width: 100%;
        padding: 0 0.5rem;
    }

    header img {
        width: 120px;
    }

    header nav ul {
        gap: 0.5rem;
    }

    header nav a {
        font-size: 14px;
    }

    .buttons {
        gap: 0.5rem;
    }

    .buttons a {
        padding: 0.7rem 1.2rem;
        font-size: 14px;
    }

    .banner-window .layout .details {
        width: 100%;
    }

    .banner-window .layout .details h1 {
        font-size: 28px;
    }

    .banner-window .layout .details h3 {
        font-size: 18px;
    }

    .banner-window .layout .details p {
        font-size: 12px;
    }

    .services-section {
        padding: 20px 0.5rem;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 0.5rem;
    }

    .service-card img {
        width: 60px;
    }

    .title {
        font-size: 16px;
    }

    .network-section .inner {
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 24px;
    }

    .partners-carousel {
        gap: 8px;
    }

    .p-track {
        gap: 16px;
    }

    .p-item img {
        height: 36px;
    }

    .testimonial-panel {
        padding: 20px 0.5rem;
    }

    .t-title {
        font-size: 20px;
    }

    .quote {
        font-size: 15px;
    }

    .footer-inner {
        padding: 20px 0.5rem;
    }

    .col-company .brand img {
        width: 150px;
    }

    .contact-hero {
        padding: 15px 0.5rem 10px;
    }

    .phone-number .phone-large {
        font-size: 20px;
    }

    .form-section {
        padding: 15px 0.5rem 40px;
    }

    .form-inner {
        max-width: 100%;
    }
}

/* Additional responsive styles from original CSS */

/* Responsive */
@media (max-width: 980px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px
    }
}

@media (max-width: 560px) {
    .container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 10px
    }

    .service-card {
        max-width: 480px
    }

    .icon {
        width: 72px;
        height: 72px
    }

    .title {
        font-size: 18px
    }
}

/* Focus visible for accessibility */
.service-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(241, 138, 67, 0.14);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 980px) {
    .network-section .inner {
        grid-template-columns: 1fr 360px;
    }

    .us-map {
        max-width: 440px
    }
}

@media (max-width: 740px) {
    .network-section .inner {
        grid-template-columns: 1fr;
    }

    .right-col {
        padding-left: 0;
    }

    .right-col .stats-rail {
        display: none;
    }

    .stat-card {
        margin-left: 0
    }

    .lead-title {
        font-size: 22px
    }

    .section-title {
        font-size: 26px
    }
}

/* responsive adjustments */
@media (max-width: 900px) {
    .t-inner {
        padding: 0 12px;
    }

    .partners-inner {
        padding: 12px
    }

    .partners-title {
        display: none;
    }

    .p-item {
        gap: 18px
    }

    .testimonial-panel::before {
        font-size: 160px;
        left: 18px
    }

    .testimonial-panel::after {
        font-size: 160px;
        right: 18px
    }

    .t-title {
        font-size: 22px
    }
}

@media (max-width: 560px) {
    .stat-body {
        align-items: unset;
    }

    .banner-window .layout .details a{
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .p-track {
        gap: 20px
    }

    .p-item img {
        height: 40px
    }

    .t-nav {
        display: none
    }

    /* hide nav on small screens to reduce clutter */
    .testimonial-panel::before {
        display: none
    }

    .testimonial-panel::after {
        display: none
    }

    .t-title {
        font-size: 20px
    }

    .quote {
        font-size: 16px
    }
}

/* responsive adjustments */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        grid-auto-rows: auto;
    }

    .col-company {
        grid-column: 1 / -1;
        order: 4;
        padding-top: 6px;
    }
}

@media (max-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 32px 18px;
        gap: 18px;
    }

    .col-company {
        order: 3;
    }

    .footer-bottom {
        margin-top: 18px;
    }

    .f-title {
        font-size: 16px;
    }

    .col-update .f-text {
        font-size: 13px;
    }
}

/* small focus states for accessibility */
a:focus,
button:focus {
    outline: 3px solid rgba(241, 138, 67, 0.16);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 880px) {
    .row {
        flex-direction: column;
    }

    .field.small {
        flex: 1 1 100%;
    }

    .form-heading {
        text-align: center;
    }

    .form-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .phone-number .phone-large {
        font-size: 22px;
    }

    .phone-wrap {
        gap: 10px;
    }

    .hero-sub {
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Additional responsive styles for full responsiveness */

/* Responsive for Thank You Page */
@media (max-width: 768px) {
    .thank-you-content h1 {
        font-size: 36px;
    }

    .thank-you-content p {
        font-size: 16px;
    }

    .thank-you-content .button {
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .thank-you-content h1 {
        font-size: 28px;
    }

    .thank-you-content p {
        font-size: 14px;
    }
}
