/* 
  Scrapanet Design System 
  Theme: Light, Warm, Airy, Premium
*/

:root {
    /* Colors */
    --color-white: #ffffff;
    --color-beige-light: #f9f7f2;
    /* Soft airy beige */
    --color-beige: #efebe4;
    /* Slightly darker beige for inputs/backgrounds */
    --color-pink-soft: #fae1dd;
    /* Pastel pink for accents */
    --color-text-main: #2c2926;
    /* Dark charcoal instead of pure black for text */
    --color-text-muted: #6b6661;
    --color-accent: #d4a373;
    /* Warm earth tone for buttons/links if needed */
    --color-accent-hover: #c49265;
    --color-accent-dark: #8b623e;
    /* Darker version for accessible text contrast (4.5:1 on white) */

    /* Typography */
    /* Using system fonts for best performance and native look.
       Heading stack: Similar to Outfit - modern geometric sans-serif
       Body stack: Similar to Inter - clean, readable sans-serif
    */
    --font-family-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing (Mobile First) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-base: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--color-beige-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    z-index: 10001;
    transition: top 0.3s ease;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-text-main);
    outline-offset: 2px;
}

/* Better Focus States */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Ensure icons/images don't break flow if missing */
img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    height: auto;
}

[aria-hidden="true"] {
    pointer-events: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-family-body);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-beige);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-beige-light);
}

.btn-accent {
    background-color: var(--color-pink-soft);
    color: var(--color-text-main);
}

.btn-accent:hover {
    filter: brightness(0.95);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 247, 242, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover .nav-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-link-highlight {
    color: var(--color-accent);
    font-weight: 700;
}

.nav-link-highlight .nav-icon {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: 0.3s;
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: -1rem auto var(--spacing-lg);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.hero-buttons {
    justify-content: flex-start;
}

/* Cards / Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--color-beige);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item .card-img {
    aspect-ratio: 1/1;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.summary-card {
    padding: 1em;
}

.card-body {
    padding: var(--spacing-md);
    text-align: center;
    position: relative;
}

.card-icon-mini {
    width: 50px;
    height: 50px;
    margin: -40px auto 1rem;
    background: var(--color-white);
    border-radius: var(--radius-full);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.card-icon-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}


.card-desc {
    color: var(--color-text-muted);
    font-size: 0.9em;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--color-white);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-beige);
}

.footer-content {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .page-header {
        padding-bottom: 0em !important;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mobile-reverse-grid {
        display: flex !important;
        flex-direction: column-reverse;
    }

    .hero-buttons {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-beige);
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* Pricing Table */
.pricing-section-container {
    background: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin: var(--spacing-lg) auto;
    max-width: 1000px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-sm);
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-beige);
}

.pricing-table th {
    font-family: var(--font-family-heading);
    color: var(--color-text-muted);
    font-weight: 500;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-price {
    font-weight: 700;
    color: var(--color-accent-dark);
    text-align: right !important;
}

/* Custom Checklist */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.list-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* FAQ Accordion */
.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--color-beige);
}

.faq-question {
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.faq-answer {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Ideas Grid (Calendars) */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-md);
}

.idea-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.idea-card:hover {
    transform: translateY(-5px);
    background: var(--color-beige-light);
    border-color: var(--color-pink-soft);
}

.idea-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idea-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.idea-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Feature Icons update */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.feature-card .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Portfolio clickable images */
.btn-image-open {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.btn-image-open img {
    transition: transform 0.3s ease;
}

.btn-image-open:hover img {
    transform: scale(1.05);
}

.btn-image-open:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
    background: white;
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal:not([hidden]) .modal-content {
    transform: translateY(0);
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: var(--radius-sm);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Screen Reader Only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}