/* ============================================
   SANCTUM PRESS - MOBILE FIRST DESIGN
   Theme: Dark Red Shades, Black, White
   Font: Playfair Display (elegant serif)
   ============================================ */


/* CSS VARIABLES - DARK THEME (DEFAULT) */

:root {
    /* Color Palette - Red Shades & Dark */
    --primary-red: #8B0000;
    --secondary-red: #A52A2A;
    --accent-red: #DC143C;
    --dark-red: #5C0000;
    --light-red: #CD5C5C;
    --bg-black: #0a0a0a;
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-light-gray: #999999;
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-round: 50%;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-red: 0 4px 20px rgba(139, 0, 0, 0.4);
}


/* LIGHT THEME VARIABLES */

body.light-theme {
    /* Color Palette - Blue Shades & Light */
    --primary-red: #1E90FF;
    /* dodgerblue */
    --secondary-red: #008080;
    /* teal */
    --accent-red: #1E90FF;
    /* dodgerblue */
    --dark-red: #20B2AA;
    /* lightseagreen */
    --light-red: #4682B4;
    /* steelblue */
    --bg-black: #ffffff;
    /* white */
    --bg-dark: #F5F5F5;
    /* whitesmoke */
    --bg-card: #ffffff;
    /* white */
    --text-white: #303030;
    /* dark gray for text */
    --text-gray: #505050;
    /* medium gray */
    --text-light-gray: #707070;
    /* light gray */
    /* Shadows - adjusted for light theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-red: 0 4px 20px rgba(30, 144, 255, 0.3);
}


/* ============================================
   MOBILE STYLES (DEFAULT - 320px+)
   ============================================ */


/* RESET & BASE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}


/* Light theme specific adjustments */

body.light-theme {
    background: var(--bg-black);
}

body.light-theme .banner-overlay {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.6) 0%, rgba(0, 128, 128, 0.7) 50%, rgba(245, 245, 245, 0.8) 100%);
}

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

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--light-red);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}


/* DEVICE SELECTOR OVERLAY */

.device-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.device-selector-overlay.hidden {
    display: none;
}

.device-selector-content {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
}

.device-selector-content h2 {
    color: var(--accent-red);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.device-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.device-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-dark);
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-md);
    color: var(--text-white);
    transition: var(--transition-normal);
    font-size: 1rem;
}

.device-option:hover,
.device-option:active {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.device-option i {
    font-size: 2rem;
}


/* FLOATING DEVICE SWITCHER */

.floating-device-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.device-switch-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    background: var(--primary-red);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    font-size: 1.2rem;
}

.device-switch-btn:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}


/* LOADING OVERLAY */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--accent-red);
    border-radius: var(--radius-round);
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    margin-top: var(--spacing-md);
    color: var(--text-gray);
    font-size: 1.1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* VIDEO BANNER */

.banner {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.7) 0%, rgba(92, 0, 0, 0.8) 50%, rgba(10, 10, 10, 0.9) 100%);
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 2;
}

.banner-text h1 {
    font-size: 1.75rem;
    color: var(--text-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: slideInUp 1s ease;
}

.banner-text .underline {
    position: relative;
    display: inline-block;
    color: var(--accent-red);
}

.banner-text .underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* HEADER - STICKY */

.header {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--primary-red);
    box-shadow: var(--shadow-red);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* NAVIGATION - MOBILE (ICONS) */

.nav-buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-xs);
    color: var(--text-gray);
    transition: var(--transition-fast);
    flex: 1;
    min-width: 60px;
}

.nav-link i {
    font-size: 1.3rem;
}

.nav-link .nav-text {
    font-size: 0.7rem;
    font-family: 'Playfair Display', serif;
}

.nav-link:hover,
.nav-link:active {
    color: var(--accent-red);
}

.nav-link.estimate-btn {
    color: var(--text-white);
    background: var(--primary-red);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.nav-link.estimate-btn:hover {
    background: var(--accent-red);
}

.nav-link.theme-btn {
    color: var(--text-gray);
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-fast);
}

.nav-link.theme-btn:hover {
    background: var(--primary-red);
    color: var(--text-white);
}

body.light-theme .nav-link.theme-btn i.fa-moon {
    display: none;
}

body.light-theme .nav-link.theme-btn i.fa-sun {
    display: inline-block;
}

