/*
Theme Name: M² Digital Studio
Theme URI: https://www.m2digital.studio/
Author: Matt M.
Author URI: https://www.m2digital.studio/
Description: A custom, accessible-first theme for M² Digital Studio, built with Tailwind CSS.
Version: 1.0.0
Tags: accessibility-ready, custom-header, custom-menu, full-width-template, blog, one-column, two-columns
Text Domain: m-squared
*/

/* --- Base & Background --- */
body {
    background-color: #f7f7fe; /* Light violet-white */
    font-family: 'Inter', sans-serif;
    color: #334155; /* slate-700 */
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, #d4d4f8 0%, transparent 30%),
        radial-gradient(circle at 80% 90%, #d4d4f8 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, #f0f0fd 0%, transparent 20%);
    opacity: 0.5;
    z-index: -10;
}

/* --- Header & Navigation --- */
.pill-nav {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 900px; /* Max width for the pill */
    padding: 8px 12px;
    width: 100%;
    justify-content: space-between;
}

#main-nav-segmented {
    background: rgba(230, 230, 248, 0.4);
    border-radius: 9999px;
    padding: 4px;
}

/* The sliding "thumb" for active nav item */
.thumb {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 500;
    color: #475569; /* slate-600 */
    text-decoration: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.nav-link:hover {
    color: #1e293b; /* slate-800 */
}

.nav-link.nav-active {
    color: #1e293b; /* slate-800 */
    font-weight: 600;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    z-index: 10;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 10px spacing */
    z-index: 30;
    padding-top: 10px; /* For spacing */
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.dropdown-menu {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px;
    width: 240px;
    border: 1px solid #e2e8f0; /* slate-200 */
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: #334155; /* slate-700 */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #1e293b; /* slate-800 */
}

/* Header CTA Button */
.header-cta-btn {
    background: #2746f8;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-cta-btn:hover {
    background: #1e3de2;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(39, 70, 248, 0.3);
}


/* --- Hero Sections --- */
.hero-text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-wave {
    position: absolute;
    bottom: -1px; /* Cover seam */
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height of wave */
    z-index: 5; /* Above hero image, below content */
}

/* Simple Page Hero (for blog, etc) */
.page-hero {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10rem; /* 160px */
    padding-bottom: 6rem; /* 96px */
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}
.page-hero-content {
    position: relative;
    z-index: 10;
    max-width: 62rem; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem; /* px-6 */
    color: white;
}
.page-hero-content h1 {
    font-size: 3.75rem; /* text-6xl */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.page-hero-content p {
    font-size: 1.25rem; /* text-xl */
    opacity: 0.9;
}


/* --- Buttons & Links --- */
.gradient-text {
    background: linear-gradient(to right, #2746f8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem; /* px-10 py-4 */
    background: #2746f8;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(39, 70, 248, 0.2);
}

.btn-primary:hover {
    background: #1e3de2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 70, 248, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem; /* px-10 py-4 */
    background: #ffffff;
    color: #334155; /* slate-700 */
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0; /* slate-200 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc; /* slate-50 */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


/* --- Cards --- */
.solid-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
    height: 100%; /* For grid layout */
}


/* --- Pricing Page Styles --- */
.pricing-section {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-box-list .pricing-list-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
}

/* Last item no border */
.pricing-box-list .pricing-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pricing-item-details .pricing-item-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #1e293b; /* slate-800 */
}

.pricing-item-details .pricing-item-price {
    font-size: 1.125rem; /* text-lg */
    color: #475569; /* slate-600 */
    margin-bottom: 0.5rem;
}

.pricing-item-details .pricing-item-price .amount {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: #2746f8;
    margin-right: 0.25rem;
}

.pricing-item-details .pricing-item-description {
    color: #475569; /* slate-600 */
}
.pricing-item-details .pricing-item-description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 0.5rem;
    color: #475569;
}

.pricing-item-cta .btn-primary {
    width: 100%;
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
}

/* Desktop layout for pricing items */
@media (min-width: 768px) {
    .pricing-box-list .pricing-list-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
    .pricing-item-details {
        flex: 1;
    }
    .pricing-item-cta {
        flex-shrink: 0;
        width: auto;
    }
    .pricing-item-cta .btn-primary {
        width: auto;
    }
}


/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Blog / Prose --- */
.prose {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75;
}
.prose p {
    margin-bottom: 1.25em;
}
.prose h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    margin-bottom: 1em;
}
.prose h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    margin-bottom: 1em;
}
.prose a {
    color: #2746f8;
    text-decoration: underline;
    font-weight: 500;
}
.prose strong {
    font-weight: 700;
    color: #1e293b; /* slate-800 */
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
.prose ul li {
    margin-bottom: 0.5em;
}