/*
Theme Name: iCanFix
Theme URI: https://icanfix.nl
Author: Kay
Author URI: https://icanfix.nl
Description: Modern, professioneel websiteontwerp voor iCanFix – Apple IRP gecertificeerd reparatiebedrijf in Apeldoorn.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: icanfix
Tags: business, one-page, custom-colors, custom-logo, featured-images, responsive-layout
*/

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1e293b; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --brand:        #00bcd4;
  --brand-dark:   #0097a7;
  --brand-mid:    #4dd0e1;
  --brand-light:  #e0f7fa;
  --brand-dim:    rgba(0,188,212,0.12);
  --brand-border: rgba(0,188,212,0.25);
  --slate-50:     #f8fafc;
  --slate-100:    #f1f5f9;
  --slate-500:    #64748b;
  --slate-600:    #475569;
  --slate-900:    #0f172a;
  --container:    1200px;
  --radius:       0px;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p  { line-height: 1.75; }

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0 2rem; height: 3.5rem; font-size: 1rem; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: opacity .2s, background .2s, color .2s; text-align: center; }
.btn--primary  { background: var(--brand); color: #fff; }
.btn--primary:hover { opacity: .88; }
.btn--outline  { background: transparent; color: var(--slate-900); border-color: var(--slate-100); }
.btn--outline:hover { background: var(--slate-50); }
.btn--white    { background: #fff; color: var(--slate-900); }
.btn--white:hover { opacity: .92; }
.btn--ghost-white { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-white:hover { background: rgba(255,255,255,.2); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--slate-100); box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.nav-inner   { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.nav-logo    { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 800; color: var(--slate-900); letter-spacing: -.03em; }
.nav-logo-icon { width: 2rem; height: 2rem; background: var(--brand); color: #fff; border-radius: .25rem; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; }
.nav-logo span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--slate-500); transition: color .2s; }
.nav-links a:hover { color: var(--slate-900); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--slate-900); margin: 5px 0; transition: .3s; }
.mobile-menu { display: none; position: fixed; inset: 0; top: 5rem; background: #fff; z-index: 99; padding: 2rem 1.5rem; border-top: 2px solid var(--brand); }
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu a { font-size: 1.2rem; font-weight: 700; color: var(--slate-900); padding: .75rem 0; border-bottom: 1px solid var(--slate-100); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* =====================================================
   HERO
   ===================================================== */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-mid) 100%); overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath d='M0 80L1440 80L1440 40C1200 80 960 0 720 20C480 40 240 80 0 40Z' fill='white'/%3E%3C/svg%3E") no-repeat bottom center/cover; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 6rem 0 8rem; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .85rem; font-weight: 600; padding: .35rem 1rem; border-radius: 100px; margin-bottom: 1.5rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { opacity: .82; }
.hero-desc { color: rgba(255,255,255,.82); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 30rem; }
.hero-cta  { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid rgba(255,255,255,.2); box-shadow: 0 40px 80px rgba(0,0,0,.2); }
.hero-badge-card { position: absolute; bottom: -2rem; left: -2rem; background: #fff; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.12); border: 1px solid var(--slate-100); }
.hero-badge-card-icon { width: 3rem; height: 3rem; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.hero-badge-card-icon svg { color: #fff; width: 1.5rem; height: 1.5rem; }
.hero-badge-card h4 { font-size: .95rem; font-weight: 700; color: var(--slate-900); }
.hero-badge-card p  { font-size: .8rem; color: var(--slate-500); }

/* =====================================================
   STATS
   ===================================================== */
.stats { background: #fff; padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--slate-100); padding-top: 3rem; }
.stat { text-align: center; padding: 0 1rem; border-right: 1px solid var(--slate-100); }
.stat:last-child { border-right: none; }
.stat-value { font-size: 2.5rem; font-weight: 900; color: var(--slate-900); display: block; margin-bottom: .25rem; }
.stat-value--accent { color: var(--brand); }
.stat-label { font-size: .85rem; font-weight: 600; color: var(--slate-500); }

/* =====================================================
   SERVICES
   ===================================================== */
.services { background: #f8fdfe; padding: 5rem 0; }
.section-tag { display: inline-block; width: 3rem; height: 4px; background: var(--brand); margin-bottom: 1.5rem; }
.services-header { max-width: 36rem; margin-bottom: 3.5rem; }
.services-header h2 { color: var(--slate-900); margin-bottom: 1rem; }
.services-header p  { color: var(--slate-500); font-size: 1.05rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { background: #fff; border: 1px solid var(--slate-100); padding: 2rem; transition: border-color .2s, box-shadow .2s; cursor: pointer; }
.service-card:hover { border-color: rgba(0,188,212,.4); box-shadow: 0 8px 32px rgba(0,188,212,.08); }
.service-card-icon { width: 3.5rem; height: 3.5rem; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.service-card-icon svg { width: 1.75rem; height: 1.75rem; }
.service-card h3 { color: var(--slate-900); margin-bottom: .75rem; }
.service-card p  { color: var(--slate-500); font-size: .9rem; margin-bottom: 1.25rem; }
.service-card-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font-size: .9rem; font-weight: 700; }
.service-card-link svg { width: 1rem; height: 1rem; }

/* =====================================================
   QUALITY SECTION
   ===================================================== */
.quality { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); padding: 5rem 0; position: relative; overflow: hidden; }
.quality::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 32px 32px; opacity: .1; }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 2; }
.quality-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 4px solid rgba(255,255,255,.2); box-shadow: 0 40px 80px rgba(0,0,0,.2); }
.quality-content { color: #fff; }
.quality-content .section-tag { background: rgba(255,255,255,.5); }
.quality-content h2 { color: #fff; margin-bottom: 2rem; }
.quality-items { display: flex; flex-direction: column; gap: 0; }
.quality-item { display: flex; gap: 1rem; border-top: 1px solid rgba(255,255,255,.2); padding: 1.75rem 0; }
.quality-item-icon { width: 1.5rem; height: 1.5rem; color: rgba(255,255,255,.7); flex-shrink: 0; margin-top: .15rem; }
.quality-item h3 { font-size: 1.05rem; color: #fff; margin-bottom: .4rem; }
.quality-item p  { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.65; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section { background: #fff; padding: 5rem 0; }
.cta-box { border: 2px solid var(--brand-light); padding: 4rem; text-align: center; max-width: 56rem; margin: 0 auto; }
.cta-icon { width: 4rem; height: 4rem; background: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; }
.cta-icon svg { width: 2rem; height: 2rem; color: #fff; }
.cta-box h2 { color: var(--slate-900); margin-bottom: 1rem; }
.cta-box p  { color: var(--slate-500); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #f8fdfe; border-top: 1px solid var(--slate-100); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; letter-spacing: -.03em; }
.footer-logo span { color: var(--brand); }
.footer-logo-icon { width: 1.75rem; height: 1.75rem; background: var(--brand); color: #fff; border-radius: .2rem; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 900; }
.footer-tagline { color: var(--slate-500); font-size: .9rem; max-width: 22rem; line-height: 1.7; }
.footer-col h4 { font-size: .9rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul li { margin-bottom: .75rem; color: var(--slate-500); font-size: .9rem; }
.footer-col ul a:hover { color: var(--brand); }
.footer-hours li { display: flex; justify-content: space-between; gap: 2rem; }
.footer-bottom { border-top: 1px solid var(--slate-100); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--slate-500); font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--slate-500); font-size: .8rem; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--slate-900); }

/* =====================================================
   WordPress CORE STYLES (WP Block, Alignment, etc.)
   ===================================================== */
.aligncenter { margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 0 7rem; }
  .hero-image-wrap { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .hero-badge-card { display: none; }
}
