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

:root {
    --terracotta:    #c75c2e;
    --terracotta-dk: #a8471e;
    --terracotta-lt: #e8a07a;
    --olive:         #5a6e3c;
    --olive-dk:      #3f4e29;
    --olive-lt:      #8fa76a;
    --cream:         #fdf8f0;
    --cream-dk:      #f5eadb;
    --gold:          #d4a855;
    --gold-lt:       #f0deb8;
    --red:           #c23535;
    --red-lt:        #f2d5d5;
    --green-flag:    #009246;
    --white-flag:    #ffffff;
    --red-flag:      #ce2b37;
    --text:          #3b2e24;
    --text-light:    #6e5d52;
    --white:         #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-dk); }

/* ── Navigation ───────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253,248,240,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-dk);
    transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(59,46,36,.1); }

.nav-inner {
    max-width: 1100px; margin: 0 auto;
    padding: .85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 700;
    color: var(--olive-dk);
}
.nav-logo span { color: var(--terracotta); }

.nav-flag {
    display: inline-flex; gap: 0; margin-left: .5rem;
    border-radius: 2px; overflow: hidden;
    vertical-align: middle;
}
.nav-flag span { width: 6px; height: 12px; display: inline-block; }
.nav-flag .g { background: var(--green-flag); }
.nav-flag .w { background: var(--white-flag); border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.nav-flag .r { background: var(--red-flag); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: .9rem; font-weight: 500; color: var(--text-light);
    position: relative; padding-bottom: 2px;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--terracotta);
    transition: width .25s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--olive-dk);
    margin: 5px 0; transition: .3s;
}

/* ── Intro ─────────────────────────────────────── */
.intro {
    text-align: center;
    padding: 7rem 1.5rem 3.5rem;
    background: var(--cream);
}
.intro-inner { max-width: 700px; margin: 0 auto; }

.hero-flag {
    display: inline-flex; gap: 0; margin-bottom: 1.5rem;
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.hero-flag span { width: 28px; height: 20px; display: block; }
.hero-flag .green  { background: var(--green-flag); }
.hero-flag .white  { background: var(--white-flag); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.hero-flag .red    { background: var(--red-flag); }

.intro h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    color: var(--olive-dk);
    margin-bottom: .75rem;
}
.intro h1 em { font-style: italic; color: var(--terracotta); }

.intro-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    padding: .9rem 2.4rem;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dk));
    color: var(--white);
    font-weight: 600; font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(199,92,46,.4);
    transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(199,92,46,.5);
    color: var(--white);
}

/* ── Section scaffolding ──────────────────────── */
.section { padding: 5rem 1.5rem; }
.section--cream { background: var(--cream); }
.container { max-width: 1100px; margin: 0 auto; }

.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--olive-dk);
    margin-bottom: .5rem;
}
.section-heading p {
    color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto;
}
.section-heading .accent-line {
    width: 50px; height: 3px;
    border-radius: 2px;
    margin: .75rem auto 0;
}
.accent-line--terracotta { background: linear-gradient(90deg, var(--terracotta), var(--terracotta-lt)); }
.accent-line--gold { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }

/* ── Photo collage ─────────────────────────────── */
.collage {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}
.collage-item { aspect-ratio: 1; overflow: hidden; position: relative; }
.collage-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.collage-item:hover img { transform: scale(1.08); }

/* ── About ─────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.about-img-wrap { position: relative; width: fit-content; }
.about-img {
    position: relative; z-index: 1;
    border-radius: 16px;
    overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 2rem; color: var(--olive-dk); margin-bottom: 1rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; }
.about-highlights {
    list-style: none; margin-top: 1.5rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
}
.about-highlights li {
    display: flex; align-items: center; gap: .5rem;
    font-size: .95rem; color: var(--text);
}
.about-highlights li::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
}

/* ── Services ──────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    border: 1px solid var(--cream-dk);
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59,46,36,.1);
}
.service-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-icon--green { background: linear-gradient(135deg, #d4e8c4, #e8f3df); }
.service-icon--terra { background: linear-gradient(135deg, #f5d5c0, #fceee4); }
.service-icon--gold  { background: linear-gradient(135deg, var(--gold-lt), #faf2e0); }
.service-icon--red   { background: linear-gradient(135deg, var(--red-lt), #faeaea); }
.service-card h3 { font-size: 1.2rem; color: var(--olive-dk); margin-bottom: .5rem; }
.service-card p { font-size: .95rem; color: var(--text-light); }

/* ── How it works ──────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dk));
    color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(199,92,46,.25);
}
.step h3 { font-size: 1.1rem; color: var(--olive-dk); margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--text-light); }

/* ── Phrase of the Day ─────────────────────────── */
.phrase-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--cream-dk);
    box-shadow: 0 4px 24px rgba(59,46,36,.06);
}
.phrase-label {
    display: inline-block;
    font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--white);
    background: var(--terracotta);
    padding: .3rem .9rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.phrase-italian {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--olive-dk);
    margin-bottom: .5rem;
}
.phrase-pronunciation {
    font-size: .9rem;
    color: var(--terracotta);
    margin-bottom: .75rem;
    font-weight: 500;
}
.phrase-english {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.phrase-context {
    font-size: .9rem;
    color: var(--text-light);
    font-style: italic;
    background: var(--cream);
    padding: .75rem 1.25rem;
    border-radius: 10px;
    display: inline-block;
}
.phrase-nav {
    display: flex; justify-content: center; gap: 1rem; margin-top: 1.25rem;
}
.phrase-nav button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid var(--cream-dk);
    background: var(--white);
    color: var(--olive-dk);
    font-size: 1rem; cursor: pointer;
    transition: background .2s, border-color .2s;
    display: flex; align-items: center; justify-content: center;
}
.phrase-nav button:hover {
    background: var(--cream);
    border-color: var(--terracotta);
}

