/* ==========================================================================
   Tongariro Consultoria - Professional Website Styles
   Brand Colors: Gold/Yellow (#D4A574, #E6B885) + Dark Backgrounds (#1a1a1a, #2d2d2d)
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal overflow globally */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 50%, #F2D7A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.15);
    color: #B8956A;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-description {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 50%, #F2D7A7 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #D4A574;
    border: 2px solid #D4A574;
}

.btn-secondary:hover {
    background: #D4A574;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #EDB74A;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Main Content - Compensate for fixed header */
main {
    margin-top: 80px;
}

.navbar {
    padding: 0.5rem 0;
    height: 80px;
    display: flex;
    align-items: center;
}

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

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: normal;
    padding: 5px 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 100%);
    color: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo-icon i {
    font-size: 1.2rem;
}

.logo-text {
    color: #1a202c;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2d2d2d;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta-button {
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 100%);
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
}

.nav-link.cta-button::after {
    display: none;
}

.nav-link.cta-button:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    background: rgb(34, 34, 34);
    background-color: rgb(34, 34, 34) !important;
    overflow: hidden;
    padding: 2rem 0 0 0;
}

.hero-background {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: block;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    animation: fadeInUp 1s ease;
}

.hero-logo img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-main {
    display: block;
    font-weight: 700;
}

.hero-emphasis {
    display: block;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 50%, #F2D7A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 700px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 2rem 0 6rem 0;
    background: #f7fafc;
    margin-top: 0;
    position: relative;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border: 2px solid #D4A574;
    transform: scale(1.02);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #1a1a1a;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.service-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D4A574;
    font-weight: bold;
}

.service-cta {
    color: #D4A574;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-cta:hover {
    color: #B8956A;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    text-align: left;
}

.about-highlights {
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: #edf2f7;
    transform: translateX(10px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    color: #1a1a1a;
    font-size: 1.2rem;
}

.highlight-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.highlight-content p {
    color: #4a5568;
    font-size: 0.95rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.visual-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #D4A574;
}

.visual-card:hover {
    transform: scale(1.05);
}

.visual-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.visual-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.visual-content p {
    opacity: 0.9;
}

/* Results Section */
.results {
    padding: 6rem 0;
    background: #1a1a1a;
    color: white;
}

.results .section-title {
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 50%, #F2D7A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results .section-description {
    color: #cbd5e0;
}

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

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.result-metric {
    margin-bottom: 1.5rem;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 50%, #F2D7A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #cbd5e0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-details h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.result-details p {
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f7fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-description {
    color: #4a5568;
    margin-bottom: 3rem;
    text-align: left;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4A574 0%, #E6B885 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon i {
    color: #1a1a1a;
    font-size: 1.2rem;
}

.method-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1a202c;
}

.method-info p {
    color: #4a5568;
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4A574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #EDB74A;
    color: #1a1a1a;
    padding: 3rem 0 2rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: normal;
}

/* Partner Photos */
.partner-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #D4A574;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.partner-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.4);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.partner-photo:hover img {
    transform: scale(1.1);
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-logo .logo-text {
    color: #1a1a1a;
}

.footer-description {
    color: #2d2d2d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #000;
}

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

.link-group h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #000;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #2d2d2d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-logo img {
        max-width: 400px;
    }
    
    /* Fix Leadership Section Overflow */
    #partner .container > div {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 100% !important;
    }
    
    #partner .container > div > div {
        order: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Partner photo should be centered on mobile */
    .partner-photo {
        margin: 0 auto 1.5rem;
    }
    
    /* Ensure all nested divs respect viewport */
    #partner div[style*="display: grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    #partner div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix any inline styles causing overflow */
    #partner * {
        max-width: 100% !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        max-width: 300px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Additional mobile fixes for leadership */
    #partner h3 {
        font-size: 1.5rem !important;
    }
    
    #partner p {
        font-size: 0.95rem !important;
    }
    
    #partner div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }
}