/* Model Customer Theme CSS */

/* ===== CSS Variables ===== */
:root {
    /* Primary Palette */
    --color-deep-navy: #1B365D;
    --color-bright-teal: #00A6B8;
    --color-warm-orange: #F4A261;
    --color-light-grey: #F8F9FA;
    
    /* Secondary Palette */
    --color-sage-green: #8FBC8F;
    --color-deep-purple: #6A4C93;
    --color-soft-blue: #E3F2FD;
    --color-charcoal: #2D3436;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Source Serif 4', serif;
    --font-logo: 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
    --sidebar-width: 300px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-light-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-deep-navy);
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: var(--spacing-xxl);
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: var(--spacing-xxl);
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-bright-teal);
}

p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 65ch;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
}

/* ===== Logo ===== */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 300px;  /* Optimal size by default */
    height: auto;
    display: block;
}

.navbar .logo-img {
    width: 240px;  /* Larger size for better visibility */
    max-height: 50px;
    object-fit: contain;
}

.footer-logo {
    width: 200px;
    margin-bottom: var(--spacing-md);
}

/* Logo size variations */
@media (max-width: 1024px) {
    .navbar .logo-img {
        width: 200px;  /* Medium screens */
    }
}

@media (max-width: 768px) {
    .logo-img {
        width: 180px;
    }
    
    .navbar .logo-img {
        width: 150px;  /* Smaller on tablets */
    }
    
    .footer-logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .navbar .logo-img {
        width: 120px;  /* Minimum size on mobile */
    }
    
    .footer-logo {
        width: 120px;
    }
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.content-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-deep-navy);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    color: white;
    text-decoration: none;
    transition: color var(--transition-base);
}

.nav-link:hover {
    color: var(--color-bright-teal);
}

/* Dropdown Navigation */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-charcoal);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--color-light-grey);
    color: var(--color-bright-teal);
}

.dropdown-menu .divider {
    height: 1px;
    background-color: var(--color-light-grey);
    margin: var(--spacing-sm) 0;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all var(--transition-base);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-bright-teal);
    color: white;
}

.btn-primary:hover {
    background-color: #0095a8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--color-bright-teal);
    border-color: var(--color-bright-teal);
}

.btn-secondary:hover {
    background-color: var(--color-bright-teal);
    color: white;
}

.btn-accent {
    background-color: var(--color-warm-orange);
    color: white;
}

.btn-accent:hover {
    background-color: #e5934f;
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background-color: white;
}

/* ===== Cards ===== */
.card {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-deep-navy);
    margin-bottom: var(--spacing-sm);
}

/* ===== Hero Section ===== */
.hero {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-light-grey);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-xl);
}

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-deep-navy);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: var(--spacing-md);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-bright-teal);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.6;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-deep-navy);
    margin-bottom: var(--spacing-sm);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--color-light-grey);
    border-radius: 4px;
    transition: border-color var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-bright-teal);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--color-deep-navy);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== Article Styles ===== */
/* Article List Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card .card-header {
    padding: 1.5rem;
    background: var(--color-light-grey);
    border-bottom: 3px solid var(--color-bright-teal);
}

.article-card .series-label {
    color: var(--color-bright-teal);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.article-card .meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.article-card a {
    text-decoration: none;
    color: inherit;
}

/* Article Content Typography */
.article-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-charcoal);
    max-width: 100%;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content p.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-deep-navy);
    font-weight: 300;
}

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--color-deep-navy);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-deep-navy);
}

.article-content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--color-deep-navy);
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-light-grey);
}

.article-series {
    color: var(--color-bright-teal);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    color: #666;
}

/* Sidebar Styles */
.article-sidebar {
    background: var(--color-light-grey);
    border-left: 4px solid var(--color-bright-teal);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.article-sidebar.tip {
    border-left-color: var(--color-bright-teal);
}

.article-sidebar.warning {
    border-left-color: var(--color-warm-orange);
    background: #fff8dc;
}

.article-sidebar.info {
    border-left-color: var(--color-sage-green);
}

.article-sidebar h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-deep-navy);
}

.article-sidebar .sidebar-icon {
    font-size: 1.5rem;
}

/* Key Takeaway Box */
.key-takeaway {
    background: var(--color-soft-blue);
    border: 2px solid var(--color-bright-teal);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    text-align: center;
}

.key-takeaway h3 {
    color: var(--color-deep-navy);
    margin-top: 0;
}

/* Image Styles */
.article-image {
    margin: 2rem 0;
}

.article-image.full {
    width: 100%;
}

.article-image.half {
    width: 50%;
}

.article-image.third {
    width: 33.333%;
}

.article-image.left {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.article-image.right {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.article-image.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.article-image figcaption {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery figure {
    margin: 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Side-by-side comparison */
.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.image-comparison figure {
    margin: 0;
}

.image-comparison img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Code blocks */
.article-content pre {
    background: var(--color-charcoal);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9em;
}

.article-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content p code {
    background: var(--color-light-grey);
    color: var(--color-charcoal);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid var(--color-bright-teal);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content th {
    background: var(--color-deep-navy);
    color: white;
    padding: 1rem;
    text-align: left;
}

.article-content td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-light-grey);
}

.article-content tr:nth-child(even) {
    background: var(--color-light-grey);
}

/* CTA Box */
.article-cta {
    background: linear-gradient(135deg, var(--color-bright-teal), var(--color-deep-navy));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.article-cta h3 {
    color: white;
    margin-top: 0;
}

.article-cta .btn {
    background: white;
    color: var(--color-deep-navy);
}

.article-cta .btn:hover {
    background: var(--color-light-grey);
}

/* Article Coming Soon Notice */
.coming-soon-notice {
    background: var(--color-soft-blue);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.scheduled-notice {
    background: linear-gradient(135deg, var(--color-soft-blue), var(--color-light-grey));
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.scheduled-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.scheduled-notice h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-deep-navy);
}

.scheduled-date {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.scheduled-countdown {
    font-size: 1.125rem;
    color: var(--color-bright-teal);
    margin-bottom: 2rem;
}

.scheduled-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb a {
    color: var(--color-bright-teal);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Clear floats */
.clear {
    clear: both;
}

/* Responsive adjustments for articles */
@media (max-width: 768px) {
    .article-image.left,
    .article-image.right {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
    
    .article-image.half,
    .article-image.third {
        width: 100%;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
    }
    
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content pre {
        font-size: 0.8em;
        padding: 1rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
}