/*
Theme Name: Musk Al Mast Elementor
Theme URI: https://example.com/musk-al-mast-elementor
Author: Musk Al Mast
Author URI: https://example.com
Description: A lightweight, Elementor-first WordPress theme built for the Musk Al Mast fragrance brand. Designed so Elementor Flexbox Containers control every page's layout, spacing and responsive behavior — the theme only supplies the site header, footer, base typography and WooCommerce compatibility. Fully compatible with Elementor and WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: musk-al-mast-elementor
Tags: e-commerce, custom-logo, custom-menu, translation-ready, threaded-comments
*/

/* =============================================================================
   1. Design tokens
   ========================================================================= */
:root {
  --color-ink: #111111;
  --color-gold: #D4AF37;
  --color-gold-soft: #D9B36C;
  --color-cream: #FAF8F5;
  --color-blush: #F8E7E9;
  --color-text: #222222;
  --color-text-light: #F5F5F5;
  --color-muted: #6B6B6B;
  --color-border: rgba(17, 17, 17, 0.1);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --container-max: 1440px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
}

/* =============================================================================
   2. Reset — minimal, so it never fights Elementor's own resets
   ========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

/* =============================================================================
   3. Layout — a fluid container system used ONLY by theme templates
   (header/footer/blog/404/WooCommerce). Elementor's own Containers manage
   width inside page content, so #primary never applies a max-width itself.
   ========================================================================= */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* guards against any accidental overflow, never clips Elementor's own overflow-visible needs */
}

.site-content {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Content area for non-Elementor templates (blog index, 404, search) only —
   deliberately has no max-width restriction of its own beyond .container,
   and Elementor Canvas/Full Width templates never render this wrapper at all. */
#primary {
  display: block;
}

.entry-content img {
  border-radius: var(--radius);
}

/* =============================================================================
   4. Accessibility
   ========================================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   5. Generic blog / 404 / search content (kept simple and theme-scoped only —
   never applied inside Elementor-built page content)
   ========================================================================= */
.entry-list {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

.entry-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.entry-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-card__title a:hover {
  color: var(--color-gold);
}

.entry-card__meta {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 2.5rem 0 1rem;
}

.no-results {
  padding: 4rem 0;
  text-align: center;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.search-form button {
  background: var(--color-gold-soft);
  border: none;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
