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

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif; /* Matching the serif look */
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Critical for sticky footer */
}

/* Layout Utilities */
.page-wrapper {
    flex: 1; /* Pushes footer down */
}

.container {
    max-width: 960px; /* Adjust width to control centering */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.site-header {
    padding: 30px 0;
    background-color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Responsive wrapping */
    gap: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

a.logo{
    text-decoration: none;
}

p a:visited{
    text-docration: none;
    color: #000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: 700;
    margin-right: 20px;
    font-family: 'Georgia', serif;
}

nav a:last-child {
    margin-right: 0;
}

.cta-button {
    background-color: #ff6b6b; /* The coral/red color from image */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Georgia', Serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ff5252;
}

/* Main Content Styles */
.main-content {
    padding-top: 20px;
    padding-bottom: 60px;
}

.hero-placeholder {
    width: 100%;
    height: 350px;
    background-color: #e6e6e6; /* Light grey placeholder */
    margin-bottom: 40px;
}

.text-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.text-content .subtitle {
    font-size: 1.5rem;
    color: #333;
    font-weight: 400;
}

/* Footer Styles */

/* Footer Styles - Compressed Version */
.site-footer {
    background-color: #f9f9f9; 
    /* Reduced padding from 40px to 20px to make it less tall */
    padding: 20px 0; 
    margin-top: auto; 
    font-family: 'Georgia', serif;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left, .footer-right {
    display: flex;
    flex-direction: column;
    /* Reduced gap between internal items (email, links) */
    gap: 2px; 
}

.footer-left strong, .footer-right strong {
    font-size: 0.95rem; /* Slightly smaller header */
    margin-bottom: 2px;
}

.footer-left a, .footer-right a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem; /* Slightly smaller text */
}

.footer-right ul {
    list-style: none;
}

.footer-right li {
    margin-bottom: 2px; /* Tighter list items */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Stack the Logo area */
    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Stack the Navigation and Button */
    .nav-wrapper {
        flex-direction: column; /* This puts links on top of the button */
        width: 100%;
        align-items: center;    /* Centers them */
        gap: 20px;              /* Adds space between links and button */
        margin-top: 10px;
    }

    /* Spread the links out nicely */
    nav {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap; /* Safety: allows wrapping if screen is TINY */
        width: 100%;
    }

    /* Fix the button looking weird */
    .cta-button {
        width: auto;          /* Only as wide as it needs to be */
        text-align: center;
        white-space: nowrap;  /* Forces text to stay on one line */
        padding: 12px 30px;   /* Slightly bigger touch target */
    }

    /* Adjust layout for the rest of the page */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center; /* Optional: centers the text below the header */
    }

    .image-block {
        height: 300px;
        /* order: -1; <-- Uncomment this if you want the photo ABOVE the text on mobile */
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center; /* Centers footer text on mobile */
    }
    
    /* Centers footer items */
    .footer-col {
        align-items: center; 
    }
}

/* --- Add this to your existing style.css --- */

/* Navigation Active State */
nav a.active {
    font-weight: 900; /* Extra bold for current page */
    border-bottom: 2px solid #000; /* Optional: adds a subtle underline */
}

/* About Page Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split into two equal columns */
    gap: 60px; /* Large space between text and image */
    align-items: start; /* Align content to the top */
    padding-top: 20px;
}

/* About Typography */
.about-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1a1a1a;
    text-align: justify;
}

/* About Image Placeholder */
.about-image-placeholder {
    width: 100%;
    height: 500px; /* Fixed height for the rectangle */
    background-color: #e6e6e6; /* Light grey */
}

/* Responsive Update for About Page */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 40px;
    }

    .about-image-placeholder {
        height: 300px; /* Smaller height on mobile */
        /* If you want the image ABOVE the text on mobile, uncomment the line below: */
        /* order: -1; */ 
    }
}

/* --- Add this to the bottom of your style.css --- */

/* Shared Styles for Split Pages (About & Contact) */
.contact-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

/* Contact Page Specifics */
.contact-block {
    margin-bottom: 30px; /* Space between Address block and Socials block */
}

.contact-block p {
    margin-bottom: 5px; /* Tighter spacing for contact details */
    font-size: 1.05rem;
    color: #1a1a1a;
}

.contact-block a {
    color: #1a1a1a;
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Clean List Style (No bullets) */
.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plain-list li {
    margin-bottom: 5px;
}

.plain-list li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.05rem;
}

.plain-list li a:hover {
    text-decoration: underline;
}


/* Over */


.about-image-placeholder {
    /* Path to the image as requested */
    background-image: url('images/over.jpeg'); 
    
    /* Ensures the image covers the area while keeping proportions */
    background-size: cover; 
    
    /* Centers the image within the box */
    background-position: center; 
    
    /* Prevents tiling */
    background-repeat: no-repeat; 
}

.contact-image-placeholder {
    /* Path to the image as requested */
    background-image: url('images/contact.png'); 
    
    /* Ensures the image covers the area while keeping proportions */
    background-size: cover; 
    
    /* Centers the image within the box */
    background-position: center; 
    
    /* Prevents tiling */
    background-repeat: no-repeat; 
}




/* --- Add this to the bottom of your style.css --- */

/* Home Page Specifics */

/* We reuse .about-image-placeholder for dimensions, 
   but add this class to inject the specific image 
*/
.home-hero-image {
    /* Path to the image as requested */
    background-image: url('images/markhome.png'); 
    
    /* Ensures the image covers the area while keeping proportions */
    background-size: cover; 
    
    /* Centers the image within the box */
    background-position: center; 
    
    /* Prevents tiling */
    background-repeat: no-repeat; 
}

/* Specific styling for the subtitle to make it look 
   like the design (slightly larger, regular weight) 
*/
.home-text-content .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
    margin-top: -10px; /* Slight optical adjustment closer to H1 */
}

/* --- Add this to the bottom of style.css --- */

/* Vertically centers the text block relative to the image on the right */
.home-text-content {
    align-self: center;
}

/* The 360 Spin Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-360 {
    animation: spin 0.8s ease-in-out;
}