/* ===================================
   SIPZZ - MAIN.CSS
   Global styles, variables, typography, and layout
   =================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --brand-blue: #0067b1;
    --estate-blue: #233658;
    --light-blue: #A9DDF3;

    /* Text Colors */
    --text-primary: #233658;
    --text-secondary: #546e7a;
    --text-muted: #37474f;
    --text-light: #455a64;

    /* Background Colors */
    --bg-primary: #fcf6f5;
    --bg-white: #fff;
    --bg-beige: #FFFDF7;
    --bg-grey: #e3e6ec;

    /* Accent Colors */
    --yellow-banner: #FFE382;
    --star-rating: #FFC107;
    --shopee-orange: #EE4D2D;
    --tiktok-black: #000000;

    /* Borders */
    --border-color: #cfd8dc;
    --border-grey: #ccc;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

h1 {
    font-size: 36px;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

h4 {
    font-size: 20px;
    font-weight: bold;
}

p {
    margin: 0 0 1em 0;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */

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

.section {
    padding: var(--section-padding) 0;
}

/* ===================================
   HEADER STYLES
   =================================== */

header {
    background-color: var(--brand-blue);
    color: white;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-link img {
    height: 45px;
    display: block;
}

.header-nav {
    display: flex;
    gap: 40px;
    font-size: 16px;
    font-weight: bold;
}

.header-nav a {
    color: white;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.header-nav a:hover {
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 15px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-medium);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--brand-blue);
    opacity: 1;
}

/* Mobile Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all var(--transition-medium);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background-color: var(--brand-blue);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav .mobile-submenu-item {
    font-size: 16px;
    font-weight: 500;
    padding-left: 30px;
    opacity: 0.9;
}

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

footer {
    background-color: var(--brand-blue);
    color: white;
    margin-top: var(--section-padding);
    padding: 40px 0;
    text-align: center;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

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

    .hamburger-menu {
        display: flex;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }
}
