/*
 * File Name: responsive.css
 * Location: /trial/assets/css/responsive.css
 *
 * All Brahmin Matrimony
 * Responsive Website Stylesheet
 *
 * Purpose:
 * - Tablet and mobile layouts
 * - Responsive navigation
 * - Mobile dropdown behavior
 * - Responsive hero banner
 * - Responsive content sections
 * - Responsive cards and tables
 * - Responsive footer
 * - Responsive CTA sections
 *
 * Main stylesheet:
 * /trial/assets/css/responsive.css
 */

/* ==================================================
   1. LARGE TABLET / SMALL DESKTOP
   Approx. 1200px and below
   ================================================== */
@media (max-width: 1200px) {
    .navigation-container {
        width: min(
            calc(100% - 30px),
            var(--container-width)
        );
        max-width: var(--container-width);
    }
    .container {
        width: min(
            calc(100% - 30px),
            var(--container-width)
        );
        max-width: var(--container-width);
    }
    .navigation-menu {
        gap: 0;
    }
    .navigation-link,
    .dropdown-toggle {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.9rem;
    }
    .navigation-cta {
        gap: 5px;
    }
    .nav-cta-button {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.85rem;
    }
    .footer-grid {
        gap: 25px;
    }
    .footer-seo-columns {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

/* ==================================================
   2. TABLET
   Approx. 992px and below
   ================================================== */
@media (max-width: 992px) {
    /* ----------------------------------------------
       Navigation Container
       ---------------------------------------------- */
    .navigation-container {
        min-height: 68px;
    }
    /* ----------------------------------------------
       Mobile Menu Button
       ---------------------------------------------- */
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
        z-index: 1002;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        margin: 3px 0;
        background: #ffffff;
        border-radius: 2px;
    }
    /* ----------------------------------------------
       IMPORTANT:
       Mobile Navigation CLOSED by default
       Horizontal Overflow Fix: Box Sizing & Exact Left/Right Bounds
       ---------------------------------------------- */
    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 15px;
        background: var(--color-primary);
        box-shadow:
            0 5px 12px
            rgba(0, 0, 0, 0.15);
        z-index: 1001;
    }
    /* ----------------------------------------------
       Mobile Navigation OPEN
       Only JavaScript should add .is-open
       ---------------------------------------------- */
    .primary-navigation.is-open {
        display: flex !important;
    }
    /* ----------------------------------------------
       Navigation Menu
       ---------------------------------------------- */
    .navigation-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .navigation-item {
        width: 100%;
    }
    .navigation-link,
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        text-align: left;
    }
    /* ----------------------------------------------
       Mobile / Tablet Dropdown
       ---------------------------------------------- */
    .dropdown-menu {
        position: static;
        display: none !important;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 5px 0;
        border-radius: 0;
        background:
            rgba(0, 0, 0, 0.10);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    /* Dropdown opens only when JavaScript adds .is-open */
    .has-dropdown.is-open > .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    /* Prevent desktop hover behavior from automatically opening dropdowns on mobile */
    .has-dropdown:hover > .dropdown-menu {
        display: none !important;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .has-dropdown.is-open:hover > .dropdown-menu {
        display: block !important;
    }
    .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 10px 22px;
        color: rgba(255, 255, 255, 0.92);
        text-decoration: none;
    }
    .dropdown-menu a:hover {
        background:
            rgba(255, 255, 255, 0.10);
        color: var(--color-white);
    }
    /* ----------------------------------------------
       Navigation CTA
       ---------------------------------------------- */
    .navigation-cta {
        display: grid;
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
        width: 100%;
        margin-top: 12px;
        gap: 8px;
    }
    .nav-cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
    }
    /* ----------------------------------------------
       Hero
       ---------------------------------------------- */
    .hero-banner-image {
        min-height: 280px;
    }
    .hero-banner-image img {
        min-height: 280px;
    }
    .hero-banner-overlay {
        padding: 25px;
    }
    .hero-banner-content h1 {
        font-size: clamp(
            1.9rem,
            4.5vw,
            2.7rem
        );
    }
    .hero-banner-content p {
        font-size: 1.05rem;
    }
    /* ----------------------------------------------
       Content
       ---------------------------------------------- */
    .content-section {
        padding: 50px 0;
    }
    .card-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
    p {
        margin-left: 0.35rem;
    }
    /* ----------------------------------------------
       Footer
       ---------------------------------------------- */
    .footer-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        gap: 30px;
    }
    .footer-box p {
        margin-left: 0.2rem;
    }
    .footer-links,
    .footer-seo-list,
    .footer-legal-list {
        margin-left: 0.2rem;
    }
    .footer-seo-columns {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
    .footer-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-cta-content p {
        margin-left: 0;
    }
    .footer-cta-buttons {
        width: 100%;
    }
    .footer-cta-button {
        flex: 1;
    }
    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
        text-align: center;
    }
    .footer-bottom p {
        margin-left: 0;
    }
    .footer-bottom-links {
        justify-content: center;
        margin-left: 0;
    }
}

