/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
    /* Colors - Light Blue & Warm Neutrals Palette */
    --color-primary: #A3D2DB;        /* Light blue */
    --color-primary-light: #C1E5ED;  /* Lighter blue */
    --color-primary-dark: #7BB5C1;   /* Dark blue */
    --color-button-blue: #3A7B8A;    /* Darker blue for buttons (better contrast) */
    --color-button-blue-dark: #2D6373; /* Even darker for hover */
    --color-accent: #E8836C;         /* Coral accent */
    --color-accent-light: #F5A491;   /* Light coral */
    --color-neutral-light: #FAFAF8;  /* Cream white */
    --color-neutral: #E8DCC8;        /* Warm beige */
    --color-text-dark: #2C3E50;      /* Dark text */
    --color-text-medium: #546E7A;    /* Medium grey text */
    --color-text-light: #7FB3D5;     /* Soft teal */
    --color-white: #FFFFFF;
    --color-shadow: rgba(44, 62, 80, 0.1);

    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--color-text-dark);
    line-height: 1.7;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a:hover {
    color: var(--color-primary-dark);
}

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

/* Rotate favicon */
link[rel="icon"] {
    transform: rotate(90deg);
}

ul {
    list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.25rem;
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-button-blue);
    border-radius: 2px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-button-blue);
    color: var(--color-white);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-primary:hover {
    background-color: var(--color-button-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-shadow);
}

.btn-secondary {
    background-color: var(--color-button-blue);
    color: var(--color-white);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-secondary:hover {
    background-color: var(--color-button-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-shadow);
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    box-shadow: 0 2px 12px var(--color-shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--color-text-medium);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--color-primary);
    background-color: rgba(163, 210, 219, 0.15);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 8rem 0 var(--spacing-xxl);
    background: linear-gradient(135deg, var(--color-neutral-light) 0%, #F5F3EE 100%);
    margin-top: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--color-shadow);
    overflow: hidden;
    position: relative;
}

.image-placeholder svg {
    width: 150px;
    height: 150px;
    color: var(--color-white);
}

.image-placeholder img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    object-position: 1% center; /* DM: my attempt at centering the profile picture. Looks good for this one. But might be a problem if we change out the pictures*/
    position: absolute;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.credentials {
    background-color: var(--color-neutral-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.credentials h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-medium);
    line-height: 1.8;
}

.credentials strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-neutral-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--color-shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.service-card h3 {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-text-medium);
    line-height: 1.7;
}

/* ===================================
   Company Section
   =================================== */
.company {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.company-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.company-info {
    background-color: var(--color-neutral-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
}

.company-info p {
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.company-name {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin: var(--spacing-md) 0;
}

.company-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-neutral-light) 0%, #F5F3EE 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.contact-item svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item div {
    text-align: left;
}

.contact-item h4 {
    color: var(--color-text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--color-text-medium);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-neutral);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: var(--spacing-xs);
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* ===================================
   Responsive Design
   =================================== */

/* Tablets and below */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 0 var(--spacing-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

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

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .nav,
    .btn {
        display: none;
    }

    body {
        background-color: white;
    }

    .hero,
    .services,
    .contact {
        background: white;
    }
}