body:not(.light-theme) .nav-link.theme-btn i.fa-sun {
    display: none;
}


/* FEATURED BANNER */

.featured-banner {
    width: 100%;
    margin: var(--spacing-md) 0;
    padding: 0 var(--spacing-sm);
}

.featured-banner img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}


/* MAIN CONTENT */

.main-content {
    padding: var(--spacing-md) var(--spacing-sm);
}


/* GET ESTIMATE GUI */

.get-estimate-gui {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.estimate-toggle {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-red);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.4s ease, color 0.4s ease;
    font-family: 'Playfair Display', serif;
}

.estimate-toggle:hover {
    background: var(--accent-red);
}

.estimate-toggle i {
    transition: transform var(--transition-normal);
}

.get-estimate-gui.collapsed .estimate-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.get-estimate-gui:not(.collapsed) .estimate-toggle i {
    transform: rotate(180deg);
}

.estimate-content {
    max-height: 5000px;
    opacity: 1;
    transition: max-height var(--transition-slow), opacity var(--transition-normal);
    padding: var(--spacing-md);
}

.estimate-content h2 {
    color: var(--accent-red);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}


/* CALCULATOR TABS */

.calculator-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.calc-tab {
    padding: var(--spacing-sm);
    background: var(--bg-dark);
    color: var(--text-gray);
    border-radius: var(--radius-md);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    font-size: 1rem;
    border: 2px solid transparent;
}

.calc-tab:hover {
    color: var(--text-white);
    border-color: var(--primary-red);
}

.calc-tab.active {
    background: var(--primary-red);
    color: var(--text-white);
    border-color: var(--accent-red);
}


/* CALCULATOR PANELS */

.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.calc-panel h3 {
    color: var(--light-red);
    margin-bottom: var(--spacing-md);
}

.minimum-notice {
    background: var(--dark-red);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}


/* FORM STYLES */

.calc-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.form-control {
    padding: var(--spacing-sm);
    background: var(--bg-dark);
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1rem;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-red);
}

.inline-input {
    max-width: 120px;
    margin-left: var(--spacing-sm);
}

.inline-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ESTIMATE RESULT */

.estimate-result {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-red);
    margin-top: var(--spacing-md);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    font-size: 1rem;
}

.result-item.total {
    border-top: 2px solid var(--primary-red);
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-red);
}

.estimate-note {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    margin-top: var(--spacing-sm);
    text-align: center;
    font-style: italic;
}


/* BUTTONS */

.btn-primary {
    padding: var(--spacing-md);
    background: var(--accent-red);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-md);
}

.btn-primary:hover {
    background: var(--light-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* INFO GRID */

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.info-item {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-red);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.info-item h4 {
    color: var(--light-red);
    margin-bottom: var(--spacing-xs);
    transition: color 0.4s ease;
}

.info-item p {
    color: var(--text-gray);
    transition: color 0.4s ease;
}


/* PRODUCTS GRID */

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.product-card {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-red);
    transition: background-color 0.4s ease, border-color 0.4s ease, transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

.product-card h4 {
    color: var(--accent-red);
    margin-bottom: var(--spacing-xs);
}

.product-card .price {
    color: var(--light-red);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}


/* ANNOUNCEMENTS */

.announcements {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-sm);
}

.sale-announcements,
.book-signing {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.sale-announcements img {
    width: 100%;
    height: auto;
}

.book-signing {
    padding: var(--spacing-md);
}

.bsann {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.by {
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: 600;
}

.by i {
    margin-right: var(--spacing-xs);
}

.where-when {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    color: var(--text-gray);
}

.where i,
.when {
    margin-right: var(--spacing-xs);
}


/* SUCCESS STORY */

.success-story {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.ss-image {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.ss-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.ss-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.details {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-red);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.details h3 {
    color: var(--accent-red);
    margin-bottom: var(--spacing-sm);
    transition: color 0.4s ease;
}

.details p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
    transition: color 0.4s ease;
}

.quote {
    background: var(--dark-red);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-style: italic;
    transition: background-color 0.4s ease;
}

.quote blockquote {
    margin: 0;
}

.quote cite {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--light-red);
    font-style: normal;
    font-weight: 600;
}

.bk-desc p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--text-gray);
}


/* AUTHORS SECTION */

.authors-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background: var(--bg-dark);
}

