/* style.css - Sunset Resort (Clona Originala 1:1) */

/* Import fonturi Google exacte */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Poppins:wght@300;400;500;600;700&family=Norican&family=Allura&family=Lilita+One&display=swap');

/* Font custom adaugat manual in site-ul original pentru a suporta weight 100 */
@font-face {
    font-family: 'Playfair_Display_Variable';
    font-display: swap;
    src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
}

:root {
    /* Culori extrase din site-ul original */
    --accent-color: #dcb37c; /* Auriu/Bej - extras pentru text Sunset Resort si Butoane */
    --accent-hover: #c49a62;
    
    --bg-color-light: #ffffff;
    --bg-color-alt: #fdfaf5; /* Fundal bej foarte pal pentru sectiunea de cazare/experienta */
    --bg-green-dark: #3e5043; /* Culoarea dark green de la header si poze anumite */
    
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    
    --header-bg: rgba(62, 80, 67, 0.95); /* Fundal verde inchis / negru la scroll */
    --header-bg-transparent: rgba(62, 80, 67, 0); /* Transparent la top */
    --header-height: 100px;
    
    /* Fonturi */
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-serif-variable: 'Playfair_Display_Variable', serif;
    --font-cursive: 'Allura', 'Norican', cursive;
    --font-bold: 'Lilita One', cursive; /* Pentru stele si accente grele */
    
    --transition-base: 0.3s ease-in-out;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

/* ==========================================
   Header & Navigare (Refacut conform 6_replicate)
   ========================================== */
#menuhopin {
    position: fixed;
  position: fixed;
  top: 0;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 9999;
  background-color: transparent;
}

#menuhopin.headershow {
  transform: translateY(0);
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
    width: 100%;
    /* Let's use 100% width with larger paddings to match original */
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: height 0.3s ease, filter 0.3s ease;
    border-radius: 50%; /* Original site has a round logo */
}

#menuhopin.headershow .logo-container img {
    height: 50px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center; /* Ensure vertical alignment */
}

.main-nav a {
    color: var(--accent-color); /* Gold initial color matching original */
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    text-transform: capitalize; /* Original is capitalized, not uppercase */
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

/* Efect vizual: Pointer underline + fade */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff; /* Hover pe original devine alb (contrast) */
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    opacity: 1;
}

#menuhopin.headershow .main-nav a {
    color: #333333; /* Dark pe fundal alb (WCAG contrast) */
}

#menuhopin.headershow .main-nav a:hover,
#menuhopin.headershow .main-nav a.active {
    color: var(--accent-color);
}

/* Mobile Toggle Hamburger (CSS-only) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

#menuhopin.headershow .hamburger-bar {
    background-color: #333333;
}

/* Animatie Transformare in X */
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
}
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 992px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed !important;
        top: 80px !important; /* Aproximativ inaltimea headerului */
        left: 0 !important;
        width: 100% !important;
        background: #1a1a1a !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
        display: none !important; /* Ascuns implicit */
        flex-direction: column !important;
        z-index: 999999 !important; /* Peste absolut orice */
    }
    
    #menuhopin.headershow .main-nav {
        background: #ffffff !important;
    }

    .main-nav.mobile-active {
        display: flex !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    #menuhopin.headershow .main-nav ul li a {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .main-nav a::after {
        display: none;
    }
}

/* ==========================================
   Butoane Globale (Clona)
   ========================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color-light);
    font-family: var(--font-sans);
    font-weight: 500;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-base);
    box-shadow: 0 4px 15px rgba(220, 179, 124, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-color-light);
    transform: translateY(-2px);
}

/* Container Global */
.container {
    max-width: 1200px; /* Latimea continutului text pe original */
    margin: 0 auto;
    padding: 0 20px;
}
.container-large {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Footer Original 1:1
   ========================================== */
.site-footer {
    background-color: #1a1a1a; /* Darker than before */
    color: #aaaaaa;
    padding: 0 0 30px;
    position: relative;
    margin-top: 50px;
}

.footer-shape-divider {
    position: absolute;
    top: -1px; /* Avoid 1px gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 35px; /* Torn paper height */
    fill: #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
    padding-top: 80px; /* Padding inside after shape divider */
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-logo {
    max-width: 80px; /* Original logo is small in footer */
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make sure it's white if it's not already */
}

.footer-text-cursive {
    font-family: var(--font-cursive);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color); /* Gold */
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.footer-title {
    color: #ffffff;
    font-family: var(--font-sans); /* Standard, not cursive */
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--accent-color);
    font-weight: 500;
    transition: color var(--transition-base);
}

.footer-contact-info a {
    color: #cccccc;
    transition: color var(--transition-base);
}

.footer-links a:hover, .footer-contact-info a:hover {
    color: #ffffff;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #cccccc;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 4px;
    color: var(--text-light);
    width: 100%;
}

.newsletter-btn {
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-base);
    font-weight: 600;
    width: 100%;
}

.newsletter-btn:hover {
    background-color: var(--accent-hover);
}

@media (min-width: 768px) {
    .footer-newsletter form {
        flex-direction: row;
        max-width: 100%;
    }
    .newsletter-input {
        flex: 1;
    }
    .newsletter-btn {
        width: auto;
        white-space: nowrap;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #888888;
}

.copyright-text {
    flex: 1;
}

.rights-text {
    flex: 1;
    text-align: right;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex: 2;
}

.footer-bottom-links a {
    color: #888888;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .rights-text {
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-btn {
        width: 100%;
    }
}

/* ==========================================
   Back To Top Button
   ========================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

#back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;

#back-to-top:hover {
    background-color: var(--accent-color);
}
