/* ==========================================
   KERNHOF WEBSITE - Professional Design
   Modern, Luxury Hotel Aesthetic
   =========================================== */

/* Root Variables - Antrasit & Turkuaz (logo ile uyumlu) */
:root {
    --primary-color: #55636C;      /* Orta slate gri (daha açık) */
    --primary-light: #6C7A83;      /* Lighter slate */
    --primary-lighter: #909AA1;    /* Soft slate */
    --accent-color: #1CA6A2;       /* Turkuaz (logo) */
    --accent-dark: #148A86;        /* Deep teal */
    --accent-light: #5FC9C5;       /* Light teal */
    --dark-bg: #333B41;            /* Dark slate (footer) */
    --light-bg: #F5F7F7;           /* Cool off-white */
    --text-primary: #1E2225;       /* Near-black */
    --text-secondary: #5B646A;     /* Muted slate */
    --text-light: #8A9298;         /* Soft gray */
    --border-color: #E3E7E8;       /* Cool border */
    --spacing: 16px;
    --shadow-sm: 0 2px 8px rgba(30, 40, 45, 0.1);
    --shadow-md: 0 4px 16px rgba(30, 40, 45, 0.15);
    --shadow-lg: 0 8px 32px rgba(30, 40, 45, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GLOBAL STYLES
   =========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--light-bg);
    font-weight: 400;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ==========================================
   LANGUAGE SWITCHER
   =========================================== */

.language-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 2px;
    background: white;
    padding: 6px 8px;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 4px;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--primary-color);
    background-color: rgba(139, 115, 85, 0.05);
}

/* ==========================================
   NAVIGATION
   =========================================== */

.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   =========================================== */

.hero {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, white 100%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* ==========================================
   BUTTONS
   =========================================== */

.cta-button {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* WhatsApp CTA buttons – green like the widget */
#whatsapp-hero,
#whatsapp-contact,
.cta-button.cta-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
    box-shadow: 0 6px 20px rgba(18, 140, 74, 0.35);
}

#whatsapp-hero:hover,
#whatsapp-contact:hover,
.cta-button.cta-whatsapp:hover {
    box-shadow: 0 10px 30px rgba(18, 140, 74, 0.45);
}

/* ==========================================
   BOOKING WIDGET
   =========================================== */

.booking-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 50px 0;
    margin: 80px 0;
    color: white;
    border-radius: 12px;
}

.widget-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.widget-container h3 {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.booking-form input,
.booking-form select {
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.booking-form input::placeholder {
    color: var(--text-light);
}

.booking-btn {
    background-color: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.availability-result {
    text-align: center;
    padding: 20px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 8px;
    margin-top: 24px;
    backdrop-filter: blur(10px);
}

.availability-result.hidden {
    display: none;
}

/* ==========================================
   ROOMS SECTION
   =========================================== */

.rooms {
    padding: 120px 0;
    background-color: white;
}

.section-title {
    font-size: 52px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 80px;
    font-weight: 400;
    line-height: 1.8;
}

.rooms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.room-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.room-card.premium .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.room-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover img {
    transform: scale(1.05);
}

.room-info {
    padding: 40px;
}

.room-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.room-info p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
    font-size: 15px;
}

.room-details {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: -0.5px;
}

.per-night {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.amenities {
    list-style: none;
    padding: 0;
}

.amenities li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.6;
}

.amenities li:last-child {
    border-bottom: none;
}

.rooms-note {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, var(--light-bg), white);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    border: 1px solid var(--border-color);
}

/* ==========================================
   GALLERY
   =========================================== */

.gallery {
    padding: 120px 0;
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.gallery-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   ABOUT SECTION
   =========================================== */

.about {
    padding: 120px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 32px 0 24px 0;
    letter-spacing: -0.5px;
}

.features-list {
    list-style: none;
    margin-top: 24px;
}

.features-list li {
    padding: 14px 0;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* ==========================================
   CONTACT SECTION
   =========================================== */

.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, white 0%, var(--light-bg) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    margin: 40px 0;
    line-height: 1.9;
}

.contact-details p {
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-details strong {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--accent-color);
}

.map {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ==========================================
   WHATSAPP WIDGET (Floating Button)
   =========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Description bubble */
.whatsapp-label {
    max-width: 240px;
    background: white;
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    position: relative;
    transition: var(--transition);
}

.whatsapp-label::after {
    /* little pointer toward the button */
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

.whatsapp-label strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #128c4a;
    line-height: 1.3;
}

.whatsapp-label span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.whatsapp-label:hover {
    transform: translateY(-2px);
}

.whatsapp-widget {
    position: relative;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 24px rgba(18, 140, 74, 0.45);
    transition: var(--transition);
    flex-shrink: 0;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(18, 140, 74, 0.55);
}

.whatsapp-widget:active {
    transform: scale(1.05);
}

.whatsapp-widget svg {
    width: 34px;
    height: 34px;
    position: relative;
    z-index: 2;
}

/* Pulsing ring to draw attention */
.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: 1;
    animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-pulse { animation: none; display: none; }
}

/* ==========================================
   FOOTER
   =========================================== */

.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ==========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .nav-menu {
        gap: 30px;
    }

    .nav-link {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 38px;
    }

    .booking-form {
        grid-template-columns: 1fr 1fr;
    }

    .rooms-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image img,
    .hero-image img {
        height: 350px;
    }

    .map {
        height: 350px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .language-switcher {
        top: 16px;
        right: 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-button {
        width: 100%;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .booking-btn {
        grid-column: 1 / -1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        gap: 0;
    }

    .whatsapp-label {
        display: none;
    }

    .whatsapp-widget {
        width: 60px;
        height: 60px;
    }
}
