/* ==========================================================================
   RESPONSIVE.CSS - The Brunton Resort
   Complete responsive design for all device sizes
   ========================================================================== */

/* ==========================================================================
   LARGE DESKTOP (1200px and above)
   ========================================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1.4rem;
        max-width: 700px;
    }
    
    .section h2 {
        font-size: 3rem;
    }
    
    .section-intro {
        font-size: 1.3rem;
        max-width: 900px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .room-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 3rem;
    }
    
    .amenities-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .feature-card,
    .contact-item {
        padding: 2.5rem;
    }
    
    .room-info {
        padding: 2rem;
    }
    
    /* Enhanced hover effects for larger screens */
    .feature-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 50px rgba(255, 193, 7, 0.25);
    }
    
    .room-card:hover {
        transform: scale(1.08);
    }
    
    .amenity-item:hover {
        transform: translateX(15px);
    }
}

/* ==========================================================================
   DESKTOP (992px to 1199px)
   ========================================================================== */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    nav {
        padding: 1rem 3%;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .section h2 {
        font-size: 2.3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .room-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .amenities-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   TABLET LANDSCAPE (768px to 991px)
   ========================================================================== */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Header adjustments */
    nav {
        padding: 1rem 4%;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 14px 35px;
        font-size: 1.05rem;
    }
    
    /* Section headings */
    .section {
        padding: 70px 0;
    }
    
    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .section-intro {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
    }
    
    /* Grid layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .amenities-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Card adjustments */
    .feature-card {
        padding: 2rem;
    }
    
    .room-info {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1.8rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        gap: 1.5rem;
    }
    
    .footer-social {
        order: 2;
    }
    
    .footer-logo {
        order: 1;
        width: 100%;
    }
}

/* ==========================================================================
   TABLET PORTRAIT (600px to 767px)
   ========================================================================== */
@media (max-width: 767px) and (min-width: 600px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    /* Mobile toggle appears */
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-top: 2px solid #FFC107;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 193, 7, 0.1);
        color: #FFC107;
    }
    
    /* Header mobile adjustments */
    nav {
        padding: 1rem 5%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 55px;
        height: 38px;
    }
    
    /* Hero adjustments */
    .hero {
        background-attachment: scroll;
        padding: 0 20px;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 13px 32px;
        font-size: 1rem;
    }
    
    /* Section adjustments */
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2.1rem;
        margin-bottom: 2.5rem;
    }
    
    .section-intro {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Grid becomes single column */
    .features-grid,
    .room-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amenities-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Card adjustments */
    .feature-card,
    .contact-item {
        padding: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .room-card {
        margin-bottom: 1.5rem;
    }
    
    .room-card:hover {
        transform: scale(1.03);
    }
    
    .amenity-item {
        padding: 1rem;
    }
    
    .amenity-item:hover {
        transform: translateX(8px);
    }
}

/* ==========================================================================
   MOBILE LANDSCAPE (480px to 599px)
   ========================================================================== */
@media (max-width: 599px) and (min-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-top: 2px solid #FFC107;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 193, 7, 0.1);
    }
    
    nav {
        padding: 1rem 4%;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 35px;
    }
    
    /* Hero */
    .hero {
        background-attachment: scroll;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* All grids become single column */
    .features-grid,
    .room-grid,
    .amenities-list,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .room-card,
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .feature-card,
    .contact-item {
        padding: 1.5rem;
    }
    
    .room-info {
        padding: 1.2rem;
    }
    
    .room-card:hover {
        transform: scale(1.02);
    }
    
    .amenity-item:hover {
        transform: translateX(5px);
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ==========================================================================
   MOBILE PORTRAIT (320px to 479px)
   ========================================================================== */
@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header mobile */
    .mobile-toggle {
        display: block;
        font-size: 1.3rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-top: 2px solid #FFC107;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.3rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem;
        text-align: center;
        border-radius: 5px;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 193, 7, 0.1);
    }
    
    nav {
        padding: 0.8rem 4%;
    }
    
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 45px;
        height: 30px;
    }
    
    .logo-icon::before {
        width: 10px;
        height: 10px;
    }
    
    .logo-icon::after {
        width: 20px;
        height: 2px;
    }
    
    /* Hero mobile */
    .hero {
        background-attachment: scroll;
        padding: 0 15px;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    /* Sections mobile */
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .section-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    /* All grids single column */
    .features-grid,
    .room-grid,
    .amenities-list,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards mobile */
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .room-card {
        margin-bottom: 1rem;
    }
    
    .room-info {
        padding: 1rem;
    }
    
    .room-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .room-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .room-features {
        font-size: 0.85rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .amenity-item {
        padding: 0.8rem;
        gap: 10px;
    }
    
    .amenity-icon {
        font-size: 1.2rem;
    }
    
    .amenity-item div:last-child {
        font-size: 0.9rem;
    }
    
    /* Reduced hover effects on small screens */
    .feature-card:hover,
    .room-card:hover,
    .contact-item:hover {
        transform: translateY(-3px);
    }
    
    .amenity-item:hover {
        transform: translateX(3px);
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 0.8rem;
    }
}

/* ==========================================================================
   EXTRA SMALL MOBILE (280px to 319px)
   ========================================================================== */
@media (max-width: 319px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header extra small */
    nav {
        padding: 0.8rem 3%;
    }
    
    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .logo-icon {
        width: 40px;
        height: 28px;
    }
    
    .mobile-toggle {
        font-size: 1.2rem;
    }
    
    /* Hero extra small */
    .hero {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    /* Sections extra small */
    .section {
        padding: 35px 0;
    }
    
    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .section-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards extra small */
    .feature-card,
    .contact-item {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .room-info {
        padding: 0.8rem;
    }
    
    .amenity-item {
        padding: 0.6rem;
        gap: 8px;
    }
    
    .amenity-icon {
        font-size: 1.1rem;
    }
    
    .amenity-item div:last-child {
        font-size: 0.85rem;
    }
    
    /* Footer extra small */
    .footer-logo {
        font-size: 1.2rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 80px;
        display: flex;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ==========================================================================
   HIGH DPI DISPLAYS (RETINA)
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon::before {
        width: 10px;
        height: 10px;
    }
    
    .logo-icon::after {
        height: 2px;
        width: 22px;
    }
    
    /* Sharper borders and shadows */
    .feature-card,
    .room-card,
    .contact-item,
    .amenity-item {
        border-width: 0.5px;
    }
    
    .section h2::after {
        height: 3px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    header,
    .mobile-toggle,
    .cta-button,
    footer,
    .nav-menu {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
        background: white;
        page-break-after: always;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .room-card,
    .contact-item {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .features-grid,
    .room-grid,
    .amenities-list,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .highlight,
    .highlight-text {
        color: black !important;
        font-weight: bold;
    }
}

/* ==========================================================================
   REDUCED MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    .about {
        background: #1a1a1a;
        color: #fff;
    }
    
    .about h2 {
        color: #fff;
    }
    
    .amenities {
        background: #2a2a2a;
        color: #fff;
    }
    
    .feature-card {
        background: #333;
        color: #fff;
        border-color: #444;
    }
    
    .feature-card h3 {
        color: #fff;
    }
    
    .feature-card p {
        color: #ccc;
    }
    
    .amenity-item {
        background: #333;
        color: #fff;
    }
    
    .amenity-item div:last-child {
        color: #fff;
    }
}

/* ==========================================================================
   HOVER DEVICE ADJUSTMENTS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Reduce hover effects on touch devices */
    .feature-card:hover,
    .room-card:hover,
    .contact-item:hover,
    .amenity-item:hover {
        transform: none;
    }
    
    .nav-menu a:hover {
        background: transparent;
        color: inherit;
    }
    
    /* Make touch targets larger */
    .nav-menu a,
    .cta-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}