/* =============================================
   SharpMaster - Knife Sharpening Website
   Common CSS Styles
   Shared across all pages
   ============================================= */

/* =============================================
   CSS Reset & Base Styles
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

ul {
    list-style: none;
}

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

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1rem;
}

/* =============================================
   Header & Navigation
   ============================================= */

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e67e22;
    letter-spacing: 1px;
}

.logo span {
    color: #2c3e50;
}

/* Mobile Menu Checkbox Hack */
.menu-checkbox {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.menu-checkbox:checked ~ .nav-links {
    display: flex;
}

.menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.menu-checkbox:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-checkbox:checked ~ .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

.nav-links li {
    margin: 0.5rem 0;
}

.nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #e67e22;
    color: #fff;
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    opacity: 0.9;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background-color: #e67e22;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* =============================================
   Sections
   ============================================= */

section {
    padding: 3rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Feature Cards
   ============================================= */

.features {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #e67e22;
    margin-bottom: 0.75rem;
}

/* =============================================
   CTA Section
   ============================================= */

.cta-section {
    background-color: #e67e22;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    background-color: #fff;
    color: #e67e22;
}

.cta-section .btn:hover {
    background-color: #fafafa;
    color: #d35400;
}

/* =============================================
   Content Sections
   ============================================= */

.content-section {
    max-width: 900px;
    margin: 0 auto;
}

.content-block {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-block h3 {
    color: #e67e22;
    margin-bottom: 1rem;
}

/* =============================================
   Info Cards / Service Cards
   ============================================= */

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.info-card-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-image,
.map-image,
.image-section {
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.workshop-image img,
.map-image img,
.image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.info-card-content {
    padding: 1.5rem;
}

.info-card-content h3 {
    margin-bottom: 0.5rem;
}

.info-card-content .price {
    color: #e67e22;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.info-card-content .duration {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* =============================================
   Comparison Table
   ============================================= */

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background-color: #fafafa;
}

tr:last-child td {
    border-bottom: none;
}

/* =============================================
   Angle Table
   ============================================= */

.angle-table {
    margin: 2rem 0;
}

.angle-table table {
    font-size: 0.95rem;
}

/* =============================================
   Pros & Cons Lists
   ============================================= */

.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pros, .cons {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 10px;
}

.pros h4 {
    color: #27ae60;
}

.cons h4 {
    color: #e74c3c;
}

.pros ul, .cons ul {
    margin-top: 1rem;
}

.pros li, .cons li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pros li::before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
}

.cons li::before {
    content: "✗";
    color: #e74c3c;
    position: absolute;
    left: 0;
}

/* =============================================
   Quote Section
   ============================================= */

.quote-section {
    background-color: #fafafa;
    border-left: 4px solid #e67e22;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.quote-section p {
    font-style: italic;
    margin-bottom: 0;
}

/* =============================================
   Footer
   ============================================= */

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

footer a {
    color: #e67e22;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* =============================================
   Placeholder Images
   ============================================= */

.placeholder {
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 500;
}

/* =============================================
   Mobile-First Responsive Design
   ============================================= */

/* Tablet Breakpoint (768px and up) */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav {
        padding: 1rem 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 0.5rem;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
    }

    .hero {
        padding: 5rem 2rem;
        min-height: 60vh;
    }

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

    section {
        padding: 4rem 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pros-cons {
        grid-template-columns: 1fr 1fr;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* Desktop Breakpoint (1024px and up) */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title p {
        font-size: 1.1rem;
    }
}

/* Large Desktop Breakpoint (1200px and up) */
@media (min-width: 1200px) {
    nav,
    section,
    .content-section,
    .features-grid,
    .info-cards {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =============================================
   Utility Classes
   ============================================= */

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

.text-orange {
    color: #e67e22;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}
