/* ========================================
   INNERBLOOM
   Responsive Frontend Project
   HTML5 + CSS3 + JavaScript
======================================== */


/* ========================================
   ROOT VARIABLES
======================================== */

:root {
    --bg: #F5F1EC;
    --primary: #5B5049;
    --secondary: #9B8D82;
    --accent: #8FA8B5;

    --card: #FFFFFF;
    --text: #302D2A;
    --muted: #756E68;

    --soft: #E8E2DC;
    --border: #DDD5CD;

    --footer: #4C4743;

    --white: #FFFFFF;

    --shadow: 0 10px 30px rgba(48, 45, 42, 0.08);
    --shadow-hover: 0 18px 40px rgba(48, 45, 42, 0.13);
}


/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;

    min-width: 320px;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    padding: 0;
}


/* ========================================
   ACCESSIBILITY
======================================== */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(245, 241, 236, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1100px, 92%);
    min-height: 75px;

    margin: auto;

    display: flex;
    align-items: center;

    gap: 20px;
}


/* ========================================
   LOGO
======================================== */

.logo {
    color: var(--primary);

    font-family: "Montserrat", sans-serif;

    font-size: 1.45rem;
    font-weight: 700;

    letter-spacing: -0.5px;

    flex-shrink: 0;
}


/* ========================================
   NAVIGATION
======================================== */

.nav-links {
    list-style: none;

    display: none;

    position: absolute;

    top: 75px;
    left: 4%;
    right: 4%;

    flex-direction: column;

    gap: 0;

    padding: 10px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow-hover);
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    display: block;

    padding: 13px 14px;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 600;

    border-radius: 10px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.nav-links a:hover {
    background: var(--soft);
    color: var(--primary);
}


/* ========================================
   MENU TOGGLE
======================================== */

.menu-toggle {
    display: block;

    margin-left: auto;

    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 1.35rem;

    padding: 5px;
}


/* ========================================
   THEME TOGGLE
======================================== */

.theme-toggle {
    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 1.15rem;

    padding: 5px;
}


/* ========================================
   GENERAL SECTIONS
======================================== */

.section {
    width: min(1100px, 92%);

    margin: auto;

    padding: 80px 0;
}

.section-heading {
    max-width: 680px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-heading h2 {
    color: var(--primary);

    font-family: "Montserrat", sans-serif;

    font-size: clamp(1.9rem, 5vw, 2.7rem);

    line-height: 1.2;

    margin-bottom: 12px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
}


/* ========================================
   EYEBROW
======================================== */

.eyebrow {
    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 10px;
}


/* ========================================
   BUTTONS
======================================== */

.primary-button {
    display: inline-block;

    border: none;
    border-radius: 50px;

    padding: 13px 27px;

    background: var(--primary);
    color: var(--white);

    font-weight: 600;

    box-shadow:
        0 7px 18px rgba(91, 80, 73, 0.16);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.primary-button:hover {
    background: var(--accent);

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(143, 168, 181, 0.22);
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: calc(100vh - 75px);

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #F5F1EC 0%,
            #EDE8E2 48%,
            #DCE6EA 100%
        );
}

.hero-content {
    width: min(1100px, 92%);

    margin: auto;
}

.hero-content h1 {
    max-width: 760px;

    color: var(--primary);

    font-family: "Montserrat", sans-serif;

    font-size: clamp(2.7rem, 8vw, 5rem);

    line-height: 1.07;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 560px;

    color: var(--muted);

    font-size: 1.05rem;

    margin-bottom: 30px;
}


/* ========================================
   EXPLORE GRID
======================================== */

.explore-grid {
    display: grid;

    /* Mobile-first */
    grid-template-columns: 1fr;

    gap: 25px;
}

.explore-card {
    background: var(--card);

    padding: 30px;

    border-radius: 20px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-hover);

    border-color: var(--accent);
}


/* ========================================
   CARD ICON
======================================== */

.card-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--soft);

    border-radius: 16px;

    font-size: 1.45rem;

    margin-bottom: 20px;
}

.explore-card h3 {
    color: var(--primary);

    font-family: "Montserrat", sans-serif;

    font-size: 1.2rem;

    margin-bottom: 10px;
}

.explore-card p {
    color: var(--muted);

    margin-bottom: 18px;
}


/* ========================================
   CARD BUTTON
======================================== */

.card-button {
    border: none;

    background: transparent;

    color: var(--primary);

    font-weight: 700;

    padding: 0;

    transition: color 0.25s ease;
}

.card-button:hover {
    color: var(--accent);
}


/* ========================================
   DAILY TIPS
======================================== */

.tips {
    width: 100%;
    max-width: none;

    padding-left: 5%;
    padding-right: 5%;

    background:
        linear-gradient(
            135deg,
            #5B5049 0%,
            #4C4743 100%
        );

    color: var(--white);
}

.tips .section-heading h2 {
    color: var(--white);
}

