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

:root {
    --color-light-blue: #B8D4E3;
    --color-sand: #E8DCC6;
    --color-white: #FFFFFF;
    --color-dark-blue: #5A7A9A;
    --color-text: #2C3E50;
    --color-text-light: #5A6C7D;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-white);
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Palatino Linotype', 'Book Antiqua', serif;
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    color: var(--color-dark-blue);
}

h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

/* Remove top margin for h3 in contact section */
.content-block > h3:first-child {
    margin-top: 0;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.4rem;
    text-align: justify;
    hyphens: auto;
    letter-spacing: 0.01em;
    word-spacing: 0.05em;
}

a {
    color: var(--color-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-sand) 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--color-dark-blue);
}

.header-content {
    margin-bottom: 2rem;
}

.site-title {
    font-size: 3.5rem;
    color: var(--color-dark-blue);
    margin-bottom: 0.5rem;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: none;
}

.site-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    font-style: italic;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.main-nav a {
    padding: 0.5rem 1.2rem;
    background: var(--color-white);
    border-radius: 20px;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--color-dark-blue);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Main Content Sections */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Narrow Vertical Sections */
.narrow-vertical {
    width: 100%;
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Wider width for sections with town-grid */
.narrow-vertical:has(.town-grid) {
    max-width: 1200px;
}

/* Laptop/Tablet Landscape Adaptations */
@media (min-width: 769px) and (max-width: 1400px) {
    .narrow-vertical {
        max-width: 750px;
        padding: 0 3rem;
    }
    
    .narrow-vertical:has(.town-grid) {
        max-width: 1200px;
    }
    
    .wide-horizontal {
        padding: 0 2rem 2.5rem 2rem;
        gap: 2.5rem;
    }
}

@media (min-width: 1201px) and (max-width: 1600px) {
    .narrow-vertical {
        max-width: 650px;
    }
    
    .narrow-vertical:has(.town-grid) {
        max-width: 1200px;
    }
}

/* Wide Horizontal Sections */
.wide-horizontal {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.wide-horizontal.reverse {
    direction: rtl;
}

.wide-horizontal.reverse > * {
    direction: ltr;
}

/* Content Blocks */
.content-block {
    padding: 1.5rem;
}

.content-block.centered {
    text-align: center;
}

.content-image {
    width: 100%;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, var(--color-light-blue) 0%, transparent 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark-blue);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
}

.page-header h2 {
    margin-bottom: 1rem;
}

/* Quote Block */
.quote-block {
    padding: 2rem;
    background: var(--color-sand);
    border-left: 4px solid var(--color-dark-blue);
    border-radius: 4px;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.quote-author {
    text-align: right;
    font-size: 1rem;
    color: var(--color-text-light);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    padding: 1.5rem;
    background: var(--color-light-blue);
    border-radius: 8px;
    text-align: center;
}

.info-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-dark-blue);
}

/* Town Grid */
.town-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* Town Grid Laptop Adaptation */
@media (min-width: 769px) and (max-width: 1200px) {
    .town-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .town-grid .town-item:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .town-grid {
        gap: 1.8rem;
    }
}

.town-item {
    padding: 2.5rem 2rem;
    background: var(--color-white);
    border: 2px solid var(--color-light-blue);
    border-radius: 8px;
    min-height: 180px;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.town-item h4 {
    color: var(--color-dark-blue);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.town-item p {
    line-height: 1.8;
    margin-bottom: 0;
    text-align: left;
    word-spacing: normal;
    hyphens: auto;
}

/* Feature List */
.feature-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-dark-blue);
    font-size: 1.2rem;
}

/* Tip Box */
.tip-box {
    padding: 2rem;
    background: var(--color-sand);
    border-radius: 8px;
    border-top: 3px solid var(--color-dark-blue);
}

.tip-box h3,
.tip-box h4 {
    color: var(--color-dark-blue);
    margin-top: 0;
}

/* Testimonials */
.testimonial {
    padding: 2rem;
    background: var(--color-white);
    border-left: 4px solid var(--color-light-blue);
    margin-bottom: 2rem;
}

.testimonial-large {
    padding: 3rem;
    background: var(--color-sand);
    border-radius: 8px;
    margin: 2rem 0;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    text-align: right;
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: bold;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2.5rem;
    line-height: 1.9;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(184, 212, 227, 0.1) 0%, rgba(232, 220, 198, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--color-dark-blue);
}

.contact-info strong {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--color-dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-info a {
    color: var(--color-dark-blue);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.contact-info a:hover {
    background: var(--color-light-blue);
    text-decoration: none;
    transform: translateX(3px);
}

/* Form Styles */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--color-white);
    border: 2px solid var(--color-light-blue);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Center form container when inside wide-horizontal section */
.wide-horizontal .content-block.form-container {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 700px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
    font-weight: normal;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-light-blue);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-dark-blue);
}

.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    cursor: pointer;
}

.btn-submit {
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 1.1rem 3rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    margin: 2rem auto 0;
    min-width: 200px;
    box-shadow: 0 2px 6px rgba(90, 122, 154, 0.3);
}

.btn-submit:hover {
    background: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.hidden {
    display: none;
}

/* Footer */
.site-footer {
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    text-align: center;
}

.footer-nav {
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--color-white);
    margin: 0 1rem;
    text-decoration: underline;
}

.footer-nav a:hover {
    color: var(--color-light-blue);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cookie-content p {
    text-align: center;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--color-light-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-accept,
.btn-reject {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--color-white);
    color: var(--color-dark-blue);
}

.btn-accept:hover {
    background: var(--color-light-blue);
    border-color: var(--color-light-blue);
}

.btn-reject {
    background: transparent;
    color: var(--color-white);
}

.btn-reject:hover {
    background: var(--color-white);
    color: var(--color-dark-blue);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    
    .site-subtitle {
        font-size: 1.1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
    }
    
    .wide-horizontal {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem 1rem;
        gap: 2rem;
    }
    
    .wide-horizontal.reverse {
        direction: ltr;
    }
    
    .narrow-vertical {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .info-grid,
    .town-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-accept,
    .btn-reject {
        width: 100%;
    }
    
    .testimonial-large {
        padding: 2rem 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-dark-blue);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Show scroll button on desktop too */
@media (min-width: 769px) {
    .scroll-to-top {
        bottom: 20px;
        right: 30px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 2rem 1rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

