/* ---
   style.css for Porto Business Network
   --- */

/* --- 1. Global Styles & Variables --- */
:root {
    --primary-color: #1B2939; /* Deep Blue */
    --secondary-color: #DCA94C; /* Gold/Ochre */
    --secondary-gradient: linear-gradient(45deg, #DCA94C, #EDCA7A);
    --accent-color: #5DADEA; /* Light Blue */
    --background-color: #F8F9FA; /* Light Gray */
    --text-color: #333333; /* Dark Gray */
    --white-color: #FFFFFF;
    
    --font-family: 'Poppins', sans-serif;
    --line-height: 1.6;
    --container-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }

.text-center {
    text-align: center;
}

/* --- 2. Buttons & Links --- */
a {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    padding: 10px 24px;
}

/* --- 3. Header & Navigation --- */
.header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo a:hover {
    opacity: 0.9;
}

/* Navigation Links */
.nav-link {
    position: relative;
    color: var(--white-color);
    font-weight: 600;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--white-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Remove margin from nav-links a:not(.btn) since we're using gap */
.nav-links a:not(.btn) {
    margin-left: 0;
}

.nav-links .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.nav-links .btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    
    background-color: var(--white-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- 4. Page Sections --- */
section {
    padding: 80px 0;
}

/* Hero Section */
.hero {
    background: url('../images/hero-image.jpg') no-repeat center center/cover;
    background-size: cover;
    min-height: 80vh; /* Set minimum height for the hero section */
    display: flex;
    align-items: flex-start;
    /* padding-top: calc(60vh / 3); */
    color: var(--white-color);
    background-color: var(--primary-color); /* Fallback color */
    text-align: center;
    padding: 0;
    position: relative;
}

.hero .container {
    width: 100%;
    padding-top: calc(80vh / 8);
}

.hero h1, .hero p, .hero a {
    position: relative; /* Ensure text and buttons are above the background */
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); Add a dark overlay for better text visibility */
    z-index: 0;
}

.hero h1 {
    color: var(--white-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* Hero Text Box */
.hero-text-box {
    /* padding: 1rem; */
    margin-top: 0;
    border-radius: var(--border-radius);
    max-width: 100%;
    margin: 0 auto;
    /* background-color: rgba(27, 41, 57, 0.8);  */
}

.hero-text-box h1 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

/* Offer Section */
.offer-section { 
    background-color: var(--white-color); 
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.offer-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.offer-card .material-icons {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.offer-card {
    text-align: center;
    padding: 2rem;
}

.offer-section .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin: 0 auto;
    width: 33%;
}

.offer-section .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Mission Section */
.mission-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.mission-section h2 { color: var(--white-color); }
.mission-section p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Events Section */
.events-section { background-color: var(--background-color); }

.event-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    margin: 40px auto;
    max-width: 900px;
    overflow: hidden;
}

.event-date {
    background: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 30px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .month { font-size: 1rem; }
.event-date .day { font-size: 2.5rem; line-height: 1; }

.event-details {
    padding: 30px;
    flex: 1;
}

.event-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Values Section */
.values-section {
    background: var(--white-color);
    text-align: center;
}

.values-section .value-icon {
    max-width: 200px;
    /* max-height: 150px; */
    margin: 0 auto 20px auto;
}

.values-section ul {
    list-style: none;
    max-width: 800px;
    margin: 20px auto 0 auto;
    text-align: left;
}

.values-section li {
    margin-bottom: 10px;
}

.values-section .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin: 0 auto;
    width: 33%;
}

.values-section .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white-color);
    position: relative;
}

.value-card {
    box-shadow: none;
    border-radius: 0;
}

.value-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 10%;
    height: 80%;
    /* width: 2px; */
    background-color: var(--secondary-color);
    opacity: 0.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card:not(:last-child)::after {
        display: none; /* Remove vertical separators on mobile */
    }

    .value-card:not(:last-child) {
        border-bottom: 1px solid var(--secondary-color);
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .values-section .btn-secondary {
        width: 90%;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color); 
    text-align: center;
    vertical-align: middle;
    min-height: 50vh;
    padding: 80px 0;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../images/hero-image.jpg') no-repeat center center/cover;

}

.cta-section h2 { 
    color: var(--white-color);
}

.cta-section p { 
    color: var(--white-color);
}

.cta-section .btn-primary { 
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    padding: 10px 24px;
}

.cta-section .btn-primary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* --- 5. Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 40px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- 6. Responsiveness --- */
@media (max-width: 768px) {
    h1 { 
        font-size: 1.6rem; /* Smaller font size for mobile */
    }
    
    .hero-text-box h1 {
        font-size: 1.6rem; /* Ensure hero h1 is also smaller on mobile */
        margin-bottom: 10px; /* Slightly reduce margin for better mobile spacing */
    }
    
    h2 { font-size: 1.8rem; }
    
    .nav-links { 
        display: none; /* Simplification for this static example */ 
    }
    
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        padding: 20px;
    }

    .offer-section .btn-secondary {
        width: 90%; /* Wider button on mobile */
        margin: 0 auto; /* Center the button */
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0;
    }
}

/* --- 7. Modals --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--border-radius);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Add scroll margin to account for sticky header */
#offer {
    scroll-margin-top: 130px; /* Adjust this value based on your header height */
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

.button-group {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button-group .btn {
    width: 45%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.button-group .btn-primary {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.button-group .btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.button-group .btn-primary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.button-group .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .button-group .btn {
        width: 90%;
    }
}

.values-summary, .full-values-list ol {
    list-style: none;
    max-width: 800px;
    margin: 20px auto 0 auto;
    text-align: left;
    padding: 0;
}

.values-summary li {
    margin-bottom: 10px;
}

.full-values-list {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
}

.full-values-list:not([hidden]) {
    max-height: 2000px; /* Adjust if list gets longer */
    opacity: 1;
    margin-top: 30px;
}

.full-values-list ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.full-values-list li {
    margin-bottom: 15px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    width: 44px;
    height: 44px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.back-to-top.visible {
    display: flex;
}

/* Event buttons hover styles */
a[href*="meetup.com/porto-business-network/events/"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

a[href*="meetup.com/porto-business-network/events/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Specific styles for primary event buttons */
a[href*="meetup.com/porto-business-network/events/"].btn-primary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Specific styles for secondary event buttons */
a[href*="meetup.com/porto-business-network/events/"].btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-text-box .btn {
    animation: float 3s ease-in-out infinite;
}

.hero-text-box .btn:hover {
    animation-play-state: paused;
    transform: translateY(-2px);
}

/* Privacy Policy Section */
.privacy-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.privacy-section h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 2.5rem;
    text-align: left;
}

.privacy-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.privacy-content a:hover {
    color: var(--primary-color);
}
