* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
    color: #333;
}

/* Accessibility: stronger contrast palette for key UI elements */
:root{
  --accent-dark: #d94a2e;       /* darker orange for CTAs */
  --primary-dark: #0b3b5e;      /* darker blue for headers/nav */
  --primary-strong: #0a2b45;    /* very dark blue for headings */
  --muted-dark: #2b3a45;       /* dark gray for body text */
  --card-bg: #ffffff;
  --footer-bg: #071021;
}

/* Header Styles */
.header {
    background-color: var(--primary-dark);
    color: #ffffff; /* keep white on dark */
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.logo-img {
    width: 140px;
    height: auto;
    display: block;
}

.header-text {
    text-align: left;
}

/* Navigation Styles */
.nav {
    background-color: var(--primary-strong);
    padding: 10px;
    text-align: center;
}

.nav a {
    color: #ffffff;
    background: transparent;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
}

.nav a:hover,
.nav a:focus {
    background: rgba(255,255,255,0.08);
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    background-image: url('images/bali.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);  /* dark semi-transparent overlay */
    border-radius: 10px;
    z-index: 1;
}

.hero h2,
.hero p,
.hero .btn {
    position: relative;
    z-index: 2;  /* text sits on top of overlay */
    color: #ffffff;  /* white text for contrast */
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Sections */
.section {
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Cards */
.card {
    background: var(--card-bg);
    color: var(--muted-dark);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-strong);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card p {
    margin-bottom: 10px;
    color: var(--muted-dark);
}

/* Destination card images */
.card-img {
    width: 100%;
    height: 160px;           /* change height as needed */
    object-fit: cover;       /* crop to fill */
    border-radius: 6px;
    display: block;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
}

/* smaller screens */
@media (max-width: 480px) {
    .card-img {
        height: 120px;
    }
}

/* Buttons */
.btn, .cta-button {
    background: var(--accent-dark);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(17,24,58,0.06);
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.btn:hover,
.cta-button:hover { filter: brightness(0.95); }
.btn:focus, .cta-button:focus {
    outline: 3px solid rgba(217,74,46,0.18);
    outline-offset: 2px;
}

/* Profile Header */
.profile-header {
    background-color: #3498db;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.profile-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Profile Info Grid */
.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.info-card h3 {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 5px;
}

.info-card p {
    color: #666;
    font-weight: bold;
}

/* Featured Section */
.featured {
    background-color: #ecf0f1;
    border: 2px solid #3498db;
}

/* Search Box */
.search-box {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Contact Cards */
.contact-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-2px);
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: #dbeafe; /* pale text with good contrast */
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer p {
    margin-bottom: 5px;
}

.footer a { color: #dbeafe; }
.footer a:hover { color: #fbd1c7; }

/* Contact Info */
.contact-info {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--muted-dark);
    font-size: 0.95rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    margin-bottom: 10px;
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
    color: #666;
}

/* Price Tag */
.price::before { content: '£'; margin-right: 4px; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav a {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .section {
        padding: 20px;
    }
    
    .hero {
        padding: 20px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .logo-img {
        width: 110px;
    }
    
    .header-text {
        text-align: center;
        width: 100%;
    }
}
