/* ============================================================
   HEADER CONSOLIDATED CSS - All styles in one place
   ============================================================ */

@font-face {
    font-family: sans-serif;
}

/* Root variables for site colors */
:root {
    --site-color-01: #c13584;
    --site-color-01-hover: #145a32;
    --header-bg: #ffffff;
    --nav-bg: #333;
    --nav-text: #2e86c1;
    --nav-text-hover: #f1f1f1;
    --burger: #00a0e9;
    --texthover: #441b12;
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --grm-red: #c0392b;
    --grm-red-hover: #e74c3c;
    --pforr-green: #1a7f62;
    --pforr-green-hover: #0f5c47;
}

/* General HTML settings */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Font-face for custom fonts */
@font-face {
    font-family: Roboto;
    src: url(../fonts/Roboto-Regular);
}

/* Body styling */
body {
    font-family: Roboto, Arial, sans-serif;
}

/* ============================================================
   HEADER MAIN LAYOUT
   ============================================================ */

/* Header styling */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
}

.header-hidden {
    opacity: 1;
    pointer-events: none;
}

/* ============================================================
   PAGE LOAD ANIMATION - Fade in effect
   ============================================================ */
.header-main-logo,
.header-main-nav,
.header-main-sm,
.burger-icon {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.header-main-nav {
    animation-delay: 0.1s;
}

.header-main-sm {
    animation-delay: 0.2s;
}

.burger-icon {
    animation-delay: 0.15s;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for menu items */
.header-main-nav ul li {
    opacity: 0;
    animation: fadeInItem 0.5s ease forwards;
}

.header-main-nav ul li:nth-child(1) { animation-delay: 0.15s; }
.header-main-nav ul li:nth-child(2) { animation-delay: 0.2s; }
.header-main-nav ul li:nth-child(3) { animation-delay: 0.25s; }
.header-main-nav ul li:nth-child(4) { animation-delay: 0.3s; }
.header-main-nav ul li:nth-child(5) { animation-delay: 0.35s; }
.header-main-nav ul li:nth-child(6) { animation-delay: 0.4s; }
.header-main-nav ul li:nth-child(7) { animation-delay: 0.45s; }
.header-main-nav ul li:nth-child(8) { animation-delay: 0.5s; }

@keyframes fadeInItem {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   HEADER LAYOUT - Logo left, menu centered
   ============================================================ */
.header-main-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 20px;
    height: 100%;
}

.header-main-logo > img {
    flex-shrink: 0;
    max-height: 50px;
    transition: all 0.3s ease-in-out;
}

.header-main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    border-radius: 15px;
}

.header-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.header-main-nav ul li {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-main-nav ul li a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
}

.header-main-nav ul li a:hover {
    color: #1a7f62;
}

/* SVG chevron styling */
.header-main-nav ul li a svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================================================
   DROPDOWN MENU - FIXED: Better hover and click
   ============================================================ */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    padding: 5px 0;
    margin-top: 5px;
    transition: none;
}

.dropdown-content a {
    color: #333 !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    cursor: pointer;
    pointer-events: auto !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Light green background on hover - FIXED */
.dropdown-content a:hover {
    background-color: #d1f2eb !important;
    color: #1a7f62 !important;
}

/* Keep dropdown visible when hovering over it */
.header-main-nav ul li:hover .dropdown-content,
.header-main-nav ul li .dropdown-content:hover {
    display: block;
}

/* Fix for dropdown disappearing issue */
.header-main-nav ul li.dropdown {
    position: relative;
}

.header-main-nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

/* Ensure dropdown links are clickable */
.header-main-nav ul li .dropdown-content a {
    pointer-events: auto !important;
    cursor: pointer;
}

/* ============================================================
   PIAP MENU - WRAPPED TEXT
   ============================================================ */
.piap-menu {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 110px;
    text-align: center;
    line-height: 1.2;
    font-size: 0.7rem !important;
    padding: 4px 6px !important;
    display: block;
}

.piap-menu:hover {
    background: #27C2F5;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.35);
}

/* ============================================================
   CONTACT US WITH GRM - 3 LINES
   ============================================================ */
.contact-grm-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    padding: 5px 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    max-width: 120px;
    text-align: center;
}

.contact-grm-link .contact-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    display: block;
    width: 100%;
    line-height: 1.3;
}

.contact-grm-link .grm-badge-header {
    display: block;
    background: linear-gradient(135deg, var(--grm-red), var(--grm-red-hover));
    color: #fff !important;
    font-size: 0.45rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 2px;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    animation: pulse-grm 2s infinite;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

@keyframes pulse-grm {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 2px 20px rgba(231, 76, 60, 0.6);
    }
}

/* Hover effect for the contact link */
.header-main-nav ul li a .contact-grm-link:hover .grm-badge-header {
    transform: scale(1.05);
}

/* ============================================================
   LOGO LINK
   ============================================================ */
.header-main-sm {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: inline-block;
    cursor: pointer;
    height: 100%;
    padding: 15px 0;
}

.header-logo {
    height: 100%;
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.05);
    opacity: 0.9;
}

.header-main-sm-fb, 
.header-main-sm-in, 
.header-main-sm-twt {
    display: none !important;
}

