/* 
* TTGUHABHU - Main Stylesheet
* Premium Meat Supplier - Philippines
* Mobile-responsive design
*/

/* Base Styles & CSS Reset */
:root {
    --primary: #8b2801;
    --secondary: #ce6d24;
    --accent: #ffa94d;
    --dark: #2d1e1e;
    --light: #fff5eb;
    --gray: #757575;
    --light-gray: #f5f5f5;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.2rem;
}

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

a:hover {
    color: var(--primary);
}

ul {
    list-style: none;
}

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

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

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
}

.btn.primary:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn.secondary:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark);
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    background: linear-gradient(to right, rgba(255, 245, 235, 0.95) 50%, rgba(255, 245, 235, 0.8) 100%), 
                url('hero-bg.svg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Products Section */
.products {
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    padding: 2rem 1.5rem;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    margin-bottom: 1.5rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.product-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.product-link:hover {
    color: var(--primary);
}

/* About Section */
.about .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature img {
    margin: 0 auto 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Partners Section */
.partners {
    background-color: white;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.partner {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Games Section */
.games {
    background-color: var(--light-gray);
    position: relative;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.game-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.game-links {
    margin-top: 1.5rem;
}

.game-links li {
    margin-bottom: 1rem;
}

.game-links li a {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
}

.game-links li a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.news-item {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: var(--border-radius);
}

.news-item a {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(to right, rgba(45, 30, 30, 0.95), rgba(45, 30, 30, 0.8)), 
                url('contact-bg.svg') center/cover no-repeat;
    color: white;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item img {
    margin-right: 1rem;
    filter: invert(1);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.social-link img {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.link-column ul li {
    margin-bottom: 0.7rem;
}

.link-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.link-column ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-icon {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-icon:hover {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container,
    .about .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
        width: 30px;
        position: relative;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: var(--dark);
        height: 3px;
        width: 30px;
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s;
    }
    
    .nav-toggle-label span::before {
        content: '';
        bottom: 8px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 8px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        width: 100%;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
    }
    
    nav ul li {
        margin: 0;
        margin-bottom: 1rem;
    }
    
    nav ul li a {
        opacity: 0;
        transition: opacity 0.15s ease;
    }
    
    .nav-toggle:checked ~ nav {
        transform: scale(1, 1);
    }
    
    .nav-toggle:checked ~ nav ul li a {
        opacity: 1;
        transition: opacity 0.3s ease 0.3s;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}
