/*
Theme Name: Touch Wood - Home-Cooked Delights
Theme URI: https://www.touchwoodfoodemporium.co.za
Author: ApexNet
Author URI: https://www.apexnet.co.za
Description: A fully customizable WordPress theme for Touch Wood - Home-Cooked Delights with wooden aesthetic.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: touch-wood-theme
Domain Path: /languages
Tags: restaurant, food, responsive, customizable, business
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A0522D;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c1810;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   WOODEN TEXTURE BACKGROUND
   ============================================ */

.wood-texture {
    background: linear-gradient(90deg, #5D4037 0%, #6D4C41 25%, #795548 50%, #6D4C41 75%, #5D4037 100%);
    background-size: 200% 100%;
    animation: wood-shift 20s ease infinite;
    position: relative;
}

.wood-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px);
    pointer-events: none;
}

@keyframes wood-shift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: linear-gradient(135deg, #D7CCC8 0%, #BCAAA4 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    max-width: 60px;
    height: auto;
}

.site-logo-text {
    flex-grow: 1;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #2c1810;
    font-family: 'Playfair Display', serif;
}

.site-tagline {
    font-size: 0.9rem;
    color: #6D4C41;
    font-style: italic;
    margin: 0.25rem 0 0 0;
}

.main-navigation {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #2c1810;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-navigation a:hover {
    border-bottom-color: #8B4513;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-image 0.3s ease-in-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: inline-block;
    background: #8B4513;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.hero-cta:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundFade {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.hero-section.image-transition::before {
    animation: backgroundFade 1s ease-in-out;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 0;
    background: #fafaf8;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 3px solid #8B4513;
    padding-bottom: 1rem;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 100%;
}

.about-image {
    flex: 1;
    min-width: 100%;
}

.about-text:only-child {
    min-width: auto;
    flex-basis: 100%;
}

.about-image:only-child {
    min-width: auto;
    flex-basis: 100%;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SERVICES/DISHES SECTION
   ============================================ */

.services-section {
    padding: 80px 0;
    background: #fff;
}

.services-grid {
    display: block;
    margin-top: 2rem;
}

/* Plugin content area - styles can be added by plugins */


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #6D4C41 0%, #5D4037 100%);
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #F5DEB3;
    backdrop-filter: blur(10px);
}

.testimonial-quote {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #F5DEB3;
    color: #8B4513;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.cta-button:hover {
    background: #D2B48C;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #2c1810 0%, #3d2817 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #F5DEB3;
    margin-bottom: 1.5rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #F5DEB3;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-links a:hover {
    background: #8B4513;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        min-width: auto;
    }

    .about-image {
        min-width: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   EMBEDDED CONTENT & EMBEDS
   ============================================ */

/* Allow iframes and embedded content to display properly */
iframe {
    max-width: 100%;
    display: block;
}

/* WordPress embed wrapper */
.wp-embed,
.wp-embed-responsive {
    max-width: 100%;
    overflow: visible !important;
}

/* Instagram and other social embeds */
.instagram-media,
.twitter-tweet,
.fb_iframe_widget,
.tiktok-embed,
.pinterest-pin,
[class*="embed"],
[class*="iframe"] {
    max-width: 100% !important;
    overflow: visible !important;
}

/* Responsive video/embed wrapper */
.embed-responsive,
.video-wrapper,
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-responsive iframe,
.video-wrapper iframe,
.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure entry content doesn't overflow */
.entry-content {
    overflow: visible !important;
    word-wrap: break-word;
}

.entry-content iframe {
    max-width: 100%;
    margin: 1rem 0;
}

.entry-content figure {
    max-width: 100%;
    overflow: visible;
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */

.wp-caption {
    background: #f1f1f1;
    border: 1px solid #ddd;
    text-align: center;
    padding: 4px;
    margin: 10px 0;
}

.wp-caption-text {
    margin: 0;
    padding: 0 4px 5px;
}

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-smiley {
    margin: 0 !important;
    max-height: 1em;
}

blockquote {
    border-left: 4px solid #8B4513;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    color: #666;
}

/* ============================================
   MAINTAINER SECTION
   ============================================ */

.maintainer-section {
    background: #1a1a1a;
    color: #999;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #333;
}

.maintainer-section p {
    margin: 0;
    padding: 0;
}

.maintainer-section a {
    color: #AAA;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.maintainer-section a:hover {
    color: #CCC;
}

