@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
    --primary: #DC2626;
    --primary-hover: #B91C1C;
    --secondary: #111827;
    --text-main: #1F2937;
    --text-light: #6B7280;
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;
    --accent: #FDECEC;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* New Premium Hero */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    /* Spacer for fixed header */
    position: relative;
    background: url('https://newcastlebedsuk.co.uk/sunrisebeds/Sunrise_880x704_4cbcea5d-ca8e-4811-902b-0e7518f9b2cd.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-card {
    background: none;
    /* Removed blur and background card effect */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2rem;
    border: none;
    box-shadow: none;
    animation: heroEntrance 1s ease-out;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.flash-sale-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #DC2626;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white !important;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    -webkit-text-fill-color: initial;
    background: none;
}

.hero-content h1 span {
    display: block;
    font-size: 5.5rem;
    background: linear-gradient(135deg, #fff 0%, #ffcfcf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.shop-now-btn {
    background: white;
    color: #DC2626 !important;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shop-now-btn:hover {
    transform: translateY(-5px);
    background: #fef2f2;
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.3);
}

.outline-btn {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white !important;
    padding: 1.125rem 2.5rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

.limited-time {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #FBBF24;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-line {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.trust-item svg {
    color: #10B981;
}

/* Features */
.features {
    padding: 6rem 2rem;
    background: white;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 38, 38, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Article Styling */
.long-article {
    padding: 6rem 2rem;
    background: var(--bg-alt);
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.125rem;
    color: var(--text-main);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2.25rem;
    margin: 3rem 0 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

/* SEO Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: white;
}

.article-content th,
.article-content td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-content th {
    background-color: var(--bg-alt);
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 600;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:hover {
    background-color: var(--accent);
    transition: background-color 0.2s ease;
}

/* Categories Section */
.categories {
    padding: 6rem 2rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--secondary);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.category-info h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq {
    padding: 6rem 2rem;
    background: var(--bg-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 6rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #9CA3AF;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
        z-index: 1001;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-card {
        padding: 2.5rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content h1 span {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .shop-now-btn,
    .outline-btn {
        width: 100%;
        padding: 1rem;
        justify-content: center;
    }

    .trust-line {
        gap: 1rem;
        margin-top: 2rem;
    }

    .trust-item {
        font-size: 0.9rem;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 0.5rem;
    }

    .features,
    .long-article,
    .categories,
    .faq {
        padding: 4rem 1.5rem;
    }

    footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-container {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4.5rem 0.5rem 1rem;
        min-height: auto;
    }

    .hero-card {
        padding: 0.75rem 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .hero-content h1 span {
        font-size: 2.15rem;
    }

    .hero-content p {
        margin-bottom: 1rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .flash-sale-chip {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        margin-bottom: 0.75rem;
    }

    .shop-now-btn,
    .outline-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .hero-btns {
        gap: 0.4rem;
    }

    .limited-time {
        margin-top: 1rem;
        font-size: 0.8rem;
    }

    .trust-line {
        margin-top: 1rem;
        gap: 0.4rem;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    .categories {
        padding: 3rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-info {
        padding: 1rem;
    }

    .category-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .category-info p {
        font-size: 0.8rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 1.5rem;
    }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}