/* ============================================
   DUBLIN SEO - Responsive Stylesheet
   ============================================ */

/* Add top padding to body for fixed header */
body {
    padding-top: var(--header-height, 70px);
}

/* Main content must be below header dropdown */
main {
    position: relative;
    z-index: 1;
}

.hero,
section {
    position: relative;
    z-index: 1;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container responsive */
.container {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .container { max-width: 540px; margin: 0 auto; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

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

@media (max-width: 991px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   DASHBOARD HERO RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .hero-dashboard {
        padding: 1.5rem 0 2.5rem;
        overflow-x: hidden;
    }

    .hero-dashboard .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-trust-line {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        font-size: 0.8rem;
    }

    .hero-dashboard-grid {
        display: block;
        text-align: center;
    }

    .hero-dashboard-content {
        max-width: 100%;
        margin: 0 auto 2rem;
        padding: 0;
    }

    .hero-dashboard-content h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-dashboard-content h1 span {
        display: inline;
    }

    .hero-dashboard-content > p {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-cta-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-trust-bullets {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-trust-bullets li {
        font-size: 0.85rem;
    }

    /* Dashboard cards - hide on tablet/mobile for cleaner look */
    .hero-dashboard-visual {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-dashboard {
        padding: 1rem 0 2rem;
    }

    .hero-dashboard .container {
        padding: 0 0.75rem;
    }

    .hero-trust-line {
        font-size: 0.7rem;
        gap: 0.25rem 0.5rem;
        margin-bottom: 1rem;
    }

    .hero-dashboard-content h1 {
        font-size: 1.625rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .hero-dashboard-content > p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.625rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-trust-bullets {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .hero-trust-bullets li {
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   SERVICE HERO RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .service-deliverables {
        align-items: center;
    }

    .service-hero-visual {
        order: -1;
        display: flex;
        justify-content: center;
    }

    /* Adjust visuals for tablet */
    .keyword-search-visual,
    .audit-checklist-visual,
    .tech-performance-visual {
        max-width: 340px;
        margin: 0 auto;
    }

    .link-network-visual {
        max-width: 280px;
        height: 200px;
        margin: 0 auto;
    }

    .content-calendar-large {
        max-width: 340px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .service-hero {
        padding: 1.5rem 0 2rem;
    }

    .service-hero-content h1 {
        font-size: 1.75rem;
    }

    .service-hero-subtitle {
        font-size: 0.95rem;
    }

    .service-deliverables {
        gap: 0.5rem;
        align-items: center;
    }

    .service-deliverables li {
        font-size: 0.85rem;
    }

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

    /* Show visuals on mobile but smaller */
    .service-hero-visual {
        display: flex;
        justify-content: center;
    }

    .keyword-search-visual,
    .audit-checklist-visual,
    .tech-performance-visual {
        max-width: 300px;
        padding: 1rem;
    }

    .link-network-visual {
        max-width: 260px;
        height: 180px;
    }

    .content-calendar-large {
        max-width: 300px;
        padding: 1rem;
    }

    .content-calendar-large .cal-header {
        font-size: 0.95rem;
    }

    .content-calendar-large .cal-day {
        font-size: 0.75rem;
    }

    .content-calendar-large .cal-weekdays span {
        font-size: 0.65rem;
    }

    .content-calendar-large .cal-legend {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 1rem 0 1.5rem;
    }

    .service-hero-content h1 {
        font-size: 1.5rem;
    }

    .service-hero-visual {
        display: flex;
    }

    .keyword-search-visual,
    .audit-checklist-visual,
    .tech-performance-visual,
    .content-calendar-large {
        max-width: 280px;
    }

    .link-network-visual {
        display: none;
    }
}

/* ============================================
   TYPOGRAPHY RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* ============================================
   SERVICES GRID RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 576px) and (max-width: 991px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   STATS GRID RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 479px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROCESS STEPS RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   TESTIMONIALS RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER GRID RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FAQ RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .faq-accordion.faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-tabs {
        gap: 0.25rem;
    }

    .faq-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   SECTIONS RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .cta-section {
        padding: 3rem 0;
    }
}

/* ============================================
   CARDS RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   BUTTONS RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   PAGE HEADER RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* ============================================
   CONTACT FORM RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GENERAL RESPONSIVE RULES
   ============================================ */

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

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Form elements full width on mobile */
input, textarea, select, button {
    max-width: 100%;
}

@media (max-width: 575px) {
    input, textarea, select {
        width: 100%;
    }
}

/* ============================================
   SCROLL TO TOP RESPONSIVE
   ============================================ */

@media (max-width: 575px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   TWO COLUMN LAYOUT RESPONSIVE
   ============================================ */

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col-layout.reversed {
    direction: rtl;
}

.two-col-layout.reversed > * {
    direction: ltr;
}

@media (max-width: 991px) {
    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col-layout.reversed {
        direction: ltr;
    }
}

/* ============================================
   FEATURE LIST
   ============================================ */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-list li svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

/* ============================================
   ICON BOXES
   ============================================ */

.icon-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .icon-boxes {
        grid-template-columns: 1fr;
    }
}

.icon-box {
    text-align: center;
    padding: 1.5rem;
}

.icon-box svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.icon-box h4 {
    margin-bottom: 0.5rem;
}

.icon-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}