/* ============================================================
   BURGER ICON - Centered vertically
   ============================================================ */
.burger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    position: relative;
    z-index: 1002;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    margin: 0;
    top: 0;
    transform: none;
}

.burger-icon span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.burger-icon.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.burger-icon.open span:nth-child(2) {
    opacity: 0;
}

.burger-icon.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* ============================================================
   BURGER MENU - Fixed centering
   ============================================================ */
.burger-menu {
    display: none !important;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 25px;
    z-index: 999;
    border-top: 3px solid #1a7f62;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    width: 100%;
}

.burger-menu.active {
    display: block !important;
}

.burger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.burger-menu ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

.burger-menu ul li:last-child {
    border-bottom: none;
}

.burger-menu ul li a {
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.burger-menu ul li a:hover {
    color: #1a7f62 !important;
    padding-left: 5px;
}

/* Burger menu dropdown items */
.burger-menu .gk_dropdown-content {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
}

.burger-menu .gk_dropdown-content.show {
    display: block;
}

.burger-menu .gk_dropdown-content li {
    border-bottom: none;
    padding: 5px 0;
}

.burger-menu .gk_dropdown-content li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555 !important;
}

.burger-menu .gk_dropdown-content li a:hover {
    color: #1a7f62 !important;
}

.burger-menu .gk_toggle-btn {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a7f62;
    margin-left: 10px;
    display: inline-block;
}

.burger-menu .burger-contact-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.burger-menu .burger-grm-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--grm-red), var(--grm-red-hover));
    color: #fff !important;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    animation: pulse-grm 2s infinite;
}

.burger-menu .piap-menu {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 100%;
    text-align: left;
    line-height: 1.3;
    font-size: 1rem !important;
    padding: 3px 0 !important;
}

/* ============================================================
   SOCIAL MEDIA ICONS
   ============================================================ */
.header-main-sm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
    margin-left: auto;
}

.header-main-sm-fb,
.header-main-sm-in,
.header-main-sm-twt {
    width: 35px;
    height: 35px;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 0.3s ease-in-out;
}

.header-main-sm-fb {
    background-image: url(../img/facebook.png);
}

.header-main-sm-fb:hover {
    background-image: url(../img/facebook-color.png);
}

.header-main-sm-in {
    background-image: url(../img/instagram.png);
}

.header-main-sm-in:hover {
    background-image: url(../img/instagram-color.png);
}

.header-main-sm-twt {
    background-image: url(../img/twit.jpg);
}

.header-main-sm-twt:hover {
    background-image: url(../img/twit-color.jpg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .header-main-nav ul li a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    .contact-grm-link .contact-text {
        font-size: 0.8rem;
    }
    .contact-grm-link .grm-badge-header {
        font-size: 0.4rem;
        padding: 1px 6px;
    }
    .contact-grm-link {
        max-width: 100px;
    }
    .piap-menu {
        font-size: 0.65rem !important;
        max-width: 90px;
    }
    .header-main-nav ul {
        gap: 1px;
    }
}

@media (max-width: 992px) {
    .header-main-nav ul li a {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .contact-grm-link .contact-text {
        font-size: 0.7rem;
    }
    .contact-grm-link .grm-badge-header {
        font-size: 0.38rem;
        padding: 1px 5px;
    }
    .contact-grm-link {
        max-width: 85px;
    }
    .piap-menu {
        font-size: 0.6rem !important;
        max-width: 80px;
        padding: 3px 4px !important;
    }
    .header-main-nav ul {
        gap: 0px;
    }
}

/* ============================================================
   MOBILE: Hide nav items, show burger icon
   ============================================================ */
/* ============================================================
   MOBILE: Hide nav items, show burger icon at 992px
   ============================================================ */
@media (max-width: 1055px) {
    .header-main-nav {
        display: none !important;
    }
    
    .burger-icon {
        display: flex !important;
    }
    
    .burger-menu.active {
        display: block !important;
    }
    
    .header-main-logo {
        padding: 3px 15px;
    }
    
    .header-main-logo > img {
        max-height: 40px;
    }
    
    .header-main-sm {
        display: none !important;
    }
    
    .header-main-nav ul li {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .header-main {
        height: 65px;
    }
    
    .burger-menu {
        top: 65px;
        padding: 15px 20px;
    }
    
    .burger-menu ul li a {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .header-main-logo {
        padding: 2px 10px;
    }
    .header-main-logo > img {
        max-height: 35px;
    }
    .burger-icon span {
        width: 22px;
        height: 2.5px;
        margin: 3px 0;
    }
    .header-main {
        height: 55px;
    }
    .burger-menu {
        top: 55px;
        padding: 12px 15px;
    }
    .burger-menu ul li a {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    .burger-menu .burger-grm-badge {
        font-size: 0.45rem;
        padding: 2px 10px;
    }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

p {
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================================
   MISC
   ============================================================ */
.w-3 {
    width: 1rem;
}

.h-3 {
    width: 1rem;
}

.maker {
    display: none;
}

.dropdown .chevron {
    transition: transform 0.3s ease;
}

.dropdown.open .chevron {
    transform: rotate(180deg);
}