/* ── Pricing banner ────────────────────────────── */
.pricing-section {
    position: relative;
    padding: 5rem 1.5rem;
    background:
        url('https://images.unsplash.com/photo-1534445867742-43195f401b6c?w=1920&q=80')
        center / cover no-repeat;
}
.pricing-section::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(63,78,41,.82);
}
.pricing-banner {
    position: relative; z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 650px;
    margin: 0 auto;
}
.pricing-banner h2 { font-size: 2rem; margin-bottom: .5rem; }
.pricing-banner p { font-size: 1.05rem; opacity: .9; margin-bottom: 1.5rem; }
.pricing-banner .cta-light {
    display: inline-block;
    padding: .8rem 2.2rem;
    background: var(--white);
    color: var(--olive-dk);
    font-weight: 600; border-radius: 50px;
    transition: transform .2s, box-shadow .2s;
}
.pricing-banner .cta-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    color: var(--terracotta-dk);
}

/* ── Latest posts preview ──────────────────────── */
.posts-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Contact ───────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 { font-size: 2rem; color: var(--olive-dk); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 2rem; }
.contact-detail {
    display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.contact-detail-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #f5d5c0, #fceee4);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.contact-detail h4 { font-size: .85rem; color: var(--terracotta); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-detail p { font-size: .95rem; color: var(--text-light); margin-top: .15rem; }

.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 2.25rem;
    border: 1px solid var(--cream-dk);
    box-shadow: 0 4px 24px rgba(59,46,36,.06);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: .85rem; font-weight: 500;
    color: var(--text); margin-bottom: .35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--cream-dk);
    border-radius: 10px;
    font-family: inherit; font-size: .95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(199,92,46,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
    width: 100%;
    padding: .85rem;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dk));
    color: var(--white);
    font-weight: 600; font-size: 1rem;
    border: none; border-radius: 50px; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(199,92,46,.35);
}
.form-note {
    text-align: center; margin-top: .75rem;
    font-size: .8rem; color: var(--text-light);
}

/* ── Blog ──────────────────────────────────────── */
.page-header {
    text-align: center;
    padding: 7rem 1.5rem 2.5rem;
    background: var(--cream);
}
.page-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--olive-dk);
    margin-bottom: .5rem;
}
.page-header p {
    font-size: 1.1rem; color: var(--text-light);
    max-width: 550px; margin: 0 auto;
}

.filters {
    display: flex; justify-content: center; gap: .75rem;
    padding: 1rem 1.5rem 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: .5rem 1.25rem;
    border-radius: 50px;
    border: 1.5px solid var(--cream-dk);
    background: var(--white);
    font-family: inherit; font-size: .85rem; font-weight: 500;
    color: var(--text-light); cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}
.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-btn.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.blog-grid {
    max-width: 1100px; margin: 0 auto;
    padding: 0 1.5rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cream-dk);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59,46,36,.1);
    color: inherit;
}
.blog-card-img {
    height: 180px;
    background: center / cover no-repeat;
}
.blog-card-body { padding: 1.5rem; }
.blog-tag {
    display: inline-block;
    font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    padding: .25rem .7rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.blog-tag--culture { background: #e8f3df; color: var(--olive); }
.blog-tag--sayings { background: #fceee4; color: var(--terracotta); }
.blog-tag--grammar { background: #e8e0f5; color: #5b3d8f; }
.blog-card-body h3 { font-size: 1.15rem; color: var(--olive-dk); margin-bottom: .5rem; }
.blog-card-body p { font-size: .92rem; color: var(--text-light); margin-bottom: 1rem; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--terracotta); }

/* ── Blog post detail ─────────────────────────── */
.blog-post-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}
.blog-post-back {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .9rem; font-weight: 500; color: var(--terracotta);
    margin-bottom: 2rem;
}
.blog-post-back:hover { color: var(--terracotta-dk); }
.blog-post-detail h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--olive-dk);
    margin-bottom: .5rem;
}
.blog-post-meta {
    font-size: .9rem; color: var(--text-light); margin-bottom: 2rem;
}
.blog-post-content {
    font-size: 1rem; line-height: 1.8; color: var(--text-light);
}
.blog-post-content h2,
.blog-post-content h3 {
    color: var(--olive-dk);
    margin: 2rem 0 .75rem;
}
.blog-post-content h2 { font-size: 1.5rem; }
.blog-post-content h3 { font-size: 1.25rem; }
.blog-post-content p { margin-bottom: 1.25rem; }
.blog-post-content ul, .blog-post-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}
.blog-post-content li { margin-bottom: .5rem; }
.blog-post-content blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--terracotta);
    background: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--terracotta);
    margin: 1.25rem 0;
}

/* ── Footer ────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--olive-dk);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
}
.footer a { color: var(--gold-lt); }
.footer a:hover { color: var(--white); }
.footer-links {
    list-style: none; display: flex; justify-content: center; gap: 1.5rem;
    margin-bottom: .75rem;
}
.footer-flag {
    display: inline-flex; gap: 0; margin-bottom: .75rem;
    border-radius: 2px; overflow: hidden;
}
.footer-flag span { width: 18px; height: 12px; display: inline-block; }
.footer-flag .g { background: var(--green-flag); }
.footer-flag .w { background: var(--white-flag); }
.footer-flag .r { background: var(--red-flag); }

/* ── Fade-in animation ─────────────────────────── */
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
    .collage { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--cream-dk);
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
        gap: .5rem;
    }
    .nav-toggle { display: block; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-img-wrap { max-width: 320px; margin: 0 auto; }
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .posts-preview { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .collage { grid-template-columns: repeat(3, 1fr); }
}
