/*
Theme Name: INSTOOW
Theme URI: https://instoow.ma
Author: INSTOOW Agency
Author URI: https://instoow.ma
Description: Thème professionnel pour INSTOOW — Agence Digitale Maroc. Design sombre moderne avec identité de marque complète.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: instoow
Tags: dark, modern, agency, business, portfolio, blog
*/

/* =============================================
   INSTOOW THEME — GLOBAL STYLES
   ============================================= */

:root {
  --pink: #fe0365;
  --teal: #1acca6;
  --gold: #febd17;
  --dark: #0d0d0d;
  --dark2: #161616;
  --dark3: #1f1f1f;
  --gray: #888;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* CUSTOM CURSOR */
.cursor {
  width: 12px; height: 12px; background: var(--pink);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(254,3,101,.4);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: transform .3s ease;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; background: var(--gold); }

/* NAV */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,13,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.site-logo span { color: var(--pink); }
.main-nav ul { display: flex; gap: 2.5rem; }
.main-nav a {
  font-size: .875rem; color: rgba(255,255,255,.6);
  letter-spacing: .05em; text-transform: uppercase; font-weight: 400;
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: #fff; }
.main-nav .current-menu-item a { color: var(--pink); }
.nav-cta {
  background: var(--pink); color: #fff !important;
  padding: .6rem 1.4rem; border-radius: 100px;
  font-size: .875rem; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(254,3,101,.35); }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }

/* PAGE WRAPPER */
.site-main { padding-top: 72px; }

/* SECTION SHARED */
section, .section { padding: 5rem 5%; }
.section-tag {
  font-size: .75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .15em; color: var(--teal); display: block; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1rem; color: rgba(255,255,255,.5);
  line-height: 1.75; font-weight: 300; max-width: 540px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: #fff;
  padding: .9rem 2rem; border-radius: 100px;
  font-weight: 500; font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer; font-family: var(--font-body);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(254,3,101,.4); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7);
  padding: .9rem 1.6rem; border-radius: 100px; font-size: 1rem;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* BREADCRUMB */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 1.5rem;
  font-size: .85rem;
}
.breadcrumb a { color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.2); }
.breadcrumb .current { color: var(--pink); font-weight: 500; }

/* PAGE HERO */
.page-hero {
  min-height: 50vh; display: flex; align-items: center;
  padding: 8rem 5% 5rem; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 10% 60%, rgba(254,3,101,.07) 0%, transparent 65%),
              radial-gradient(ellipse 40% 50% at 88% 25%, rgba(26,204,166,.05) 0%, transparent 65%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 1.25rem; }
.page-hero h1 em { font-style: normal; color: var(--pink); }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.5); line-height: 1.8; font-weight: 300; }

/* GRID UTILITY */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* CARD BASE */
.card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.35); border-color: rgba(255,255,255,.12); }

/* FOOTER */
.site-footer {
  background: var(--dark2); border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 5%; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--pink); }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.4); }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: .8rem; color: var(--gray); }

/* FORMS */
.form-group { margin-bottom: 1rem; }
.form-group label {
  font-size: .78rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray); display: block; margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--dark); border: 1px solid rgba(255,255,255,.1);
  color: #fff; border-radius: 12px; padding: .85rem 1.1rem;
  font-size: .95rem; font-family: var(--font-body); outline: none;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.2); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--pink); }
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: none; height: 130px; }

/* WP CORE */
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: flex; position: fixed; inset: 0; top: 72px; background: rgba(13,13,13,.97); flex-direction: column; align-items: center; justify-content: center; }
  .main-nav.open ul { flex-direction: column; align-items: center; gap: 2rem; }
  .main-nav.open a { font-size: 1.2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section, .section { padding: 4rem 5%; }
}
