:root {
    --color-primary: #007B5C;
    --color-accent1: #00A77A;
    --color-accent2: #2C2C2C;
    --color-bg: #121212;
    --color-text: #F5F5F5;
    --color-card: #3A3F47;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400&display=swap');


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    opacity: 0;
    transition: opacity 1s ease;
}

body.page-loaded {
    opacity: 1;
}

section {
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1A1A1A;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5em 1em;
}

/* Ensure the logo image never exceeds a manageable size */
.logo {
    max-width: 120px;
    max-height: 120px;
    height: auto;
    width: auto;
}

.main-nav a {
    color: var(--color-text);
    margin: 0 0.5em;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent1);
}

/* Hero */
.hero {
    background: #1A1A1A;
    text-align: center;
    padding: 5em 1em;
    transition: opacity 0.5s ease-out;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    text-align: center;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent1));
    color: var(--color-text);
    padding: 0.75em 1.5em;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: linear-gradient(45deg, var(--color-accent1), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Sections */
section {
    padding: 3em 1em;
    scroll-margin-top: 70px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.about {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    background: var(--color-bg);
}

.about-text {
    flex: 1 1 300px;
}

.about-image {
    flex: 1 1 300px;
    text-align: center;
}

.about-image img {
    max-width: 250px;
}

.services {
    background: var(--color-bg);
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
}

.card {
    background: var(--color-card);
    padding: 1.5em;
    border-radius: 8px;
    text-align: center;
    flex: 1 1 200px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transform: scale(1.05);
}

.card .details {
    max-height: 0;
    overflow: hidden;
    margin-top: 0.5em;
    font-size: 0.9em;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease;
}

.card:hover .details {
    max-height: 200px;
    opacity: 1;
}

.icon {
    font-size: 2em;
    margin-bottom: 0.5em;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.tier {
    background: var(--color-card);
    padding: 1.5em;
    border-radius: 8px;
    flex: 1 1 220px;
    text-align: center;
    border-top: 4px solid var(--color-accent1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0.5em;
}

.tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.price {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.tier h3 {
    margin-top: 0;
}

.tier ul {
    list-style: none;
    padding: 0;
    margin: 1em 0 0;
    text-align: left;
}

.tier li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
}

.tier li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent1);
}

.testimonials {
    background: #1A1A1A;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.testimonial-box {
    background: var(--color-card);
    border-radius: 8px;
    padding: 1em;
    overflow: hidden;
    max-height: 4em; /* show only the subject */
    cursor: pointer;
    transition: max-height 0.6s ease, box-shadow 0.3s;
    flex: 1 1 250px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.testimonial-box h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.1em;
}

.testimonial-box:hover {
    max-height: 14em; /* reveal paragraph */
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.testimonial-box .body {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.testimonial-box:hover .body {
    opacity: 1;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

.contact input,
.contact textarea,
.contact select {
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid var(--color-accent2);
    background: var(--color-card);
    color: var(--color-text);
    font-family: inherit;
}

.contact select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1,1 5,5 9,1' stroke='%23F5F5F5' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7em center;
    background-size: 0.6em 0.6em;
    padding-right: 2em;
}

.contact select option {
    background: var(--color-card);
}

.footer {
    background: #1A1A1A;
    text-align: center;
    padding: 1em;
}

@media (max-width: 600px) {
    .nav-wrapper {
        flex-direction: column;
    }
    .about {
        flex-direction: column;
    }
}