/* ==================================================
   3. MOBILE
   Approx. 768px and below
   ================================================== */
@media (max-width: 768px) {
    /* ----------------------------------------------
       Global
       ---------------------------------------------- */
    .container {
        width: calc(100% - 30px);
        max-width: 100%;
    }
    .content-container {
        width: calc(100% - 30px);
        max-width: 100%;
    }
    p {
        margin-left: 0.25rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    /* ----------------------------------------------
       Header
       ---------------------------------------------- */
    .navigation-container {
        width: calc(100% - 30px);
        max-width: 100%;
        min-height: 64px;
    }
    .site-logo {
        font-size: 1.15rem;
    }
    .primary-navigation {
        padding: 12px 15px 18px;
    }
    /* ----------------------------------------------
       Hero
       ---------------------------------------------- */
    .hero-banner-image {
        min-height: 240px;
    }
    .hero-banner-image img {
        min-height: 240px;
        object-fit: cover;
    }
    .hero-banner-overlay {
        padding: 20px 15px;
        background:
            linear-gradient(
                to right,
                rgba(0, 0, 0, 0.68),
                rgba(0, 0, 0, 0.30)
            );
    }
    .hero-banner-content h1 {
        margin-bottom: 8px;
        font-size: clamp(
            1.7rem,
            7vw,
            2.25rem
        );
    }
    .hero-banner-content p {
        margin-left: 0;
        font-size: 0.98rem;
        line-height: 1.5;
    }
    /* ----------------------------------------------
       Content Sections
       ---------------------------------------------- */
    .content-section {
        padding: 42px 0;
    }
    .section-heading {
        margin-bottom: 25px;
    }
    .section-heading h2 {
        font-size: 1.65rem;
    }
    .lead-text {
        font-size: 1.05rem;
    }
    /* ----------------------------------------------
       Cards
       ---------------------------------------------- */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .content-card {
        padding: 20px;
    }
    /* ----------------------------------------------
       CTA
       ---------------------------------------------- */
    .cta-section {
        padding: 40px 18px;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-buttons .button,
    .cta-buttons .cta-button {
        width: 100%;
    }
    /* ----------------------------------------------
       Tables
       ---------------------------------------------- */
    .table-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
        overflow-x: auto;
    }
    table {
        min-width: 650px;
    }
    th,
    td {
        padding: 10px 12px;
        font-size: 0.92rem;
    }
    /* ----------------------------------------------
       FAQ
       ---------------------------------------------- */
    .faq-question,
    .faq-answer {
        padding: 15px;
    }
    /* ----------------------------------------------
       Forms
       ---------------------------------------------- */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="date"],
    input[type="password"],
    textarea,
    select {
        min-height: 44px;
    }
    /* ----------------------------------------------
       Footer
       ---------------------------------------------- */
    .site-footer {
        margin-top: 45px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 40px;
        padding-bottom: 35px;
    }
    .footer-box {
        width: 100%;
    }
    .footer-box p {
        margin-left: 0.15rem;
    }
    .footer-links,
    .footer-seo-list,
    .footer-legal-list {
        margin-left: 0.15rem;
    }
    .footer-seo-columns {
        grid-template-columns: 1fr;
    }
    .footer-legal-list {
        flex-direction: column;
        gap: 8px;
    }
    .footer-cta {
        padding: 22px;
        gap: 20px;
    }
    .footer-cta-content h2 {
        font-size: 1.3rem;
    }
    .footer-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .footer-cta-button {
        width: 100%;
        flex: none;
    }
    .footer-bottom-container {
        width: calc(100% - 30px);
        max-width: 100%;
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: 6px;
    }
}

