/* ============================================================
   YORK CITY TRADERS KFT — Main Stylesheet
   Light & Clean | Green + Earth Tones
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #3a6b4a;
    --primary-dark: #2d5239;
    --primary-light: #e8f0eb;
    --primary-hover: #4a8a5e;
    --accent: #c8973e;
    --accent-light: #fdf6e9;
    --text-dark: #1a2332;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-soft: #f7f9f8;
    --bg-section: #f0f4f1;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.5px; }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--text-light); }
.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo area */
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon-wrap {
    width: 48px;
    height: 48px;
    perspective: 800px;
}
.logo-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoFlip 4s ease-in-out infinite;
}
@keyframes logoFlip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}
.logo-text { line-height: 1.2; }
.logo-text .company-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}
.logo-text .company-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-switch a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.lang-switch a:hover { color: var(--primary); border-color: var(--primary); }
.lang-switch a.active-lang {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.lang-switch .separator { color: var(--border); font-size: 12px; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.header-right { display: flex; align-items: center; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(165deg, var(--bg-white) 0%, var(--primary-light) 50%, var(--bg-soft) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,107,74,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 span { color: var(--primary); }
.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.hero-logo-icon {
    width: 220px;
    height: 220px;
    perspective: 800px;
}
.hero-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoFlip 4s ease-in-out infinite;
}
.hero-logo-text { text-align: center; }
.hero-logo-text .hl-name {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
}
.hero-logo-text .hl-sub {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover { background: #b5862f; border-color: #b5862f; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ============================================================
   ACTIVITY / SERVICE CARDS
   ============================================================ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.activity-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.activity-card:hover::before { transform: scaleX(1); }
.activity-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}
.activity-card:hover .activity-icon { background: var(--primary); }
.activity-icon img { width: 36px; height: 36px; transition: filter 0.3s; }
.activity-card:hover .activity-icon img { filter: brightness(10); }
.activity-card h3 { margin-bottom: 12px; font-size: 20px; }
.activity-card p { font-size: 15px; color: var(--text-light); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--primary-dark);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item h3 {
    font-size: 36px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 4px;
}
.stat-item p { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-content h2 { margin-bottom: 18px; }
.about-content p { margin-bottom: 16px; }
.about-content p:last-of-type { margin-bottom: 28px; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    transition: all 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .value-emoji { font-size: 36px; margin-bottom: 14px; display: block; }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-light); }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.category-section { padding: 60px 0; border-bottom: 1px solid var(--border-light); }
.category-section:last-child { border-bottom: none; }

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}
.category-header h2 { margin: 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-thumb {
    height: 170px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 18px 16px; }
.product-info h4 { font-size: 16px; margin-bottom: 6px; }
.product-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* Reviews */
.reviews-section { margin-top: 10px; }
.reviews-section h3 { text-align: center; margin-bottom: 24px; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.review-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    position: relative;
}
.review-card::before {
    content: '\201C';
    font-size: 48px;
    font-family: Georgia, serif;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 16px;
    line-height: 1;
}
.review-stars { color: var(--accent); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--text-medium); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.review-author { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.review-role { font-size: 12px; color: var(--text-light); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form { background: var(--bg-white); }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58,107,74,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 18px; }
.ci-card {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
}
.ci-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.ci-card h4 { font-size: 15px; margin-bottom: 2px; }
.ci-card p { font-size: 14px; color: var(--text-light); line-height: 1.3; margin: 0; }
.ci-card a { color: var(--primary); }
.ci-card a:hover { text-decoration: underline; }

.map-section { margin-top: 50px; }
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.65);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand .logo-area { margin-bottom: 16px; }
.footer-brand .company-name { color: #fff; }
.footer-brand .company-sub { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ============================================================
   PAGE BANNER (internal pages)
   ============================================================ */
.page-banner {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 50px;
    background: linear-gradient(165deg, var(--primary-light) 0%, var(--bg-soft) 100%);
    text-align: center;
}
.page-banner h1 { margin-bottom: 10px; }
.page-banner p { font-size: 17px; color: var(--text-light); }
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 14px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 17px; margin-bottom: 28px; }
.cta-band .btn-accent { border-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin-top: 30px; }
    .activities-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .header-inner { padding: 0 16px; }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; width: 100%; }

    .lang-switch { margin-left: 0; margin-right: 10px; }

    .menu-toggle { display: flex; }

    .activities-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr !important; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand,
    .footer-brand p,
    .footer-col,
    .footer-col h4,
    .footer-col p,
    .footer-bottom { text-align: center !important; }
    .footer-brand .logo-area { justify-content: center; }
    .category-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero { padding-top: calc(var(--header-height) + 30px); padding-bottom: 50px; }
    .hero-logo-icon { width: 160px; height: 160px; }
    .hero-logo-text .hl-name { font-size: 28px; }
    .products-grid { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
