/* filename: static/css/ackordio.css */

/* ============================================================
   Ackordio refined visual design
   Clean, light, full-width restoration and repair website
   ============================================================ */

:root {
    --bg: #f6f7f5;
    --white: #ffffff;
    --cream: #fbfaf6;
    --soft: #edf3f4;
    --soft-blue: #e7f0f2;
    --text: #1f2933;
    --muted: #586774;
    --faint: #7a8792;
    --border: #d9e1e4;
    --accent: #2f6577;
    --accent-dark: #234c5a;
    --gold: #b89b5e;
    --gold-soft: #f3ead5;
    --shadow: 0 14px 38px rgba(31, 41, 51, 0.08);
    --shadow-hover: 0 24px 62px rgba(31, 41, 51, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

.container {
    width: 100%;
    max-width: none;
    padding-left: clamp(1rem, 5vw, 5rem);
    padding-right: clamp(1rem, 5vw, 5rem);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.055);
    backdrop-filter: blur(10px);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nav nav a {
    color: var(--text);
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.nav nav a:hover {
    color: var(--accent);
    background: var(--soft);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(184, 155, 94, 0.18), transparent 30%),
        radial-gradient(circle at 12% 8%, rgba(47, 101, 119, 0.09), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #eef4f5 100%);
    border-bottom: 1px solid var(--border);
    padding: clamp(4.5rem, 8vw, 8.5rem) 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto clamp(1rem, 5vw, 5rem) -120px auto;
    width: min(460px, 42vw);
    height: min(460px, 42vw);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(47, 101, 119, 0.13), rgba(184, 155, 94, 0.13));
    pointer-events: none;
}

.kicker {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero h1 {
    position: relative;
    max-width: 1180px;
    margin: 0;
    color: var(--text);
    font-size: clamp(2.6rem, 5.2vw, 5.3rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-text {
    position: relative;
    max-width: 940px;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(47, 101, 119, 0.2);
}

.button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff;
}

.button-light {
    background: #ffffff;
    color: var(--accent);
    box-shadow: none;
}

.button-light:hover {
    background: var(--soft);
    color: var(--accent-dark);
}

/* Sections */

.section {
    padding: clamp(3.6rem, 6vw, 6.5rem) 0;
}

.section-white {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 1000px;
    margin-bottom: 2.2rem;
}

.section-heading h2 {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p {
    max-width: 900px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

/* Cards */

.card-grid {
    display: grid;
    gap: 1.4rem;
    align-items: stretch;
}

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

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

.card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: rgba(184, 155, 94, 0.09);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #b8c9cf;
    background: #ffffff;
    box-shadow: var(--shadow-hover);
}

.card h3 {
    position: relative;
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: 1.22rem;
    line-height: 1.22;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.card a {
    position: relative;
    margin-top: auto;
    padding-top: 1.15rem;
    color: var(--accent);
    font-weight: 850;
    text-decoration: none;
}

.card a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Add visual difference between service, archive and learn cards */
.section:nth-of-type(2) .card {
    background: #ffffff;
}

.section-white .card {
    background: var(--cream);
}

.section:nth-of-type(4) .card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

/* Footer */

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 3.4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 0.65rem;
    color: var(--text);
    letter-spacing: -0.025em;
}

.site-footer h2 {
    font-size: 1.65rem;
}

.site-footer h3 {
    font-size: 1.1rem;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

/* Responsive */

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav nav {
        gap: 0.5rem;
    }

    .nav nav a {
        padding-left: 0;
    }

    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .card {
        min-height: auto;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}

/* Footer legal refinement */

.footer-small {
    margin-top: 1rem !important;
    font-size: 0.92rem;
    color: var(--faint) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef3f4 100%);
    border-bottom: 1px solid var(--border);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.page-hero h1 {
    max-width: 1100px;
    margin: 0;
    color: var(--text);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-content {
    max-width: 980px;
}

.page-content p {
    color: var(--muted);
    font-size: 1.08rem;
}

/* Footer location/contact refinement */

.footer-grid-wide {
    grid-template-columns: 1.3fr 1.2fr 0.8fr 0.9fr 0.9fr;
}

.footer-links strong {
    color: var(--text);
    font-weight: 850;
}

@media (max-width: 1200px) {
    .footer-grid-wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .footer-grid-wide {
        grid-template-columns: 1fr;
    }
}

/* Proper legal page styling */

.legal-content {
    max-width: 980px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}

.legal-content h2 {
    margin-top: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 1.2rem;
}

.legal-content p {
    color: var(--muted);
    font-size: 1.04rem;
}

.footer-small {
    margin-top: 1rem !important;
    font-size: 0.92rem;
    color: var(--faint) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Refined legal page layout */

.page-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(184, 155, 94, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #eef3f4 100%);
    border-bottom: 1px solid var(--border);
    padding: clamp(3.2rem, 6vw, 5.8rem) 0;
}

.page-hero h1 {
    max-width: 1100px;
    margin: 0;
    color: var(--text);
    font-size: clamp(2.3rem, 4.8vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero .hero-text {
    max-width: 860px;
    margin-top: 1rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.legal-content {
    max-width: 980px;
    margin-left: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3.2rem);
    box-shadow: var(--shadow);
}

.legal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.25;
}

.legal-content p {
    max-width: 860px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.legal-content p:first-child {
    font-size: 1.12rem;
    color: var(--text);
}

.legal-content a {
    font-weight: 800;
}


/* Confirmed layout refinement */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-copy {
    max-width: 1180px;
}

.hero-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

.panel-label {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-panel ul {
    margin: 0;
    padding-left: 1.1rem;
}

.hero-panel li {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.feature-card {
    position: relative;
    min-height: 245px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card-large {
    grid-column: span 2;
    background:
        radial-gradient(circle at 85% 18%, rgba(184,155,94,0.18), transparent 30%),
        linear-gradient(135deg, #ffffff, #eef3f4);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #b8c9cf;
    box-shadow: var(--shadow-hover);
}

.card-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--soft);
    color: var(--accent);
    font-weight: 900;
    font-size: 1.15rem;
}

.feature-card h3 {
    margin: 0 0 0.65rem;
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.page-shell {
    display: flex;
    justify-content: center;
}

.page-shell .legal-content {
    width: min(980px, 100%);
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .feature-card-large {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .feature-card-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-column: span 1;
    }

    .hero-panel {
        padding: 1.25rem;
    }
}

/* Smaller next-level page hero */

.page-hero {
    padding: clamp(1.6rem, 3vw, 2.8rem) 0 !important;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
}

.page-hero .hero-text {
    max-width: 760px !important;
    margin-top: 0.65rem !important;
    font-size: clamp(0.98rem, 1.4vw, 1.12rem) !important;
}

.page-hero .kicker {
    margin-bottom: 0.45rem !important;
    font-size: 0.74rem !important;
}


/* Standard content page layout for Projects, Learn and Contact */

.standard-content {
    max-width: 1180px;
    margin: 0 auto;
    background: transparent;
}

.standard-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.standard-content > p {
    max-width: 900px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.standard-content h3 {
    position: relative;
    margin: 0;
    color: var(--text);
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.standard-content h3 + p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Turn rich text h3+p pairs into attractive content cards */
.standard-content h3 {
    margin-top: 1.2rem;
}

.standard-content h3,
.standard-content h3 + p {
    display: block;
}

.standard-content h3 {
    background: #ffffff;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    padding: 1.35rem 1.45rem 0.2rem;
    box-shadow: 0 10px 28px rgba(31,41,51,0.06);
}

.standard-content h3 + p {
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 22px 22px;
    padding: 0.4rem 1.45rem 1.35rem;
    box-shadow: 0 16px 34px rgba(31,41,51,0.08);
}

.standard-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.2rem;
    bottom: -3.2rem;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

@media (min-width: 900px) {
    .standard-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .standard-content h2,
    .standard-content > p {
        grid-column: 1 / -1;
    }

    .standard-content h3 {
        margin-top: 0;
    }
}

@media (max-width: 899px) {
    .standard-content h3 {
        margin-top: 1.2rem;
    }
}

/* Designed Contact page */

.contact-section {
    background:
        radial-gradient(circle at 90% 12%, rgba(184, 155, 94, 0.12), transparent 28%),
        linear-gradient(180deg, #f6f7f5 0%, #ffffff 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 1.6rem;
    align-items: stretch;
}

.contact-main-card,
.contact-side-card,
.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.contact-main-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.7rem, 4vw, 3rem);
}

.contact-main-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

.contact-main-card h2 {
    max-width: 860px;
    margin: 0 0 1rem;
    color: var(--text);
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.contact-main-card p {
    max-width: 800px;
    margin: 0 0 1.7rem;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
}

.contact-email-card {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: min(100%, 420px);
    padding: 1.1rem 1.3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(47, 101, 119, 0.22);
}

.contact-email-card:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-email-card span {
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.88;
}

.contact-email-card strong {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    letter-spacing: -0.02em;
}

.contact-side-card {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-side-card h3,
.contact-info-card h3 {
    margin: 0 0 0.8rem;
    color: var(--text);
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.contact-side-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.contact-side-card li {
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-weight: 700;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.4rem;
}

.contact-info-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

.contact-info-card h3,
.contact-info-card p {
    margin-left: 0.45rem;
}

.contact-info-card p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 950px) {
    .contact-layout,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }
}


/* Refined old-style homepage title */

.hero h1 {
    max-width: 980px !important;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif !important;
    font-style: italic !important;
    font-weight: 500 !important;
    font-size: clamp(2.05rem, 3.8vw, 4.05rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.025em !important;
    color: #24313a !important;
}

.hero h1::first-letter {
    font-size: 1.12em;
}

.hero .kicker {
    letter-spacing: 0.18em !important;
    font-size: 0.76rem !important;
}

@media (max-width: 720px) {
    .hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.8rem) !important;
        line-height: 1.16 !important;
    }
}


/* Tightened homepage hero spacing and gold refined title */

.hero {
    padding: clamp(2.2rem, 4.5vw, 4.6rem) 0 clamp(2.3rem, 4.5vw, 4.8rem) !important;
}

.hero h1 {
    color: #9b762c !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero .kicker {
    margin-bottom: 0.55rem !important;
}

.hero-text {
    margin-top: 1rem !important;
}

.actions {
    margin-top: 1.4rem !important;
}

.hero-panel {
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
}

.section {
    padding-top: clamp(2.6rem, 4.5vw, 4.8rem) !important;
    padding-bottom: clamp(2.8rem, 5vw, 5.2rem) !important;
}

.hero + .section {
    padding-top: clamp(2.2rem, 4vw, 4rem) !important;
}

@media (max-width: 720px) {
    .hero {
        padding: 2rem 0 2.4rem !important;
    }

    .hero-text {
        margin-top: 0.85rem !important;
    }

    .actions {
        margin-top: 1.1rem !important;
    }
}


/* Two-column Services section with thumbnail image column */

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(1.8rem, 4vw, 3.5rem);
    align-items: start;
}

.services-left .section-heading {
    margin-bottom: 1.5rem;
}

.services-left .feature-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-left .feature-card-large {
    grid-column: span 2;
}

.services-images {
    position: sticky;
    top: 5.5rem;
    display: grid;
    gap: 1rem;
}

.service-thumb {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.service-thumb img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.service-thumb-large img {
    height: 215px;
}

.service-thumb figcaption {
    padding: 0.75rem 0.95rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.35;
}

@media (max-width: 1050px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-images {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-thumb img,
    .service-thumb-large img {
        height: 150px;
    }
}

@media (max-width: 760px) {
    .services-left .feature-card-grid,
    .services-images {
        grid-template-columns: 1fr;
    }

    .services-left .feature-card-large {
        grid-column: span 1;
    }
}


/* Corrected Services intro layout: two columns only above cards */

.services-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    gap: clamp(1.4rem, 3vw, 2.5rem);
    align-items: end;
    margin-bottom: 1.6rem;
}

.services-intro-layout .section-heading {
    margin-bottom: 0 !important;
}

.services-inline-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
}

.services-inline-images figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
}

.services-inline-images img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: cover;
}

/* Restore normal cards below Services intro */
.services-section > .container > .feature-card-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.4rem !important;
}

.services-section > .container > .feature-card-grid .feature-card-large {
    grid-column: span 2 !important;
}

@media (max-width: 1050px) {
    .services-intro-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .services-inline-images {
        max-width: 520px;
    }

    .services-section > .container > .feature-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .services-inline-images {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .services-inline-images img {
        height: 90px;
    }

    .services-section > .container > .feature-card-grid {
        grid-template-columns: 1fr !important;
    }

    .services-section > .container > .feature-card-grid .feature-card-large {
        grid-column: span 1 !important;
    }
}


/* Services inline images refined: larger and more landscape */

.services-intro-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 540px) !important;
    gap: clamp(1.5rem, 3vw, 2.7rem) !important;
}

.services-inline-images {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    align-items: end !important;
}

.services-inline-images figure {
    border-radius: 18px !important;
}

.services-inline-images img {
    width: 100% !important;
    height: 148px !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 1050px) {
    .services-intro-layout {
        grid-template-columns: 1fr !important;
    }

    .services-inline-images {
        max-width: 620px !important;
    }

    .services-inline-images img {
        height: 138px !important;
    }
}

@media (max-width: 720px) {
    .services-inline-images img {
        height: 108px !important;
    }
}


/* Services inline images: larger again and no cropping */

.services-intro-layout {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 675px) !important;
}

.services-inline-images {
    gap: 1rem !important;
}

.services-inline-images figure {
    background: #ffffff !important;
}

.services-inline-images img {
    height: 185px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 0.25rem !important;
}

@media (max-width: 1050px) {
    .services-inline-images {
        max-width: 760px !important;
    }

    .services-inline-images img {
        height: 172px !important;
    }
}

@media (max-width: 720px) {
    .services-inline-images img {
        height: 135px !important;
    }
}


/* Services inline images: plain images only, no cards */

.services-inline-images {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: center !important;
}

.services-inline-images figure {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.services-inline-images img {
    display: block !important;
    width: 100% !important;
    height: 185px !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

@media (max-width: 720px) {
    .services-inline-images img {
        height: 135px !important;
    }
}


/* Compact service cards: icon inline with title */

.feature-card {
    min-height: 170px !important;
    padding: 1.2rem 1.25rem !important;
}

.feature-card .card-icon {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 0.65rem 0 0 !important;
    vertical-align: middle !important;
    border-radius: 11px !important;
    font-size: 1rem !important;
}

.feature-card h3 {
    display: inline !important;
    vertical-align: middle !important;
    margin: 0 !important;
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
}

.feature-card p {
    margin-top: 0.8rem !important;
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
}

/* Slightly stronger first service card, but still compact */
.feature-card-large {
    min-height: 170px !important;
}

@media (max-width: 720px) {
    .feature-card {
        min-height: auto !important;
        padding: 1.1rem !important;
    }
}


/* ============================================================
   Trial service card styles
   Each card deliberately uses a different style for review.
   ============================================================ */

/* Shared trial refinements */
.services-section .feature-card {
    border-radius: 22px !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

.services-section .feature-card:hover {
    transform: translateY(-3px) !important;
}

/* 1. Accordion Repair & Sales — Antique paper style */
.services-section .feature-card:nth-child(1) {
    background: linear-gradient(135deg, #fbf6e8 0%, #ffffff 100%) !important;
    border: 1px solid #e1d1a8 !important;
    box-shadow: 0 12px 28px rgba(126, 94, 35, 0.12) !important;
}

.services-section .feature-card:nth-child(1)::before {
    background: linear-gradient(180deg, #b08a38, #d4bd7a) !important;
}

.services-section .feature-card:nth-child(1) .card-icon {
    background: #f0e2bd !important;
    color: #8b661f !important;
}

/* 2. Violins & Violas — Soft blue-grey style */
.services-section .feature-card:nth-child(2) {
    background: linear-gradient(135deg, #eef5f7 0%, #ffffff 100%) !important;
    border: 1px solid #c9dce2 !important;
    box-shadow: 0 12px 28px rgba(47, 101, 119, 0.11) !important;
}

.services-section .feature-card:nth-child(2)::before {
    background: linear-gradient(180deg, #2f6577, #87aebb) !important;
}

.services-section .feature-card:nth-child(2) .card-icon {
    background: #dbecef !important;
    color: #2f6577 !important;
}

/* 3. Flutes & Guitars — Minimal refined border style */
.services-section .feature-card:nth-child(3) {
    background: #ffffff !important;
    border: 1px solid #d7dde0 !important;
    box-shadow: none !important;
}

.services-section .feature-card:nth-child(3)::before {
    background: #b89b5e !important;
}

.services-section .feature-card:nth-child(3) .card-icon {
    background: #f5f1e7 !important;
    color: #9b762c !important;
}

/* 4. Art Boxes & Decorative Objects — Warm gold accent style */
.services-section .feature-card:nth-child(4) {
    background:
        radial-gradient(circle at 90% 12%, rgba(184, 155, 94, 0.18), transparent 35%),
        linear-gradient(135deg, #fffdf7 0%, #f7efd8 100%) !important;
    border: 1px solid #dcc589 !important;
    box-shadow: 0 14px 34px rgba(184, 155, 94, 0.16) !important;
}

.services-section .feature-card:nth-child(4)::before {
    background: linear-gradient(180deg, #c6a14a, #8e6a24) !important;
}

.services-section .feature-card:nth-child(4) .card-icon {
    background: #ead8a8 !important;
    color: #7a581d !important;
}

/* 5. Antique Furniture — Heritage green-grey style */
.services-section .feature-card:nth-child(5) {
    background: linear-gradient(135deg, #eef2ec 0%, #ffffff 100%) !important;
    border: 1px solid #cfd8c8 !important;
    box-shadow: 0 12px 28px rgba(75, 96, 72, 0.12) !important;
}

.services-section .feature-card:nth-child(5)::before {
    background: linear-gradient(180deg, #667d5d, #b8a96f) !important;
}

.services-section .feature-card:nth-child(5) .card-icon {
    background: #dfe7d9 !important;
    color: #4e6748 !important;
}

/* 6. Small Projects — Dark refined feature card */
.services-section .feature-card:nth-child(6) {
    background: linear-gradient(135deg, #26333b 0%, #172229 100%) !important;
    border: 1px solid #33454f !important;
    box-shadow: 0 16px 38px rgba(23, 34, 41, 0.22) !important;
}

.services-section .feature-card:nth-child(6)::before {
    background: linear-gradient(180deg, #d6bd75, #8fb4bf) !important;
}

.services-section .feature-card:nth-child(6) h3 {
    color: #ffffff !important;
}

.services-section .feature-card:nth-child(6) p {
    color: #d8e1e5 !important;
}

.services-section .feature-card:nth-child(6) .card-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e4c779 !important;
}

/* Hover effects for comparison */
.services-section .feature-card:nth-child(1):hover,
.services-section .feature-card:nth-child(2):hover,
.services-section .feature-card:nth-child(4):hover,
.services-section .feature-card:nth-child(5):hover,
.services-section .feature-card:nth-child(6):hover {
    box-shadow: var(--shadow-hover) !important;
}

.services-section .feature-card:nth-child(3):hover {
    border-color: #b89b5e !important;
    box-shadow: 0 10px 26px rgba(31, 41, 51, 0.08) !important;
}


/* Final unified service card style
   Warm ivory background, gold/blue accent, softer shadow,
   compact height, gold-tinted icon badge, refined hover.
*/

.services-section .feature-card,
.services-section .feature-card:nth-child(1),
.services-section .feature-card:nth-child(2),
.services-section .feature-card:nth-child(3),
.services-section .feature-card:nth-child(4),
.services-section .feature-card:nth-child(5),
.services-section .feature-card:nth-child(6) {
    position: relative !important;
    min-height: 155px !important;
    padding: 1.1rem 1.2rem !important;
    background:
        linear-gradient(135deg, #fffaf0 0%, #ffffff 100%) !important;
    border: 1px solid #e4d7b7 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 24px rgba(79, 64, 35, 0.08) !important;
    overflow: hidden !important;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease !important;
}

.services-section .feature-card::before,
.services-section .feature-card:nth-child(1)::before,
.services-section .feature-card:nth-child(2)::before,
.services-section .feature-card:nth-child(3)::before,
.services-section .feature-card:nth-child(4)::before,
.services-section .feature-card:nth-child(5)::before,
.services-section .feature-card:nth-child(6)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 6px !important;
    background: linear-gradient(180deg, #b89545 0%, #2f6577 100%) !important;
}

.services-section .feature-card .card-icon,
.services-section .feature-card:nth-child(1) .card-icon,
.services-section .feature-card:nth-child(2) .card-icon,
.services-section .feature-card:nth-child(3) .card-icon,
.services-section .feature-card:nth-child(4) .card-icon,
.services-section .feature-card:nth-child(5) .card-icon,
.services-section .feature-card:nth-child(6) .card-icon {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    margin: 0 0.65rem 0 0 !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    border-radius: 10px !important;
    background: #efe0b7 !important;
    color: #8a6728 !important;
    font-size: 0.96rem !important;
    font-weight: 900 !important;
    box-shadow: inset 0 0 0 1px rgba(138, 103, 40, 0.12) !important;
}

.services-section .feature-card h3,
.services-section .feature-card:nth-child(1) h3,
.services-section .feature-card:nth-child(2) h3,
.services-section .feature-card:nth-child(3) h3,
.services-section .feature-card:nth-child(4) h3,
.services-section .feature-card:nth-child(5) h3,
.services-section .feature-card:nth-child(6) h3 {
    display: inline !important;
    margin: 0 !important;
    color: #26333b !important;
    font-size: 1.08rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    vertical-align: middle !important;
}

.services-section .feature-card p,
.services-section .feature-card:nth-child(1) p,
.services-section .feature-card:nth-child(2) p,
.services-section .feature-card:nth-child(3) p,
.services-section .feature-card:nth-child(4) p,
.services-section .feature-card:nth-child(5) p,
.services-section .feature-card:nth-child(6) p {
    margin: 0.72rem 0 0 !important;
    color: #5f6870 !important;
    font-size: 0.95rem !important;
    line-height: 1.52 !important;
}

.services-section .feature-card:hover,
.services-section .feature-card:nth-child(1):hover,
.services-section .feature-card:nth-child(2):hover,
.services-section .feature-card:nth-child(3):hover,
.services-section .feature-card:nth-child(4):hover,
.services-section .feature-card:nth-child(5):hover,
.services-section .feature-card:nth-child(6):hover {
    transform: translateY(-3px) !important;
    background:
        linear-gradient(135deg, #fff7e6 0%, #ffffff 100%) !important;
    border-color: #c9ae6d !important;
    box-shadow: 0 16px 34px rgba(79, 64, 35, 0.13) !important;
}

@media (max-width: 720px) {
    .services-section .feature-card {
        min-height: auto !important;
    }
}

