/* ========================================
   TOMEBAY WEBSITE - STYLES
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 2rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
}

h4 {
    font-size: 1.25rem;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1557b0;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.navbar-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.navbar-menu.active {
    display: flex;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: #333;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link:hover {
    background-color: #f5f5f5;
    color: #1a73e8;
}

.nav-link.active {
    color: #1a73e8;
    font-weight: 600;
    background-color: #f5f5f5;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1557b0;
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        box-shadow: none;
        gap: 2rem;
    }

    .nav-link {
        padding: 0;
        border-bottom: none;
        border-bottom: 3px solid transparent;
    }

    .nav-link:hover {
        background-color: transparent;
        border-bottom-color: #1a73e8;
    }

    .nav-link.active {
        background-color: transparent;
        border-bottom-color: #1a73e8;
    }

    .hamburger {
        display: none;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

button {
    font-family: inherit;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    text-align: center;
    gap: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.hero-image {
    width: 100%;
    max-width: 400px;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 4rem 1rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: row;
        width: auto;
    }

    .hero-image {
        flex: 1;
    }
}

/* ========================================
   SECTIONS & SPACING
   ======================================== */
.highlights {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}

.content-section {
    padding: 3rem 1rem;
}

.content-section.bg-light {
    background-color: #f9f9f9;
}

.page-hero {
    padding: 3rem 1rem 2rem;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* ========================================
   CARDS & GRIDS
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
}

/* ========================================
   FEATURES LIST
   ======================================== */
.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #666;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1a73e8, #ddd);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    top: 8px;
    z-index: 1;
}

.timeline-marker.completed {
    background-color: #34a853;
}

.timeline-marker.current {
    background-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
}

.timeline-marker.planned {
    background-color: #ddd;
}

.timeline-content {
    margin-left: 60px;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #e0e0e0;
}

@media (min-width: 768px) {
    .timeline-content {
        width: calc(50% - 40px);
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: auto;
        border-left: none;
        border-right: 3px solid #e0e0e0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
        margin-right: 0;
    }
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.current {
    background-color: #e3f2fd;
    color: #1a73e8;
}

.status-badge.planned {
    background-color: #f5f5f5;
    color: #666;
}

.timeline-content ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* ========================================
   PAYMENTS SECTION
   ======================================== */
.payments-section {
    padding: 3rem 1rem;
    background-color: #f0f4ff;
    text-align: center;
}

.payments-section h2 {
    margin-bottom: 1rem;
}

.payments-section p {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-email {
    font-size: 1.25rem;
    color: #1a73e8;
    font-weight: 600;
}

/* ========================================
   FORMS
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
}

.required {
    color: #d32f2f;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ========================================
   LEGAL CONTENT
   ======================================== */
.legal-content {
    padding: 3rem 1rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: #1a73e8;
    font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #1a1a1a;
    color: white;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
    min-height: calc(100vh - 140px);
}

/* ========================================
   RESPONSIVE IMAGES
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a73e8;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

/* ========================================
   TABLET & LARGER SCREENS
   ======================================== */
@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }

    .container {
        padding: 0 2rem;
    }

    .navbar-container {
        padding: 1rem 2rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .footer,
    .btn-primary,
    .btn-secondary,
    .hamburger {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        color: black;
    }
}