/*
Theme Name: DOC EYES Optics
Theme URI: https://doceyesoptics.com
Author: DOC EYES
Author URI: https://doceyesoptics.com
Description: Custom theme for DOC EYES — Opticien · Optométriste · Contactologue à Mohammedia. Pattern B Editorial Grid design system with light/dark modes, virtual try-on, tint customization, and prescription ordering via WhatsApp.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doceyes
Tags: optician, eyewear, custom-colors, custom-logo, featured-images, full-width-template
*/

/* =========================================================================
   DOC EYES — Design System
   Pattern B • Editorial Grid • Light + Dark
   ========================================================================= */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@900,800,700,500&f[]=satoshi@900,700,500,400,300&display=swap');

:root {
  --grad-teal: #2DD4BF;
  --grad-blue: #3B82F6;
  --grad-deep: #1E40AF;
  --brand-gradient: linear-gradient(135deg, var(--grad-teal) 0%, var(--grad-blue) 100%);
  --brand-gradient-deep: linear-gradient(135deg, #14B8A6 0%, var(--grad-deep) 100%);
  --accent-od: #3B82F6;
  --accent-og: #10B981;
  --accent-amber: #F59E0B;
  --bg: #F8FAFC;
  --bg-elevated: #F1F5F9;
  --surface: #FFFFFF;
  --surface-tint-blue: #EFF6FF;
  --surface-tint-teal: #ECFEFF;
  --surface-tint-green: #ECFDF5;
  --text: #0F172A;
  --text-soft: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.05), 0 10px 15px -3px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(15,23,42,0.08), 0 20px 50px -12px rgba(15,23,42,0.10);
  --shadow-xl: 0 25px 50px -12px rgba(15,23,42,0.18);
  --logo-text: #0F172A;
  --logo-accent: #1E40AF;
  --logo-muted: #64748B;
  --font-display: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}

[data-theme="dark"] {
  --bg: #07101F;
  --bg-elevated: #0F1A2E;
  --surface: #131F35;
  --surface-tint-blue: #162243;
  --surface-tint-teal: #0F2A3A;
  --surface-tint-green: #0F2B23;
  --text: #F1F5F9;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --border: rgba(241,245,249,0.08);
  --border-strong: rgba(241,245,249,0.16);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 10px 15px -3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.5), 0 20px 50px -12px rgba(0,0,0,0.6);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.7);
  --logo-text: #F1F5F9;
  --logo-accent: #60A5FA;
  --logo-muted: #94A3B8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .3s ease, color .3s ease; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.display, h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); line-height: 1.05; }
h1 { font-size: clamp(2.25rem,5.5vw,4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem,3.5vw,3rem); font-weight: 800; line-height: 1.08; }
h3 { font-size: clamp(1.25rem,2vw,1.75rem); font-weight: 800; line-height: 1.15; }
h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { color: var(--text-soft); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px,9vw,120px); }

/* ---- Components (same as static site) ---- */
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grad-blue); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand-gradient); transform: rotate(45deg); border-radius: 1px; }
.lead { font-size: clamp(1.05rem,1.5vw,1.25rem); color: var(--text-soft); font-weight: 400; line-height: 1.5; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-weight: 700; font-size: 0.95rem; border-radius: var(--radius-full); transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-gradient { background: var(--brand-gradient); color: white; box-shadow: 0 4px 14px rgba(59,130,246,0.35); }
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,130,246,0.45); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-elevated); }
.btn-whatsapp { background: #25D366; color: white; box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { background: #1FB955; transform: translateY(-1px); }
.btn-on-gradient { background: rgba(255,255,255,0.95); color: var(--grad-deep); backdrop-filter: blur(12px); }
.btn-icon { width: 22px; height: 22px; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-full); font-size: 0.825rem; font-weight: 600; background: var(--surface-tint-blue); color: var(--grad-deep); }
.pill-on-gradient { background: rgba(255,255,255,0.18); color: white; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.25); }
.pill-teal { background: var(--surface-tint-teal); color: #0E7490; }
.pill-amber { background: #FEF3C7; color: #92400E; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px,3vw,36px); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.section-header { max-width: 720px; margin-bottom: clamp(36px,5vw,64px); }
.section-header h2 { margin: 12px 0 16px; }
.section-header.center { margin-inline: auto; text-align: center; }

/* WordPress overrides */
.wp-block-image img { height: auto; }
.entry-content > * { max-width: var(--container); margin-inline: auto; }
.alignfull { max-width: none; }
