/* =========================================================
   NOOKS COFFEE & EATERY
   CONTACT / ABOUT US PAGE
   MODERN EMERALD GREEN THEME
========================================================= */

/* =========================================================
   RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   ROOT VARIABLES (SELARAS DENGAN STYLE.CSS)
========================================================= */
:root {
    --green: #0d2b24;       /* Deep Emerald Mewah */
    --green-2: #164238;     /* Medium Emerald */
    --accent-gold: #c5a059; /* Sentuhan aksen emas premium */
    --sage: #d6e2d9;
    --cream: #f9f7f2;       /* Cream mewah lembut */
    --white: #ffffff;
    --ink: #141c19;
    --muted: #626f68;
    --line: #d2dbd5;
    --radius: 16px;
    --luxury-shadow: 0 20px 40px rgba(13, 43, 36, 0.08);
}

/* =========================================================
   HTML & BODY
========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* =========================================================
   TOP ACTIONS (KONSISTEN DENGAN STYLE.CSS)
========================================================= */
.top-actions {
    height: 44px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5vw;
    gap: 2px;
    background: #091e19;
}

.top-actions a {
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 14px 22px;
    transition: background 0.3s ease;
}

.top-actions a:hover {
    background: var(--green-2);
}

.top-actions .admin-icon {
    width: 48px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--green);
    color: white;
    transition: all .3s ease;
    cursor: pointer;
}

.top-actions .admin-icon:hover {
    background: var(--green-2);
    color: var(--accent-gold);
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */
.site-header {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 43, 36, 0.06);
    border-radius: 0 0 24px 24px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.brand {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 160px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.desktop-nav a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--green);
    position: relative;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--green-2);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a.active {
    color: var(--green);
}

/* =========================================================
   HEADER RIGHT ACTIONS (CART, LOGIN, REGISTER, ADMIN)
========================================================= */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right-actions a {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--green);
    transition: opacity 0.3s ease;
}

.header-right-actions a:hover {
    opacity: 0.7;
}

.header-right-actions .cart-link {
    background: var(--sage);
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--green);
}

.header-right-actions .admin-icon {
    font-size: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sage);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    width: 40px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--green);
    margin: 6px 0;
    transition: 0.3s;
}

/* =========================================================
   CONTACT HERO
========================================================= */
.contact-hero {
    width: 100%;
    min-height: 360px;
    background: linear-gradient(rgba(13, 43, 36, 0.58), rgba(13, 43, 36, 0.58)), url("images/contact-us-background.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    right: -180px;
    top: -220px;
}

.contact-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    left: -120px;
    bottom: -170px;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.hero-small-title {
    color: var(--sage);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.contact-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.contact-title-flow {
    animation: contact-title-flow 15s ease-in-out infinite;
}

@keyframes contact-title-flow {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    35% {
        opacity: 1;
        transform: translateY(-12px);
    }
    60% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(-12px);
    }
    100% {
        opacity: 0;
        transform: translateY(-24px);
    }
}

.contact-hero p:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
    .contact-title-flow {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

/* =========================================================
   CONTACT INFORMATION
========================================================= */
.contact-information {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.contact-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
}

.contact-item-content span {
    display: block;
    color: var(--green-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.contact-item-content p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.contact-opening-hours p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* =========================================================
   MAP + REVIEW SECTION
========================================================= */
.contact-content {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 80px 0 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.map-section {
    width: 100%;
}

.map-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sage);
    box-shadow: var(--luxury-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.review-section {
    width: 100%;
    text-align: left;
}

.form-eyebrow {
    color: var(--green-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.review-section h2 {
    font-family: "Playfair Display", serif;
    color: var(--green);
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 15px;
}

.form-description {
    max-width: 480px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.review-form {
    width: 100%;
}

.review-form-notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid rgba(31, 90, 75, 0.2);
    border-radius: 8px;
    background: var(--sage-light);
    color: var(--green);
    font-size: 13px;
    line-height: 1.6;
}

.review-form-error {
    border-color: rgba(160, 45, 45, 0.25);
    background: #fff2f0;
    color: #8d2828;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.review-form label {
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #a5aea9;
}

.form-input:focus {
    border-color: var(--green-2);
    box-shadow: 0 4px 15px rgba(13, 43, 36, 0.08);
}

.textarea-input {
    height: 130px;
    resize: vertical;
}

.form-submit-container {
    margin-top: 10px;
    text-align: left;
}

.submit-btn {
    border: none;
    background: var(--green);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(13, 43, 36, 0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.submit-btn span {
    font-size: 14px;
}

.submit-btn:hover {
    background: var(--green-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 43, 36, 0.20);
}

/* =========================================================
   FOOTER (SELARAS DENGAN STYLE.CSS & GALLERY)
========================================================= */
footer {
    min-height: 90px;
    padding: 30px 6%;
    background: #071713;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    letter-spacing: .05em;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
}

.brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--white);
    color: var(--green);
    display: grid;
    place-items: center;
    font-family: "Playfair Display", serif;
    font-size: 18px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
    transform: scale(1.1);
}

/* =========================================================
   MOBILE MENU & RESPONSIVE
========================================================= */
.mobile-menu {
    display: none;
}

.mobile-admin {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    margin-top: 10px;
    color: var(--sage) !important;
}

@media (max-width: 850px) {
    .top-actions {
        display: none;
    }

    .desktop-nav, 
    .header-right-actions { 
        display: none; 
    }
    
    .menu-toggle { 
        display: block; 
    }

    .site-header {
        width: 94%;
        height: 78px;
        padding: 0 20px;
        border-radius: 0 0 18px 18px;
    }

    .logo-img {
        width: 140px;
        height: 52px;
    }

    .contact-information {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
        padding: 50px 0;
    }

    .contact-information .contact-item:last-child {
        grid-column: 1 / -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 55px;
        padding: 60px 0 80px;
    }

    .map-container {
        height: 350px;
    }

    footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .mobile-menu.open {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: var(--green);
        color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .mobile-menu a {
        font-family: "Playfair Display", serif;
        font-size: 26px;
        letter-spacing: .05em;
    }
}

@media (max-width: 520px) {
    .top-actions { 
        padding-right: 4%; 
    }

    .site-header {
        width: 94%;
        height: 72px;
        padding: 0 16px;
        border-radius: 0 0 16px 16px;
    }

    .logo-img {
        width: 125px;
        height: 48px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .menu-toggle span {
        width: 22px;
    }

    .contact-hero {
        min-height: 280px;
    }

    .contact-hero h1 {
        font-size: 38px;
    }

    .contact-hero p:last-child {
        font-size: 13px;
    }

    .contact-information {
        width: 92%;
        grid-template-columns: 1fr;
        padding: 45px 0;
        gap: 25px;
    }

    .contact-information .contact-item:last-child {
        grid-column: auto;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .contact-item-content p {
        font-size: 14px;
    }

    .contact-content {
        width: 92%;
        padding: 55px 0 70px;
        gap: 50px;
    }

    .map-container {
        height: 280px;
    }

    .review-section h2 {
        font-size: 32px;
    }

    .form-description {
        font-size: 13px;
    }

    .form-input {
        padding: 12px;
        font-size: 12px;
    }

    .textarea-input {
        height: 120px;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    footer {
        padding: 30px 20px;
        flex-direction: column;
        gap: 15px;
    }
}
