/* --- Google Fonts & CSS Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #004E89; /* Deep Ocean Blue */
    --secondary-color: #1A659E; /* Lighter Blue */
    --accent-color: #EFA00B; /* Golden Sand */
    --light-color: #F0F8FF; /* Alice Blue */
    --dark-color: #2C3E50; /* Dark Slate */
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    background-color: var(--light-color);
    color: var(--text-color);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; color: white; }
h2 { font-size: 2.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--secondary-color); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background-color: var(--accent-color); color: white; }
.btn-primary:hover { background-color: #d68f0a; transform: translateY(-3px); }
.btn-light { background-color: var(--light-color); color: var(--primary-color); }
.btn-light:hover { background-color: white; transform: translateY(-3px); }

/* --- Header & Navigation --- */
.main-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('cabot.jpeg') no-repeat center center/cover;
    height: 100vh;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    transition: background-color 0.4s ease;
}
.main-nav.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}
.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}
.logo i { color: var(--accent-color); margin-right: 0.5rem; }
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li a {
    color: white;
    padding: 1rem;
    font-weight: bold;
    position: relative;
    transition: var(--transition);
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after {
    width: 60%;
}
.nav-links li a i {
    margin-right: 0.4rem;
}
.hero-content {
    animation: fadeIn 1.5s ease-in;
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* --- Sections --- */
.section { padding: 4rem 0; }
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.about-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.about-card:hover {
    transform: translateY(-10px);
}
.about-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- Photo Showcase --- */
.photo-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 400px;
}
.photo-item {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.photo-item span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}
.photo-showcase:hover .photo-item {
    filter: grayscale(80%);
}
.photo-showcase .photo-item:hover {
    filter: grayscale(0%);
}
.photo-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Cities & Towns Section --- */
#cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.city-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.city-card:hover {
    transform: scale(1.03);
}
.city-card-content {
    padding: 1.5rem;
}
.city-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* --- Call to Action Section --- */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 {
    color: white;
    font-size: 2.5rem;
}
.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-grid h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-grid p, .footer-grid li {
    font-size: 0.9rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    color: #ccc;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}
.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}
.footer-about a { color: var(--accent-color); font-weight: bold; }

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 1rem 0;
    }
    .nav-links li a {
        font-size: 1.2rem;
    }
    .hamburger {
        display: block;
        z-index: 1001; /* Above nav links */
    }
    .hamburger.active .fa-bars {
        display: none;
    }
    .hamburger .fa-times {
        display: none;
    }
    .hamburger.active .fa-times {
        display: inline;
    }
    .photo-showcase {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    .photo-item {
        height: 250px;
    }
}
@media (max-width: 480px) {
    .photo-showcase {
        grid-template-columns: 1fr;
    }
}