/* ============================================
   COMMON STYLES
   Reusable classes used across multiple pages
   ============================================ */

/* Container - Used everywhere */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Container */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
        padding: 0 3rem;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 4rem;
    }
}

/* Header and Navigation - Common Styles */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Accurate Header Styles (from React component) */
.header-accurate {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-accurate {
    padding: 1.5rem 0;
}

.navbar-accurate .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-accurate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-accurate:hover {
    opacity: 0.8;
}

.logo-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon-text {
    color: var(--white);
    font-weight: bold;
    font-size: 0.875rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.nav-menu-accurate {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu-accurate a {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-700);
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-menu-accurate a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.nav-menu-accurate a:hover {
    color: var(--orange);
}

.nav-menu-accurate a:hover::after {
    width: 100%;
}

.nav-menu-accurate a.nav-active {
    color: var(--orange);
}

.nav-menu-accurate a.nav-active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer - Common Styles */
.footer-accurate {
    background-color: var(--dark-bg);
    color: var(--gray-300);
    padding: 2rem 0;
    border-top: 1px solid var(--gray-700);
}

.footer-container-accurate {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.footer-copyright {
    margin-bottom: 1rem;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.footer-ippo {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-ippo:hover {
    color: var(--orange-hover);
}

.footer-contact-accurate {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.footer-contact-accurate p {
    color: var(--gray-300);
}

.footer-email {
    color: var(--orange);
    white-space: nowrap;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--orange-hover);
}

/* Responsive Footer */
@media (min-width: 768px) {
    .footer-container-accurate {
        flex-direction: row;
        text-align: left;
    }

    .footer-copyright {
        margin-bottom: 0;
    }

    .footer-contact-accurate {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Common Section Styles */
.section {
    padding: 4rem 0;
}

.section-white {
    background-color: var(--white);
    padding: 4rem 0;
}

.section-light {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.section-dark {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 4rem 0;
}

/* Common Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Common Card Styles */
.card {
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-border {
    border: 2px solid var(--gray-800);
}

/* Common Image Styles */
.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.img-rounded {
    border-radius: 0.5rem;
}

/* Common Link Styles */
.link-orange {
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.link-orange:hover {
    text-decoration: underline;
}

/* Common Carousel Styles */
.carousel-arrow {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
    font-size: 1.5rem;
    color: var(--gray-600);
    opacity: 0.8;
}

.carousel-arrow:hover {
    opacity: 1;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carousel-content {
    flex: 1;
    padding: 0 2rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--orange);
}

.dot:not(.active) {
    background-color: var(--gray-600);
}

/* Common Text Styles */
.text-center {
    text-align: center;
}

.text-small {
    font-size: 0.875rem;
}

.text-gray {
    color: var(--gray-600);
}

.text-gray-light {
    color: var(--gray-300);
}

/* Common Title Styles */
.title-section {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.title-section-white {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 2rem;
}

.title-section-orange {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--orange);
}

.subtitle-orange {
    color: var(--orange);
    font-size: 0.875rem;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .header-accurate {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-menu-accurate {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-menu-accurate.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    /* Scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

