/* --- MASTER STYLESHEET for House Ruybe --- */

/* --- 1. Base & Body Styling --- */
html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #6C7075 0%, #C9925A 50%, #F2BE76 100%);
    background-attachment: fixed;
    margin: 0;
    font-family: arial, sans-serif; /* UPDATED: Font face changed to original */
    color: rgb(193,255,193); /* UPDATED: Main text color changed to original */
}

/* --- 2. Background Logo & Layout --- */
.background-logo, .background-logo-motto, .background-logo2 {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Default Logo */
.background-logo {
    background-image: url('../images/HouseRuybe.png');
    opacity: 1.0; /* Controls default logo transparency */
}

/* Default Logo 2 */
.background-logo2 {
    background-image: url('../images/HouseRuybe.png');
    opacity: 0.1; /* Controls default logo 2 transparency */
}


/* Optional Motto Logo */
.background-logo-motto {
    background-image: url('../images/HouseRuybe_motto.png');
    opacity: 1.0; /* Controls motto logo transparency */
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* --- 3. Header & Navigation (for internal pages) --- */
.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(242, 190, 118, 0.3);
}

.header-title a {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    display: flex;
    border-radius: 10px;

    /* Gradient background */
    background: #57c1d4; /* fallback */
    background: linear-gradient(to bottom, #57c1d4, #1b3ecc);

    /* Slight shadow for depth */
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px;
}


nav li a {
    text-decoration: none;
    color: #ffffff;  /* white text */
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-weight: bold; /* Bolder font */
}

nav li a:hover {
    color: #C9925A; /* Gold hover color */
}

/* --- 4. Homepage Specific Styling (Hero & Cards) --- */
.hero {
    text-align: center;
    padding: 20px 0 2px 0;  /* Reduced vertical padding */
    min-height: auto;       /* No forced height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 2;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;        /* Slightly smaller to help tighten vertical space */
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: rgb(193, 255, 193);
    margin-top: 0.5rem;     /* Reduced gap between title and subtitle */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Override main padding for sections with a logo immediately after hero */
.main-logo {
    padding-top: 5px;      /* Reduce space above logo */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 40px 0;
    margin-top: -80px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(242, 190, 118, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(242, 190, 118, 0.8);
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: #F2BE76;
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgb(255, 255, 255); /* UPDATED: Card paragraph color */
    line-height: 1.6;
}


/* --- 5. Internal Page Content Styling --- */
main {
    padding: 40px 0;
}

main h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

main p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 1.5rem auto;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.9),  /* crisp dark outline */
        0 0 5px rgba(0, 0, 0, 0.7);  /* softer ambient halo */
}


.contact-box {
    background: rgba(40, 40, 40, 0.4);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(242, 190, 118, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}
.contact-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: #F2BE76;
    margin-top: 0;
}
.contact-box a {
    font-size: 1.2rem;
    color: #F2BE76;
    text-decoration: none;
}


/* --- 6. Mobile Optimizations --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        justify-content: center;
        padding-top: 1rem;
    }
    main h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.25rem; }
    body { background-attachment: scroll; }
}
