/*
 * PROFESSIONAL STYLING FOR SMESTADHYTTA.NO
 * Focus: Modern Typography, Better Spacing, and a Clean, Nature-Inspired Color Palette.
 * This stylesheet is designed to target the existing HTML structure.
 */

/* 1. Global Reset & Fonts */
body {
    font-family: 'Open Sans', sans-serif; /* Modern, clean font for readability */
    color: #333; /* Darker text for contrast */
    background-color: #F8F8F8; /* Light gray background for depth */
    margin: 200;
    margin-top: 50;
    padding: 0;
    line-height: 1.6;
}

/* Ensure all text uses a modern font */
p, li, a, td, div {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4 {
/*    font-family: 'Playfair Display', serif; */ /* Elegant font for headings */
    font-family: 'Open Sans', sans-serif; /* Modern, clean font for readability */
    color: #2C3E50; /* Deep blue-gray for sophistication */
    line-height: 1.2;
    margin-top: 1.5em; /* Add space above headings */
}

/* 2. Layout and Container Improvement */
/* Target the main container to center and constrain content */
table[width="90%"] { /* Targeting the existing main table/container */
    width: 95% !important;
    max-width: 1200px;
    margin: 0 auto; /* Center the entire page */
    padding: 20px;
    background-color: #FFFFFF; /* Clean white background for main content area */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
}

/* Ensure content fills the table cell width */
td[valign="top"] {
    padding: 20px 40px; /* Generous internal padding */
}

/* 3. Navigation and Header Styling */
/* Target the top header area (often the first cell) */
table.topp, table[bgcolor="#808080"] { 
    background-color: #1E8449 !important; /* Pine Green header background */
    color: white;
    padding: 10px 0;
}

/* Style links within the navigation (if they exist) */
table.topp a, table[bgcolor="#808080"] a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: background-color 0.3s;
    border-radius: 3px;
}

table.topp a:hover, table[bgcolor="#808080"] a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 4. Image Enhancements */
img {
    max-width: 100%; /* Ensures images are responsive and don't overflow */
    height: auto;
    border-radius: 6px; /* Soft rounded corners */
    display: block; /* Removes unwanted space below images */
    margin: 10px auto 20px auto; /* Centers images and adds vertical space */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 5. List and Paragraph Spacing */
ul, ol {
    margin: 1em 0 1em 2em;
}

li {
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
}

/* 6. Call-to-Action / Booking Links */
/* Assuming key links (like booking) can be styled as buttons */
a[href*="booking"], a[href*="contact"] {
    display: inline-block;
    background-color: #E74C3C; /* Ember Glow accent color */
    color: white !important;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    margin: 15px 0;
    transition: background-color 0.3s, transform 0.2s;
}

a[href*="booking"]:hover, a[href*="contact"]:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
}

/* 7. Footer / Bottom Content Styling */
table[align="center"] { /* Targeting the bottom information/footer area */
    background-color: #2C3E50; /* Deep blue-gray background */
    color: #BBBBBB;
    padding: 20px 40px;
    width: 100% !important;
    max-width: none !important;
    box-shadow: none;
}

table[align="center"] a {
    color: #F8F8F8;
    text-decoration: none;
    border-bottom: 1px dotted #F8F8F8;
}

table[align="center"] a:hover {
    color: #E74C3C;
    border-bottom: 1px dotted #E74C3C;
}

/* 8. Responsive Adjustments */
@media (max-width: 768px) {
    table[width="90%"] {
        padding: 10px;
        box-shadow: none;
    }
    
    td[valign="top"] {
        padding: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}
