/*
 * Creative Home Stylesheet
 * Defines colour palette, typography, responsive layouts, and component styles.
 */

/* Colour palette extracted from the logo */
:root {
    --brand-1: #2a2c6b;   /* deep navy */
    --brand-2: #5e89bf;   /* medium blue */
    --brand-3: #914585;   /* purple accent */
    --brand-4: #e09474;   /* warm orange accent */
    --text: #121423;
    --muted: #5b6075;
    --border: #e9eaf2;
    --bg: #ffffff;
    --soft: #f7f8fc;
    --shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
    --shadow-sm: 0 6px 14px rgba(16, 24, 40, 0.06);
    --radius: 14px;
    --max-width: 1120px;
}

/* Base styles */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

/* Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}
.brand img {
    /* Restrict the logo to a reasonable size on all screens */
    width: auto;
    height: 64px;
    max-height: 64px;
    object-fit: contain;
}
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.nav-toggle-label span {
    width: 18px;
    height: 2px;
    background: var(--brand-1);
    margin: 4px 0;
    display: block;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.main-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}
.main-nav a:hover {
    background: rgba(94, 137, 191, 0.12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.btn:active {
    transform: translateY(1px);
}
.btn-primary {
    background: var(--brand-2);
    color: #fff;
}
.btn-primary:hover {
    box-shadow: var(--shadow);
}
.btn-accent {
    background: var(--brand-4);
    color: #fff;
}
.btn-accent:hover {
    box-shadow: var(--shadow);
}
.btn-outline {
    background: #fff;
    border: 1px solid rgba(42, 44, 107, 0.2);
    color: var(--brand-1);
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(94, 137, 191, 0.1);
    box-shadow: var(--shadow-sm);
}

/* Section styles */
.section {
    padding: 64px 0;
}
.section-soft {
    background: var(--soft);
}
.section-title {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--brand-1);
    font-weight: 700;
}
.section-desc {
    margin: 0 0 20px;
    color: var(--muted);
    max-width: 75ch;
    font-size: 1rem;
    line-height: 1.6;
}

/* Hero section */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}
.hero-text h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    color: var(--brand-1);
    line-height: 1.1;
}
.lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(42, 44, 107, 0.15);
    background: #fff;
    color: var(--brand-1);
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}
.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Card */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.card h3 {
    margin: 0 0 8px;
    color: var(--brand-1);
    font-size: 1.15rem;
}
.card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}
.card.quote p {
    font-style: italic;
}
.quote-by {
    display: block;
    margin-top: 10px;
    color: var(--brand-1);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Project section */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.project-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
}
.checklist {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.checklist li {
    position: relative;
    padding-left: 26px;
    color: #2a2f44;
    font-size: 1rem;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-2);
    font-weight: 700;
}
.qr-box {
    margin: 16px 0 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.qr-box img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.qr-box span {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 700;
}
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.highlights {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}
.highlight-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.highlight-card h4 {
    margin: 0 0 8px;
    color: var(--brand-1);
    font-size: 1rem;
}
.hl-grid {
    display: grid;
    gap: 8px;
}
.hl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2a2f44;
    font-size: 0.95rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-2);
    flex-shrink: 0;
}
.dot-accent {
    background: var(--brand-4);
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(94, 137, 191, 0.65);
    box-shadow: 0 0 0 4px rgba(94, 137, 191, 0.2);
    outline: none;
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form button {
    align-self: flex-start;
    border: none;
}
.contact-list {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.contact-label {
    min-width: 80px;
    color: var(--muted);
    font-weight: 700;
}
.contact-value a {
    color: var(--brand-2);
    font-weight: 700;
}
.contact-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    background: #fff;
}
.site-footer p {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .highlights {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 820px) {
    .nav-toggle-label {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0.5rem;
        left: 0.5rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    .main-nav a {
        width: 100%;
    }
    .nav-cta {
        width: 100%;
        text-align: center;
    }
    /* Show nav when checkbox is checked */
    .nav-toggle:checked + .nav-toggle-label + .main-nav {
        display: flex;
    }
}
@media (max-width: 560px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
