/* ============================================
   InveStellar Website - Responsive Styles
   Mobile-First Design System
   ============================================ */

/* ============================================
   TABLET BREAKPOINT: 768px
   ============================================ */

@media (max-width: 768px) {
    /* Typography Adjustments */
    h1 {
        font-size: var(--font-size-2xl);
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: var(--font-size-lg);
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Sections */
    section {
        padding: var(--space-3xl) var(--space-md);
    }

    /* Navigation Bar */
    .navbar__container {
        padding: var(--space-md);
        height: 70px;
    }

    .navbar__menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--color-white);
        padding: var(--space-xl) var(--space-md);
        gap: var(--space-md);
        box-shadow: var(--shadow-md);
        z-index: var(--z-dropdown);
    }

    .navbar__menu.active {
        display: flex;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__cta {
        display: none;
    }

    .navbar__link {
        font-size: var(--font-size-base);
        padding: var(--space-sm) 0;
    }

    /* Hero Section */
    .hero {
        margin-top: 70px;
        padding: var(--space-3xl) var(--space-md);
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: var(--space-md);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-lg);
    }

    .hero__cta-group {
        flex-direction: column;
    }

    .hero__cta-group .btn {
        width: 100%;
    }

    /* About Section */
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about__highlights {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Services Section */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .service-card {
        padding: var(--space-lg);
    }

    .service-card__icon {
        font-size: 2rem;
    }

    /* Founder Section */
    .founder__content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .founder__image-container {
        position: static;
    }

    .founder__image-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

    .founder__bio {
        padding: 0;
    }

    /* Trust Section */
    .trust__grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact__content {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: var(--space-xl);
    }

    /* Footer */
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer__bottom {
        font-size: var(--font-size-xs);
    }

    /* Buttons */
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-sm);
    }

    .btn--large {
        padding: var(--space-md) var(--space-lg);
    }

    /* Forms */
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .contact__form {
        display: flex;
        flex-direction: column;
    }
}

/* ============================================
   MOBILE BREAKPOINT: 480px
   ============================================ */

@media (max-width: 480px) {
    /* Root Font Size Adjustment */
    html {
        font-size: 14px;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Sections */
    section {
        padding: var(--space-2xl) var(--space-md);
    }

    .navbar__container {
        padding: var(--space-sm);
        height: 60px;
    }

    .navbar__logo-text {
        display: none;
    }

    .navbar__logo-img {
        height: 36px;
    }

    /* Hero Section */
    .hero {
        margin-top: 60px;
        padding: var(--space-2xl) var(--space-md);
    }

    .hero__title {
        font-size: 1.375rem;
        margin-bottom: var(--space-md);
    }

    .hero__subtitle {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-normal);
    }

    .hero__cta-group {
        gap: var(--space-md);
    }

    /* About */
    .about__text p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-md);
    }

    .highlight-card {
        padding: var(--space-lg);
    }

    .highlight-card h3 {
        font-size: var(--font-size-sm);
    }

    .highlight-card p {
        font-size: var(--font-size-xs);
    }

    /* Services */
    .service-card {
        padding: var(--space-lg);
    }

    .service-card__title {
        font-size: var(--font-size-base);
    }

    .service-card__intro {
        font-size: var(--font-size-sm);
    }

    .service-card__content h4 {
        font-size: var(--font-size-xs);
    }

    .service-card__content li {
        font-size: var(--font-size-xs);
    }

    /* Founder */
    .founder__name {
        font-size: var(--font-size-lg);
    }

    .founder__title {
        font-size: var(--font-size-sm);
    }

    .founder__credential {
        font-size: var(--font-size-xs);
    }

    .founder__text {
        font-size: var(--font-size-sm);
    }

    .founder__text p {
        margin-bottom: var(--space-md);
    }

    .founder__credentials {
        padding: var(--space-lg);
    }

    .founder__credentials li {
        font-size: var(--font-size-xs);
    }

    /* Trust */
    .trust-item {
        padding: var(--space-lg);
    }

    .trust-item__title {
        font-size: var(--font-size-base);
    }

    .trust-item p {
        font-size: var(--font-size-xs);
    }

    /* Contact Section */
    .contact__info-item h4 {
        font-size: var(--font-size-sm);
    }

    .contact__info-item p {
        font-size: var(--font-size-xs);
    }

    /* Forms */
    .form-label {
        font-size: var(--font-size-xs);
    }

    .form-input,
    .form-textarea {
        padding: var(--space-md);
        font-size: 16px;
    }

    .form-textarea {
        min-height: 100px;
    }

    .contact__form {
        padding: var(--space-lg);
    }

    /* Buttons */
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-xs);
    }

    .btn--large {
        padding: var(--space-md) var(--space-lg);
    }

    /* Footer */
    .footer {
        padding: var(--space-2xl) var(--space-md);
    }

    .footer__top {
        gap: var(--space-lg);
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer__column h5 {
        font-size: var(--font-size-sm);
    }

    .footer__column a {
        font-size: var(--font-size-xs);
    }

    .footer__bottom {
        font-size: var(--font-size-xs);
    }

    .footer__disclaimer {
        line-height: 1.4;
    }
}

/* ============================================
   LANDSCAPE MOBILE: 480px to 768px (Height)
   ============================================ */

@media (max-height: 600px) and (orientation: landscape) {
    .navbar__container {
        height: 60px;
    }

    .hero {
        margin-top: 60px;
        padding: var(--space-lg) var(--space-md);
    }

    section {
        padding: var(--space-lg) var(--space-md);
    }
}

/* ============================================
   LARGE DESKTOP: 1920px+
   ============================================ */

@media (min-width: 1920px) {
    .navbar__container,
    .hero__container,
    .about__container,
    .services__container,
    .founder__container,
    .trust__container,
    .contact__container,
    .footer__container {
        max-width: 1400px;
    }

    section {
        padding: var(--space-4xl) var(--space-lg);
    }

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

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .hero__cta-group,
    .contact__form,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    section {
        page-break-inside: avoid;
        padding: 0;
    }
}

/* ============================================
   HIGH CONTRAST MODE (Accessibility)
   ============================================ */

@media (prefers-contrast: more) {
    :root {
        --color-navy: #001a33;
        --color-grey-charcoal: #1a1a1a;
        --color-text-secondary: #333;
        --color-border: #666;
    }

    .btn--secondary {
        border-width: 3px;
    }

    .form-input,
    .form-textarea {
        border-width: 2px;
    }
}

/* ============================================
   DARK MODE SUPPORT (If Added Later)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Include dark mode styles here when implemented */
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Remove hover effects on touch devices */
    .service-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        opacity: 0.8;
    }
}

/* ============================================
   MOBILE MENU ACCESSIBILITY
   ============================================ */

.navbar__menu.active .navbar__link {
    display: block;
    padding: var(--space-md) 0;
}

/* ============================================
   ORIENTATION CHANGES
   ============================================ */

@media (orientation: portrait) {
    .founder__image-placeholder {
        max-width: 300px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .about__highlights {
        gap: var(--space-md);
    }

    .highlight-card {
        padding: var(--space-md);
    }
}
