/*
Theme Name: BestDid
Theme URI: https://bestdid.com
Author: BestDid
Author URI: https://bestdid.com
Description: A modern, minimal WordPress theme for software development companies. Features a warm, sophisticated design with clean typography and organic shapes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestdid
Tags: custom-logo, custom-menu, featured-images, theme-options, translation-ready, blog, portfolio

BestDid WordPress Theme, Copyright 2025 BestDid
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --bg-primary: #FAF9F7;
    --bg-secondary: #F5F4F0;
    --bg-tertiary: #EFEEE8;
    --bg-warm: #E8E4DA;
    --text-primary: #1A1915;
    --text-secondary: #5C5850;
    --text-tertiary: #8A8778;
    --accent-primary: #D97757;
    --accent-secondary: #E29578;
    --accent-warm: #CC785C;
    --accent-light: #FAE5DE;
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-light); color: var(--accent-warm); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(44px, 6vw, 64px); letter-spacing: -1px; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.5px; }
h3 { font-size: clamp(24px, 3vw, 32px); }
h4 { font-size: 20px; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.accent-text { color: var(--accent-primary); }
.serif { font-family: var(--font-serif); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.2s ease; border: none; border-radius: 100px; }
.btn-text { color: var(--text-secondary); background: none; padding: 8px 0; }
.btn-text:hover { color: var(--text-primary); }
.btn-primary { color: var(--bg-primary); background: var(--text-primary); padding: 12px 24px; }
.btn-primary:hover { background: var(--text-secondary); }
.btn-accent { color: white; background: var(--accent-primary); padding: 14px 28px; }
.btn-accent:hover { background: var(--accent-warm); }
.btn-secondary { color: var(--text-primary); background: var(--bg-primary); padding: 14px 28px; border: 1px solid var(--border-medium); }
.btn-secondary:hover { background: var(--bg-secondary); }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; background: rgba(250, 249, 247, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: all 0.3s ease; }
.site-header.scrolled { border-bottom: 1px solid var(--border-light); }
.header-left { display: flex; align-items: center; gap: 40px; }
.site-logo { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--text-primary); }
.site-logo img { max-height: 40px; width: auto; }
.main-navigation ul { display: flex; gap: 32px; }
.main-navigation a { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.main-navigation a:hover, .main-navigation .current-menu-item a, .main-navigation .current_page_item a { color: var(--text-primary); }
.header-right { display: flex; align-items: center; gap: 24px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s ease; }
.mobile-navigation { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg-primary); padding: 32px; z-index: 999; }
.mobile-navigation.active { display: block; }
.mobile-navigation ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-navigation a { display: block; font-size: 18px; font-weight: 500; color: var(--text-primary); padding: 12px 0; border-bottom: 1px solid var(--border-light); }

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-header { padding: 180px 32px 100px; text-align: center; position: relative; overflow: hidden; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.page-header-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(217, 119, 87, 0.08) 0%, transparent 50%); pointer-events: none; }
.page-header-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; pointer-events: none; }
.page-header-shape-1 { width: 500px; height: 500px; background: rgba(217, 119, 87, 0.12); top: -200px; right: 15%; }
.page-header-shape-2 { width: 350px; height: 350px; background: rgba(228, 168, 83, 0.1); bottom: -100px; left: 10%; }
.page-header-content { position: relative; z-index: 10; max-width: 700px; margin: 0 auto; }
.page-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-primary); font-size: 14px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.5px; }
.page-title { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; }
.page-title em { font-style: italic; color: var(--accent-primary); }
.page-description { font-size: 19px; line-height: 1.7; color: var(--text-secondary); max-width: 540px; margin: 0 auto; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding: 120px 0; }
.section-alt { background: var(--bg-secondary); }
.section-tertiary { background: var(--bg-tertiary); }
.section-dark { background: var(--text-primary); color: var(--bg-primary); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.section-title { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -0.5px; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.section-dark .section-title { color: var(--bg-primary); }
.section-dark .section-subtitle { color: var(--text-tertiary); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 160px 32px 100px; position: relative; overflow: hidden; }
.admin-bar .hero { padding-top: 192px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(217, 119, 87, 0.08) 0%, transparent 50%); pointer-events: none; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; pointer-events: none; animation: float 20s ease-in-out infinite; }
.hero-shape-1 { width: 500px; height: 500px; background: rgba(217, 119, 87, 0.12); top: -200px; right: 15%; }
.hero-shape-2 { width: 350px; height: 350px; background: rgba(228, 168, 83, 0.1); bottom: -100px; left: 10%; animation-delay: -7s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
.hero-content { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-primary); font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(48px, 7vw, 80px); font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 28px; }
.hero-title em { font-style: italic; color: var(--accent-primary); }
.hero-description { font-size: 19px; line-height: 1.7; color: var(--text-secondary); max-width: 520px; margin: 0 auto 40px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 36px; transition: all 0.3s ease; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { width: 52px; height: 52px; background: var(--accent-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 24px; }
.service-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--bg-primary); border-radius: var(--radius-xl); padding: 32px; text-align: center; transition: all 0.3s ease; }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-avatar { width: 120px; height: 120px; background: var(--bg-secondary); border-radius: 50%; margin: 0 auto 20px; overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; font-family: var(--font-sans); }
.team-card .role { font-size: 14px; color: var(--accent-primary); margin-bottom: 12px; }
.team-card .bio { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.team-social { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.team-social a { width: 32px; height: 32px; background: var(--bg-secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 12px; transition: all 0.2s ease; }
.team-social a:hover { background: var(--accent-light); color: var(--accent-primary); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; text-align: center; }
.stat-item h3 { font-family: var(--font-serif); font-size: 56px; font-weight: 400; color: var(--accent-primary); margin-bottom: 8px; letter-spacing: -1px; }
.stat-item p { font-size: 15px; color: var(--text-secondary); }

.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.case-card { background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius-xl); overflow: hidden; transition: all 0.4s ease; }
.case-card:hover { border-color: transparent; box-shadow: var(--shadow-xl); transform: translateY(-8px); }
.case-visual { background: var(--bg-secondary); aspect-ratio: 16/10; overflow: hidden; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover .case-visual img { transform: scale(1.05); }
.case-content { padding: 32px; }
.case-category { font-size: 12px; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.case-content h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.case-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tag { font-size: 12px; font-weight: 500; color: var(--text-tertiary); background: var(--bg-secondary); padding: 6px 12px; border-radius: 100px; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius-xl); overflow: hidden; transition: all 0.3s ease; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-thumbnail { aspect-ratio: 16/10; background: var(--bg-secondary); overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }
.post-content { padding: 28px; }
.post-category { font-size: 12px; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.post-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.post-excerpt { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.post-meta { font-size: 13px; color: var(--text-tertiary); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-card { background: var(--bg-secondary); border-radius: var(--radius-xl); padding: 40px; }
.testimonial-quote { font-family: var(--font-serif); font-size: 20px; font-style: italic; color: var(--text-primary); line-height: 1.6; margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 52px; height: 52px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--accent-primary); overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; font-family: var(--font-sans); }
.testimonial-info p { font-size: 14px; color: var(--text-tertiary); }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section { padding: 120px 32px; background: var(--text-primary); position: relative; overflow: hidden; }
.cta-shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; pointer-events: none; }
.cta-shape-1 { width: 500px; height: 500px; background: var(--accent-primary); top: -200px; right: -100px; }
.cta-shape-2 { width: 400px; height: 400px; background: var(--accent-secondary); bottom: -150px; left: -100px; }
.cta-inner { max-width: 600px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.cta-section h2 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 48px); font-weight: 400; color: var(--bg-primary); margin-bottom: 20px; }
.cta-section p { font-size: 18px; color: var(--text-tertiary); margin-bottom: 36px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-section .btn-secondary { background: transparent; color: var(--bg-primary); border-color: rgba(255, 255, 255, 0.2); }
.cta-section .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { padding: 64px 32px 32px; background: var(--text-primary); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-content { max-width: 1140px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand .site-logo { color: var(--bg-primary); margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; color: var(--text-tertiary); line-height: 1.6; max-width: 260px; }
.footer-column h4 { font-size: 13px; font-weight: 600; color: var(--bg-primary); margin-bottom: 20px; letter-spacing: 0.5px; font-family: var(--font-sans); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { font-size: 14px; color: var(--text-tertiary); transition: color 0.2s ease; }
.footer-column a:hover { color: var(--bg-primary); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-tertiary); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--bg-primary); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.form-label .required { color: var(--accent-primary); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 18px; font-family: inherit; font-size: 15px; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius-md); transition: all 0.2s ease; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-light); }
.form-textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-item { background: var(--bg-primary); border-radius: var(--radius-xl); padding: 32px; transition: all 0.3s ease; }
.faq-item:hover { box-shadow: var(--shadow-lg); }
.faq-item h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.faq-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.scroll-animate { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-animate.animated { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .main-navigation { display: none; }
    .menu-toggle { display: flex; }
    .services-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .cases-grid, .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container, .container-wide, .container-narrow { padding: 0 24px; }
    .hero { padding: 120px 24px 80px; }
    .page-header { padding: 140px 24px 80px; }
    .section { padding: 80px 0; }
    .services-grid, .posts-grid, .team-grid, .stats-grid, .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .hero-ctas, .cta-buttons { flex-direction: column; align-items: center; }
    .btn-accent, .btn-secondary { width: 100%; max-width: 280px; }
    
    /* Contact page mobile layout */
    .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .contact-grid > *:first-child { order: 2; }
    .contact-grid > *:last-child { order: 1; }
    .contact-form-row { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.hidden { display: none; }
