/* Main stylesheet for Norfolk Broads website */
/* Color Scheme: Reed-green, Sky-blue, Cream */

:root {
    --reed-green: #5a7c5a;
    --reed-green-dark: #4a6a4a;
    --reed-green-light: #7a9a7a;
    --sky-blue: #87ceeb;
    --sky-blue-dark: #6bb6d6;
    --sky-blue-light: #a8d8e8;
    --cream: #f5f5dc;
    --cream-dark: #e8e8d0;
    --white: #ffffff;
    --text-dark: #2c3e2c;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(90, 124, 90, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--reed-green) 0%, var(--reed-green-dark) 100%);
    color: var(--white);
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--sky-blue-light);
    transform: translateX(3px);
}

.logo::before {
    content: "⛵";
    font-size: 1.4rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover::before {
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    position: relative;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--sky-blue-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--sky-blue-light);
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background: linear-gradient(135deg, rgba(90, 124, 90, 0.5) 0%, rgba(90, 124, 90, 0.3) 100%),
                url('../images/hero/sunrise-broads.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    padding: 3rem 2.5rem;
    background: rgba(90, 124, 90, 0.75);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-dark) 100%);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--sky-blue-dark) 0%, var(--sky-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--reed-green) 0%, var(--reed-green-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(90, 124, 90, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--reed-green-dark) 0%, var(--reed-green) 100%);
    box-shadow: 0 6px 20px rgba(90, 124, 90, 0.4);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

section {
    margin-bottom: 5rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section:nth-child(even) {
    animation-delay: 0.1s;
}

section:nth-child(odd) {
    animation-delay: 0.2s;
}

h2 {
    color: var(--reed-green);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue) 0%, var(--reed-green) 100%);
    border-radius: 2px;
}

h3 {
    color: var(--reed-green-dark);
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

strong {
    color: var(--reed-green-dark);
    font-weight: 600;
}

/* Cards/Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 1200px) {
    .card-grid {
        gap: 3rem;
    }
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(90, 124, 90, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue) 0%, var(--reed-green) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: rgba(90, 124, 90, 0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    color: var(--reed-green);
    margin-bottom: 1.2rem;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--reed-green-dark);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--reed-green-dark) 0%, var(--reed-green) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

footer p {
    margin: 0.8rem 0;
    opacity: 0.95;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

footer p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    background-color: var(--sky-blue-light);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
    transition: background-color 0.2s ease;
}

th {
    background: linear-gradient(135deg, var(--reed-green) 0%, var(--reed-green-dark) 100%);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--cream);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* List Styling */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-container {
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.image-container:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Itinerary Day Cards */
.itinerary-day {
    background-color: var(--white);
    border-left: 5px solid var(--sky-blue);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.itinerary-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--sky-blue) 0%, var(--reed-green) 100%);
    transition: width 0.3s ease;
}

.itinerary-day:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateX(5px);
}

.itinerary-day:hover::before {
    width: 8px;
}

.itinerary-day h3 {
    color: var(--sky-blue-dark);
    border-bottom: 3px solid var(--sky-blue-light);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.itinerary-day h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--reed-green);
    border-radius: 2px;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--reed-green);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 5px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skip-link:focus {
    top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: var(--sky-blue-light);
    color: var(--text-dark);
}

::-moz-selection {
    background-color: var(--sky-blue-light);
    color: var(--text-dark);
}

/* Loading animation for images - only if images are loaded */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Enhanced list styling */
ul li, ol li {
    position: relative;
    padding-left: 0.5rem;
}

ul li::marker {
    color: var(--reed-green);
    font-weight: bold;
}
