:root {
    --background-color: #FFFFFF; /* White */
    --text-color: #333333; /* Charcoal */
    --header-text-color: #333333; /* Charcoal for logo/nav */
    --heading-color: #000000; /* Black */
    --accent-color: #C08081; /* Dusty Pink */
    --accent-color2: #95C0B8; /* Muted Seafoam */
    --footer-bg-color: var(--accent-color);
    --footer-text-color: var(--background-color);
    --subtle-border-color: #EAEAEA;
}

/* Initial Page Load Animation */
@keyframes pageFadeInElevate {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

html {
    scroll-behavior: smooth; /* Smooth scrolling for in-page links */
    font-size: 16px; /* Base font size */
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Lora', serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Apply initial page load animation */
    opacity: 0; /* Start hidden */
    animation: pageFadeInElevate 1s ease-out 0.3s forwards; /* name duration timing-function delay fill-mode */
}

/* Typography */
h1, h3, h4, .logo, .logo-reversed {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--heading-color);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 0.75;
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
    font-family: 'Lora', serif;
    color: var(--text-color);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    text-align: left;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding-left: 0;
}

section ul li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-weight: 500;
}

a:hover {
    opacity: 0.8;
}

a:focus, button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

main section {
    padding: 4rem 0;
}

/* Header */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--subtle-border-color);
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

/* Header Navigation + Contact Button */
header nav ul {
    display: flex;
    gap: 1.5rem;
}

header nav ul li a {
    font-weight: 700;
    font-family: 'League Spartan', sans-serif;
    color: var(--header-text-color);
}

header nav ul li a:hover {
    color: var(--accent-color);
}

.contact-button {
    display: none;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    opacity: 0.9;
    color: white;
}

.contact-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 128, 129, 0.3);
}

/* Logo */
.logo {
    color: var(--accent-color);
}

.logo-reversed {
    color: var(--footer-text-color);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    background-image: url('images/mika-ruusunen-2BlgjWSu5MU-unsplash.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#heroLine2 {
    color: var(--accent-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--background-color);
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Box */
.content-box {
    /* background-color: var(--background-color); */
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-box.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section with Image */
.section-with-image .image-content {
    display: none;
}

/* Contact Section */
.contact {
    background-image: url('images/elena-takmakova-zIHUD46b4as-unsplash.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.contact a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--accent-color);
}

/* Contact Form Styling */
.form-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
}

.contact label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 2px solid var(--subtle-border-color);
    border-radius: 4px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.contact input:hover,
.contact textarea:hover {
    border-color: rgba(192, 128, 129, 0.5);
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 128, 129, 0.2);
    background-color: white;
}

.contact textarea {
    min-height: 150px;
    resize: vertical;
}

.contact button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact button:hover {
    opacity: 0.9;
}

.contact button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 128, 129, 0.3);
}

/* Footer */
footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 3rem 0;
    /* margin-top: 4rem; */
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .contact-button {
        display: block;
    }
}

@media (min-width: 768px) {
    html { font-size: 17px; }
    h1 { font-size: 4.5rem; }
    h3 { font-size: 2.25rem; }
    main section { padding: 5rem 0; }
    
    .section-with-image .fifty-fifty-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .section-with-image .image-content {
        display: block;
    }
    
    .section-with-image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .section-with-image .text-content h3 {
        margin-bottom: 1.5rem;
        margin-top: 0;
    }
    
    .section-with-image .content-box {
        padding: 2.5rem;
        padding-left: 0;
    }
    
    footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    footer p {
        text-align: right;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact .content-box {
        padding: 2.5rem;
        padding-left: 0;
    }
    
    .contact form {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    html { font-size: 18px; }
    h1 { font-size: 8.5rem; }
    main section { padding: 6rem 0; }
    h3 { font-size: 2.5rem; }
    
    .content-box {
        padding: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .section-with-image .content-box {
        padding: 3rem;
        padding-left: 0;
    }
    
    .contact .content-box {
        padding: 3rem;
        padding-left: 0;
    }
    
    .contact form {
        padding: 3rem;
    }
    
    .contact button {
        padding: 0.9rem 2rem;
    }
} 