.authors-section h2 {
    text-align: center;
    color: var(--accent-red);
    margin-bottom: var(--spacing-lg);
}

.authors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.author-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    transition: background-color 0.4s ease, transform var(--transition-normal), box-shadow var(--transition-normal);
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

.auth-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-round);
    overflow: hidden;
    border: 3px solid var(--accent-red);
    padding: 5px;
    background: var(--bg-dark);
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.auth-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-round);
}

.auth-name {
    font-weight: 600;
    color: var(--text-white);
    text-align: center;
    font-size: 1.1rem;
    transition: color 0.4s ease;
}

.auth-on {
    color: var(--text-light-gray);
    font-size: 0.9rem;
    transition: color 0.4s ease;
}


/* BOOKS SECTION */

.books-section {
    padding: var(--spacing-lg) var(--spacing-sm);
}

.books-section h2 {
    text-align: center;
    color: var(--accent-red);
    margin-bottom: var(--spacing-lg);
    transition: color 0.4s ease;
}

.books-carousel {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.book-card {
    background: var(--bg-card);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.4s ease, transform var(--transition-normal), box-shadow var(--transition-normal);
}

.book-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-red);
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.carousel-btn {
    display: none;
}

.goto-shop {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.goto-shop i {
    color: var(--accent-red);
    margin-right: var(--spacing-xs);
}

.goto-shop a {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}


/* TESTIMONIALS */

.testimonials {
    padding: var(--spacing-lg) var(--spacing-sm);
    background: var(--bg-dark);
}

.testimonials h2 {
    text-align: center;
    color: var(--accent-red);
    margin-bottom: var(--spacing-lg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.testimonial-cards {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.testimonial-cards:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-red);
}

.testimonial-cards img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* CONTACT SECTION */

.contact-section {
    padding: var(--spacing-lg) var(--spacing-sm);
}

.contact-section h2 {
    text-align: center;
    color: var(--accent-red);
    margin-bottom: var(--spacing-lg);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    transition: background-color 0.4s ease, transform var(--transition-normal), box-shadow 0.4s ease;
}

.contact-item:hover {
    background: var(--bg-dark);
    transform: translateX(4px);
}

.contact-item i {
    color: var(--accent-red);
    font-size: 1.5rem;
    min-width: 30px;
    transition: color 0.4s ease;
}

.contact-item a,
.contact-item span {
    color: var(--text-gray);
    word-break: break-all;
    transition: color 0.4s ease;
}

.contact-item.share {
    flex-wrap: wrap;
}

.copy-link-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-red);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    margin-left: auto;
}

.copy-link-btn:hover {
    background: var(--accent-red);
}


/* FOOTER */

.footer {
    background: var(--bg-dark);
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    border-top: 2px solid var(--primary-red);
}

.footer p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
}


/* ============================================
   TABLET PORTRAIT STYLES (600px+)
   ============================================ */

@media (min-width: 600px) {
    body.tablet.portrait {
        /* Tablet specific adjustments */
    }
    .banner {
        height: 50vh;
    }
    .banner-text h1 {
        font-size: 2.5rem;
    }
    .device-selector-content {
        max-width: 500px;
    }
    .device-options {
        flex-direction: row;
        justify-content: center;
    }
    /* TABLET HEADER - HORIZONTAL LAYOUT */
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-md);
    }
    .logo-container {
        width: auto;
        justify-content: flex-start;
    }
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }
    .nav-buttons {
        width: auto;
        flex-wrap: nowrap;
        gap: var(--spacing-sm);
        justify-content: flex-end;
        flex: 1;
    }
    .nav-link {
        min-width: 70px;
        flex: 0 0 auto;
    }
    .nav-link i {
        font-size: 1.5rem;
    }
    .nav-link .nav-text {
        font-size: 0.8rem;
    }
    .calculator-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .calc-tab {
        flex: 1;
        min-width: 150px;
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .success-story {
        padding: var(--spacing-lg);
    }
    .ss-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    .bk-desc {
        grid-column: 1 / -1;
    }
}


/* ============================================
   TABLET LANDSCAPE STYLES (900px+)
   ============================================ */

