/* ============================================
   Hardy Tomas Piano Tuning & Repair
   Custom Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --cream-50:  #FFFDF9;
    --cream-100: #FFF8F0;
    --cream-200: #FEF3E4;
    --cream-300: #FDE8CC;
    --cream-400: #F5D4A8;
    --cream-500: #E8B87A;

    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--emerald-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--emerald-700);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--emerald-600);
    color: #fff;
    border-color: var(--emerald-600);
}

.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--emerald-700);
    border-color: #fff;
}

.btn-light:hover {
    background: var(--cream-100);
    color: var(--emerald-800);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-600);
    border-color: var(--emerald-600);
}

.btn-outline:hover {
    background: var(--emerald-600);
    color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--slate-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 60px;
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-subtitle {
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-800);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--slate-900);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--emerald-600);
}

.btn-nav {
    background: var(--emerald-600);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.btn-nav:hover {
    background: var(--emerald-700);
    color: #fff !important;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(4, 120, 87, 0.85) 50%, rgba(5, 150, 105, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: center;
    width: 100%;
    padding-top: 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream-100);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-300);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--cream-100);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--slate-100);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    color: #fff;
}

.service-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--slate-900);
}

.service-desc {
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--slate-600);
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald-400);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--cream-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -32px;
    right: -32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream-100);
}

.about-image-accent img {
    width: 240px;
    height: 180px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--emerald-600);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.about-badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.about-content {
    padding: 16px 0;
}

.about-text {
    font-size: 16px;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-700);
}

.about-feature-icon {
    width: 28px;
    height: 28px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Process --- */
.process {
    padding: 100px 0;
    background: #fff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    position: relative;
    padding: 36px 28px;
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    transition: all var(--transition);
}

.process-step:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--emerald-100);
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--slate-800);
}

.step-desc {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--emerald-900);
}

.testimonials .section-tag {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--emerald-300);
}

.testimonials .section-title {
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.author-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- CTA --- */
.cta {
    padding: 80px 0;
    background: var(--cream-100);
}

.cta-card {
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-600) 50%, var(--emerald-500) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-title {
    font-size: clamp(24px, 3vw, 36px);
    color: #fff;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 2px;
}

.contact-detail span,
.contact-detail a {
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--emerald-600);
}

.contact-map {
    margin-top: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--cream-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--slate-900);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--slate-800);
    background: #fff;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
    font-weight: 500;
    font-size: 15px;
}

.form-success i {
    font-size: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 16px;
    color: var(--slate-400);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 14px;
    color: var(--slate-400);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--emerald-500);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--slate-500);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
    }

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

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

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 253, 249, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--slate-100);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }

    .btn-nav {
        text-align: center;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-card {
        padding: 32px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-accent {
        right: 16px;
        bottom: -16px;
    }

    .about-image-main img {
        height: 360px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-card {
        padding: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .service-card, .process-step, .testimonial-card, .stat-card {
        transform: none !important;
    }
}