/* ==================================================
   4. SMALL MOBILE
   Approx. 480px and below
   ================================================== */
@media (max-width: 480px) {
    /* ----------------------------------------------
       Typography
       ---------------------------------------------- */
    body {
        font-size: 15px;
    }
    p {
        margin-left: 0.2rem;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    /* ----------------------------------------------
       Navigation
       ---------------------------------------------- */
    .navigation-container {
        width: calc(100% - 20px);
        max-width: 100%;
        min-height: 60px;
    }
    .site-logo {
        max-width: 220px;
        font-size: 1.05rem;
    }
    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }
    .primary-navigation {
        padding-left: 10px;
        padding-right: 10px;
    }
    .navigation-cta {
        grid-template-columns: 1fr;
    }
    /* ----------------------------------------------
       Hero
       ---------------------------------------------- */
    .hero-banner-image {
        min-height: 220px;
    }
    .hero-banner-image img {
        min-height: 220px;
    }
    .hero-banner-overlay {
        padding: 15px 12px;
    }
    .hero-banner-content h1 {
        font-size: 1.65rem;
    }
    .hero-banner-content p {
        margin-left: 0;
        font-size: 0.92rem;
    }
    /* ----------------------------------------------
       Content
       ---------------------------------------------- */
    .container,
    .content-container {
        width: calc(100% - 20px);
        max-width: 100%;
    }
    .content-section {
        padding: 35px 0;
    }
    .highlight-box {
        padding: 18px;
    }
    blockquote {
        padding: 15px 18px;
    }
    /* ----------------------------------------------
       Buttons
       ---------------------------------------------- */
    .button,
    .cta-button {
        width: 100%;
        min-height: 44px;
    }
    .cta-buttons {
        gap: 9px;
    }
    /* ----------------------------------------------
       Cards
       ---------------------------------------------- */
    .content-card {
        padding: 18px;
    }
    /* ----------------------------------------------
       Footer
       ---------------------------------------------- */
    .footer-grid {
        padding-top: 35px;
        padding-bottom: 30px;
    }
    .footer-cta {
        padding: 18px;
    }
    .footer-bottom-container {
        width: calc(100% - 20px);
        max-width: 100%;
    }
}

/* ==================================================
   5. VERY SMALL DEVICES
   Approx. 360px and below
   ================================================== */
@media (max-width: 360px) {
    .site-logo {
        max-width: 190px;
        font-size: 0.98rem;
    }
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    .hero-banner-image {
        min-height: 200px;
    }
    .hero-banner-image img {
        min-height: 200px;
    }
    .hero-banner-content h1 {
        font-size: 1.45rem;
    }
    .hero-banner-content p {
        margin-left: 0;
        font-size: 0.88rem;
    }
    .footer-cta-content h2 {
        font-size: 1.2rem;
    }
}

/* ==================================================
   6. LANDSCAPE MOBILE
   ================================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner-image {
        min-height: 260px;
    }
    .hero-banner-image img {
        min-height: 260px;
    }
    .hero-banner-overlay {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .hero-banner-content h1 {
        font-size: 1.8rem;
    }
    .hero-banner-content p {
        margin-left: 0;
        font-size: 0.95rem;
    }
}

/* ==================================================
   7. PRINT STYLES
   ================================================== */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .navigation-cta,
    .site-footer,
    .footer-cta,
    .footer-bottom {
        display: none !important;
    }
    .hero-banner {
        color: #000000;
        background: #ffffff;
    }
    .hero-banner-overlay {
        position: static;
        padding: 20px 0;
        background: none;
    }
    .hero-banner-content h1,
    .hero-banner-content p {
        color: #000000;
        text-shadow: none;
    }
    .content-section {
        padding: 20px 0;
    }
    a {
        color: #000000;
        text-decoration: underline;
    }
}