@media (min-width: 900px) {
    body.tablet.landscape {
        /* Tablet landscape specific */
    }
    .banner {
        height: 60vh;
    }
    .banner-text h1 {
        font-size: 3rem;
    }
    /* TABLET LANDSCAPE HEADER - HORIZONTAL */
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .logo-container {
        width: auto;
        justify-content: flex-start;
    }
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }
    .nav-buttons {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex: 1;
    }
    .nav-link {
        flex: 0 0 auto;
    }
    .nav-link .nav-text {
        font-size: 0.9rem;
    }
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .authors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .books-carousel {
        position: relative;
    }
    .carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: var(--primary-red);
        color: var(--text-white);
        border-radius: var(--radius-round);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-fast);
        z-index: 10;
    }
    .carousel-btn:hover {
        background: var(--accent-red);
        transform: translateY(-50%) scale(1.1);
    }
    .carousel-btn.prev {
        left: -25px;
    }
    .carousel-btn.next {
        right: -25px;
    }
    .success-story {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: var(--spacing-xl);
    }
    .ss-image {
        margin-bottom: 0;
    }
}


/* ============================================
   DESKTOP STYLES (1200px+)
   Desktop App Feel
   ============================================ */

@media (min-width: 1200px) {
    body.desktop {
        background: var(--bg-black);
        padding: 0;
    }
    body.desktop.light-theme {
        background: var(--bg-black);
    }
    /* Desktop App Container */
    body.desktop::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
        transition: background 0.4s ease;
    }
    body.desktop.light-theme::before {
        background: radial-gradient(circle at 20% 50%, rgba(30, 144, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 128, 128, 0.08) 0%, transparent 50%);
    }
    .banner {
        height: 70vh;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        overflow: hidden;
    }
    .banner-text h1 {
        font-size: 4rem;
    }
    .header {
        padding: var(--spacing-md) var(--spacing-xl);
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.4s ease;
    }
    body.light-theme .header {
        background: rgba(245, 245, 245, 0.95);
    }
    .logo-container {
        width: auto;
        justify-content: flex-start;
    }
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }
    .nav-buttons {
        gap: var(--spacing-md);
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex: 1;
    }
    .nav-link {
        flex-direction: row;
        padding: var(--spacing-sm) var(--spacing-md);
        min-width: auto;
        border-radius: var(--radius-md);
    }
    .nav-link:hover {
        background: rgba(139, 0, 0, 0.2);
    }
    .nav-link .nav-text {
        display: inline;
        font-size: 1rem;
    }
    .nav-link i {
        font-size: 1.2rem;
    }
    .featured-banner {
        max-width: 1400px;
        margin: var(--spacing-xl) auto;
    }
    .main-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--spacing-xl);
    }
    .get-estimate-gui {
        border-radius: var(--radius-xl);
    }
    .estimate-content {
        padding: var(--spacing-xl);
    }
    .calculator-tabs {
        gap: var(--spacing-sm);
    }
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    .announcements {
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--spacing-xl);
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--spacing-lg);
    }
    .success-story {
        max-width: 1400px;
        margin: var(--spacing-xl) auto;
        padding: var(--spacing-xl);
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: var(--spacing-xl);
    }
    .authors-section {
        padding: var(--spacing-xl);
    }
    .authors-section .authors-grid {
        max-width: 1400px;
        margin: 0 auto;
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-lg);
    }
    .books-section {
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--spacing-xl);
    }
    .books-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-lg);
    }
    .testimonials {
        padding: var(--spacing-xl);
    }
    .testimonials-grid {
        max-width: 1400px;
        margin: 0 auto;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    .contact-section {
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--spacing-xl);
    }
    .contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    .footer {
        padding: var(--spacing-xl);
    }
}


/* ============================================
   ORIENTATION & DEVICE-SPECIFIC CLASSES
   ============================================ */

body.mobile.portrait {
    /* Mobile portrait specific styles */
}

body.mobile.landscape {
    /* Mobile landscape - adjust header */
    .header {
        padding: var(--spacing-xs);
    }
    .logo-wrapper {
        width: 60px;
        height: 60px;
    }
    .nav-link .nav-text {
        display: none;
    }
}

body.tablet.portrait {
    /* Already defined above at 600px+ */
}

body.tablet.landscape {
    /* Already defined above at 900px+ */
}

body.desktop {
    /* Already defined above at 1200px+ */
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}