/* ========================================
   梁秀眉個人網站 - 主要樣式表
   ======================================== */

/* === 基礎設定 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色彩 */
    --orange-light: #FFA366;
    --orange: #FF7F3E;
    --orange-dark: #E86A2D;
    
    --cream-light: #FFF9F0;
    --cream: #F5EBE0;
    --cream-dark: #E8DDD0;
    
    --gray-light: #D4D4D4;
    --gray: #A8A8A8;
    --gray-dark: #6B6B6B;
    
    --green-light: #7A9B8E;
    --green: #4A6B5E;
    --green-dark: #2F4A3F;
    
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif TC', serif;
    background-color: var(--cream-light);
    color: var(--green-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* === 容器 === */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 2rem;
    }
}

/* === 導覽列 === */
#navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--gray-dark);
    display: none;
}

@media (min-width: 768px) {
    .logo-subtitle {
        display: block;
    }
}

.nav-links {
    display: none;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green-dark);
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--orange);
    background-color: var(--cream-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--green-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding-bottom: 1rem;
}

.mobile-nav.active {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--green-dark);
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mobile-nav a:hover {
    color: var(--orange);
    background-color: var(--cream-light);
}

/* === 標題樣式 === */
.heading-1 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .heading-1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .heading-1 {
        font-size: 3.75rem;
    }
}

.heading-2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .heading-2 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .heading-2 {
        font-size: 3rem;
    }
}

.heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .heading-3 {
        font-size: 1.875rem;
    }
}

/* === 文字樣式 === */
.body-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .body-text {
        font-size: 1.125rem;
    }
}

.body-text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-dark);
}

@media (min-width: 768px) {
    .body-text-lg {
        font-size: 1.25rem;
    }
}

.small-text {
    font-size: 0.75rem;
    color: var(--gray-light);
}

/* === 按鈕 === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--orange-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--green);
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--green-dark);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--orange);
    color: var(--orange);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    background-color: transparent;
    cursor: pointer;
}

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

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* === 卡片 === */
.card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
    padding: 2rem;
    text-align: center;
}

.card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon.bg-orange {
    background-color: rgba(255, 127, 62, 0.1);
    color: var(--orange);
}

.card-icon.bg-green {
    background-color: rgba(74, 107, 94, 0.1);
    color: var(--green);
}

.card-icon.bg-orange-dark {
    background-color: rgba(232, 106, 45, 0.1);
    color: var(--orange-dark);
}

.card-link {
    margin-top: 1.5rem;
    color: var(--orange);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.card:hover .card-link {
    transform: translateX(0.5rem);
}

.card-link.text-green {
    color: var(--green);
}

.card-link.text-orange-dark {
    color: var(--orange-dark);
}

/* === 區塊樣式 === */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

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

.bg-cream {
    background-color: var(--cream);
}

.bg-green-dark {
    background-color: var(--green-dark);
}

.bg-gradient {
    background: linear-gradient(to bottom right, rgba(255, 127, 62, 0.05), var(--cream-light));
}

.text-white {
    color: var(--white);
}

.text-orange {
    color: var(--orange);
}

.text-green {
    color: var(--green);
}

.text-center {
    text-align: center;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(to bottom right, var(--cream-light), var(--white), rgba(255, 127, 62, 0.1));
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--orange);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4 / 5;
    background-color: var(--cream);
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* === Grid Layouts === */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === Quote Section === */
.quote-container {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .quote-text {
        font-size: 1.875rem;
    }
}

.quote-author {
    color: var(--cream-light);
    font-size: 1.125rem;
}

/* === CTA Container === */
.cta-container {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.cta-container h2 {
    margin-bottom: 1.5rem;
}

.cta-container p {
    margin-bottom: 2rem;
}

/* === Footer === */
.footer {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--cream-light);
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: var(--cream-light);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--cream-light);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--orange);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 127, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--orange);
    color: var(--white);
}

.footer-address {
    color: var(--cream-light);
    font-size: 0.875rem;
}

.footer-address p {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--green);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* === Icons === */
.icon-inline {
    display: inline-block;
    vertical-align: middle;
}

/* === 輔助類別 === */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* === 響應式工具 === */
@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}

