/**
 * Duncan Guest House - Main Stylesheet
 * Professional design for Marsaxlokk, Malta
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-white: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --border-color: #dfe6e9;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.2);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.logo p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    background: var(--secondary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero-marsaxlokk.jpg') center/cover;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--secondary-color);
}

.btn-accent {
    background: var(--accent-color);
}

.btn-success {
    background: var(--success);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Guest Portal Button */
.guest-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.guest-portal-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.guest-portal-btn i {
    font-size: 18px;
}

/* Alternative Style - Orange Button */
.guest-portal-btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.guest-portal-btn-orange:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Alternative Style - White with Border */
.guest-portal-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #007bff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.guest-portal-btn-white:hover {
    background: #007bff;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .guest-portal-btn,
    .guest-portal-btn-orange,
    .guest-portal-btn-white {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .guest-portal-btn i,
    .guest-portal-btn-orange i,
    .guest-portal-btn-white i {
        font-size: 16px;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== HISTORY SECTIONS ===== */
.history-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.history-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.history-content h3:first-of-type {
    margin-top: 0;
}

.history-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.history-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.history-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 20px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .history-content {
        padding: 25px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.bg-white { background: white; }
.shadow { box-shadow: var(--shadow); }