@import url('https://fonts.googleapis.com/css2?family=Ballet&display=swap');

:root {
    --ink: #1a1612;
    --parchment: #f8f6f1;
    --aged-paper: #e8e3d6;
    --sepia: #8b7355;
    --burgundy: #6b2c3e;
    --gold: #b8945f;
    --shadow: rgba(26, 22, 18, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', serif;
    background: var(--parchment);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Ballet font drop capitals for main headings only (not subheadings) */
h1::first-letter,
h2::first-letter {
    font-family: 'Ballet', cursive;
    font-size: 1.4em;
    color: var(--burgundy);
    font-weight: normal;
}

/* Decorative header border pattern */
.decorative-border {
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--burgundy) 0px,
        var(--burgundy) 20px,
        var(--gold) 20px,
        var(--gold) 22px,
        var(--burgundy) 22px,
        var(--burgundy) 42px,
        transparent 42px,
        transparent 44px
    );
}

header {
    background: linear-gradient(135deg, var(--aged-paper) 0%, var(--parchment) 100%);
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px var(--shadow);
}

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

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-monogram {
    font-family: 'Ballet', cursive;
    font-size: 2.5rem;
    color: var(--burgundy);
    letter-spacing: -0.1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    color: var(--burgundy);
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--burgundy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hero {
    background: 
        linear-gradient(135deg, rgba(248, 246, 241, 0.92) 0%, rgba(232, 227, 214, 0.90) 100%),
        url('../images/hero-script.jpg') center center / cover no-repeat;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(248, 246, 241, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 0.1rem;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.hero-brand::first-letter {
    font-family: 'Ballet', cursive;
    font-size: 5.85rem;
    font-weight: normal;
}

.ballet-initial {
    font-family: 'Ballet', cursive;
    font-size: 5.85rem;
    font-weight: normal;
    line-height: 1;
}

.hero-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%) rotate(-15deg);
    width: 300px;
    height: 300px;
    background: url('../images/quill-feather.png') center center / contain no-repeat;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Ballet initials for Heritage Script in hero h1 - make Heritage Script bigger */
.hero-hs {
    font-family: 'Ballet', cursive;
    font-size: 1.6em;
    font-weight: normal;
    line-height: 1;
}

/* Override Ballet drop capital for hero h1 only */
.hero h1::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1em;
    font-weight: 600;
}

.hero .subtitle,
.hero .cta-button {
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

.page-hero h1 {
    font-size: 3rem;
}

.hero.page-hero::before {
    background: none;
}

.subtitle {
    font-size: 1.5rem;
    color: #5a4a3a;
    font-weight: 400;
    margin-bottom: 3rem;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    background: var(--burgundy);
    color: var(--parchment);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 44, 62, 0.3);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button:hover {
    background: #551e2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 44, 62, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--burgundy);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--ink);
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--ink);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 22, 18, 0.15);
}

.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.document-type {
    background: white;
    padding: 2rem;
    border-left: 3px solid var(--gold);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.document-type:hover {
    border-left-color: var(--burgundy);
    transform: translateX(5px);
}

.document-type h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.document-type p {
    font-size: 0.95rem;
    color: var(--sepia);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--burgundy);
    color: var(--parchment);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 60px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(107, 44, 62, 0.3);
}

.sample-section {
    background: white;
    padding: 3rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    margin: 3rem 0;
    box-shadow: 0 4px 20px var(--shadow);
}

.sample-box {
    background: var(--aged-paper);
    padding: 2rem;
    border-left: 4px solid var(--burgundy);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border: 2px solid rgba(139, 115, 85, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--burgundy);
    box-shadow: 0 8px 30px rgba(107, 44, 62, 0.2);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--burgundy);
    margin: 1.5rem 0;
}

.contact-section {
    background: linear-gradient(135deg, var(--aged-paper) 0%, var(--parchment) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.contact-details {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 4px 20px var(--shadow);
}

.contact-details p {
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.contact-details a {
    color: var(--burgundy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--gold);
    border-bottom-color: var(--burgundy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    background: white;
    border: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.gallery-caption {
    padding: 1.5rem;
}

footer {
    background: var(--ink);
    color: var(--parchment);
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero.page-hero {
        padding: 4rem 1rem 3rem;
    }

    .expertise-grid,
    .process-steps,
    .pricing-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}