.tips .section-heading p:not(.eyebrow) {
    color: #E9E4DF;
}

.tips .eyebrow {
    color: #B8CDD7;
}

#tipText {
    font-size: clamp(1.1rem, 3vw, 1.6rem);

    margin-bottom: 25px;
}

.tips .primary-button {
    background: var(--accent);
}

.tips .primary-button:hover {
    background: var(--white);

    color: var(--primary);
}


/* ========================================
   DAILY PLANNER
======================================== */

.planner-box {
    max-width: 750px;

    margin: auto;

    padding: 30px;

    background: var(--card);

    border-radius: 20px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}


/* ========================================
   TASK INPUT
======================================== */

.task-input {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.task-input input {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 13px 15px;

    background: var(--bg);

    color: var(--text);

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.task-input input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(143, 168, 181, 0.18);
}


/* ========================================
   TASK MESSAGE
======================================== */

.task-message {
    min-height: 25px;

    margin-top: 10px;

    color: #9B4D4D;

    font-size: 0.9rem;
}


/* ========================================
   TASK LIST
======================================== */

.task-list {
    list-style: none;

    margin-top: 15px;
}

.task-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 4px;

    border-bottom: 1px solid var(--border);
}

.task-item span {
    overflow-wrap: anywhere;
}

.task-item.completed span {
    text-decoration: line-through;

    opacity: 0.5;
}


/* ========================================
   TASK ACTIONS
======================================== */

.task-actions {
    display: flex;

    gap: 8px;

    flex-shrink: 0;
}

.task-actions button {
    border: none;

    background: var(--soft);

    color: var(--primary);

    padding: 7px 10px;

    border-radius: 8px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.task-actions button:hover {
    background: var(--primary);

    color: var(--white);
}

.task-empty {
    padding: 24px 4px;

    color: var(--muted);

    text-align: center;

    font-size: 0.95rem;
}


/* ========================================
   CONTACT FORM
======================================== */

.contact-form {
    max-width: 650px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-group label {
    color: var(--primary);

    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 13px 15px;

    background: var(--card);

    color: var(--text);

    outline: none;

    resize: vertical;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(143, 168, 181, 0.18);
}

.form-message {
    min-height: 25px;

    color: var(--primary);

    font-weight: 600;
}

.form-message.success {
    color: var(--primary);
}

.form-message.error {
    color: #9B4D4D;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--footer);

    color: var(--white);

    padding: 55px 4% 25px;
}

.footer-content {
    width: min(1100px, 92%);

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 30px;
}

.footer-content h3 {
    font-family: "Montserrat", sans-serif;

    margin-bottom: 5px;
}

.footer-content p {
    color: #E3DDD8;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 22px;
}

.footer-links a {
    color: #E3DDD8;

    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #B8CDD7;
}

.copyright {
    width: min(1100px, 92%);

    margin: 35px auto 0;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.14);

    font-size: 0.84rem;

    color: #C9C2BC;
}


/* ========================================
   TABLET
   768px
======================================== */

@media (min-width: 768px) {

    .nav-links {
        position: static;

        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 28px;

        margin-left: auto;

        padding: 0;

        background: transparent;

        border: none;

        border-radius: 0;

        box-shadow: none;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        padding: 0;

        border-radius: 0;
    }

    .nav-links a:hover {
        background: transparent;
    }

    .menu-toggle {
        display: none;
    }

    .explore-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .task-input {
        flex-direction: row;
    }

    .task-input input {
        flex: 1;
    }

    .footer-content {
        flex-direction: row;

        align-items: center;

        justify-content: space-between;
    }
}


/* ========================================
   DESKTOP
   1024px
======================================== */

@media (min-width: 1024px) {

    .section {
        padding: 90px 0;
    }

    .explore-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


/* ========================================
   DARK MODE
======================================== */

body.dark-mode {
    --bg: #252321;

    --primary: #E8E0D9;

    --secondary: #B8ACA2;

    --accent: #9FB9C5;

    --card: #302E2B;

    --text: #F0EBE6;

    --muted: #C0B8B1;

    --soft: #3C3936;

    --border: #4A4642;

    --footer: #1D1C1A;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.20);

    --shadow-hover:
        0 18px 40px rgba(0, 0, 0, 0.28);
}

body.dark-mode .site-header {
    background: rgba(37, 35, 33, 0.95);
}

body.dark-mode .hero {
    background:
        linear-gradient(
            135deg,
            #252321 0%,
            #302E2B 50%,
            #35434A 100%
        );
}

body.dark-mode .tips {
    background:
        linear-gradient(
            135deg,
            #302E2B 0%,
            #1D1C1A 100%
        );
}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}


/* ========================================
   TEXT SELECTION
======================================== */

::selection {
    background: var(--accent);

    color: var(--text);
}


/* ========================================
   DISABLED BUTTON
======================================== */

button:disabled {
    cursor: not-allowed;

    opacity: 0.6;
}