/* Magic Gate PDX — Stylesheet */

/* ========================
   CSS Variables
======================== */
:root {
    --orange: #E85D04;
    --orange-light: #FB8500;
    --teal: #0096C7;
    --teal-light: #33B5E5;
    --dark: #1A1A1A;
    --gray: #555555;
    --light-gray: #F5F5F5;
    --cream: #FAF6EE;
    --white: #FFFFFF;
    --font-main: 'Segoe UI', Arial, sans-serif;
}

/* ========================
   Reset & Base
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================
   Navigation
======================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px;
    background: var(--orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
    border-bottom: 3px solid var(--teal);
    padding-bottom: 2px;
}

.nav-links a.active {
    color: var(--white);
    border-bottom: 3px solid var(--teal);
    padding-bottom: 2px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--teal-light);
}

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

.btn-secondary:hover {
    background: var(--orange);
    color: var(--white);
}

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

.btn-white:hover {
    background: var(--cream);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ========================
   Hero
======================== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2C3E50 100%);
    color: var(--white);
    padding: 80px 32px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--teal);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ========================
   Slideshow
======================== */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 480px;
    object-fit: cover;
}

.slide-placeholder {
    min-width: 100%;
    height: 480px;
    background: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.slideshow-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slideshow-btn.prev { left: 12px; }
.slideshow-btn.next { right: 12px; }

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: var(--teal);
}

/* ========================
   Sections
======================== */
section {
    padding: 72px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

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

/* ========================
   Services Preview (Home)
======================== */
.services-preview {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

/* ========================
   Why Magic Gate
======================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.why-item {
    text-align: center;
    padding: 24px;
}

.why-item .why-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.why-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--orange);
}

.why-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================
   CTA Section
======================== */
.cta-section {
    background: var(--teal);
    color: var(--white);
    text-align: center;
    padding: 64px 32px;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    margin-bottom: 32px;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ========================
   Footer
======================== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 32px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 32px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a:hover {
    color: var(--teal);
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    max-width: 1100px;
    margin: 0 auto;
}

/* ========================
   Services Page
======================== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2C3E50 100%);
    color: var(--white);
    padding: 64px 32px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    min-width: 48px;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.service-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================
   Portfolio Page
======================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.portfolio-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.portfolio-placeholder {
    width: 100%;
    height: 240px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.portfolio-caption {
    padding: 16px;
    background: var(--white);
}

.portfolio-caption h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.portfolio-caption p {
    font-size: 0.85rem;
    color: var(--gray);
}

.portfolio-category {
    margin-bottom: 48px;
}

.portfolio-category h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--orange);
    border-bottom: 3px solid var(--teal);
    padding-bottom: 8px;
    display: inline-block;
}

/* ========================
   About Page
======================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-highlight {
    background: var(--cream);
    border-left: 4px solid var(--teal);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--dark);
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 16px;
}

/* ========================
   Contact Page
======================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-detail-icon {
    font-size: 1.4rem;
    min-width: 32px;
}

.contact-detail h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-detail p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--cream);
    padding: 40px;
    border-radius: 12px;
}

.contact-form h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit:hover {
    background: var(--teal-light);
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--orange);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        gap: 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
