/*
Theme Name: Marila
Theme URI: https://marilallc.am
Author: Marila
Description: Custom theme for Marila — Flavours of Syunik
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: marila
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --red:        #A0181D;
  --red-dark:   #751417;
  --red-light:  #A52020;
  --black:      #292827;
  --dark:       #292827;
  --cream:      #F7F3EA;
  --white:      #FFFDF8;
  --gray:       #706E69;
  --gray-light: #E8E4DE;
  --border:     #C8C3BA;

  --font-heading: 'Noto Serif Armenian', 'Playfair Display', Georgia, serif;
  --font-body:    'Noto Sans Armenian', 'Inter', system-ui, sans-serif;

  --container: 1440px;
  --gap:       2rem;
  --radius:    4px;

  --transition: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: #F7F3EA;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gray);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--cream {
  background: var(--cream);
}

.section--red {
  background: var(--red);
  color: var(--white);
}

/* ============================================================
   RED ACCENT ELEMENTS (brand stripes)
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section--dark .section-label {
  color: rgba(255,255,255,0.7);
}

.section--dark .section-label::before,
.section--dark .section-label::after {
  background: rgba(255,255,255,0.4);
}

/* Red stripe decorative element */
.red-stripe {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--red);
  margin-bottom: 1.5rem;
}

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

.btn, .btn-primary, .btn-outline, .btn-outline-dark, .button, .woocommerce-Button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* fixed control height: vertical padding would add on top of it */
  height: 43px;
  padding: 0 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 40px;
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  z-index: 1;
  transition: transform 0.12s ease !important;
  overflow: visible !important;
}

/* Main Solid Background Layer */
.btn::before, .btn-primary::before, .btn-outline::before, .btn-outline-dark::before, .button::before, .woocommerce-Button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #A0181D;
  border: 1px solid #A0181D;
  border-radius: 40px;
  z-index: -1;
  transition: background 0.2s;
}


.btn:hover::before, .btn-primary:hover::before, .btn-outline:hover::before, .btn-outline-dark:hover::before, .button:hover::before, .woocommerce-Button:hover::before {
  background: #751417;
  border-color: #751417;
}

/* Checkered Shadow Layer */
.btn::after, .btn-primary::after, .btn-outline::after, .btn-outline-dark::after, .button::after, .woocommerce-Button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  border: 1px solid #A0181D;
  background-image: repeating-conic-gradient(rgba(198, 90, 92, 0.4) 0% 25%, transparent 0% 50%);
  background-size: 8px 8px;
  z-index: -2;
  transform: translate(6px, 6px);
  transition: transform 0.12s ease;
}

.btn:hover, .btn-primary:hover, .btn-outline:hover, .btn-outline-dark:hover, .button:hover, .woocommerce-Button:hover {
  transform: translate(3px, 3px) !important;
}
.btn:hover::after, .btn-primary:hover::after, .btn-outline:hover::after, .btn-outline-dark:hover::after, .button:hover::after, .woocommerce-Button:hover::after {
  transform: translate(3px, 3px) !important;
}

.btn:active, .btn-primary:active, .btn-outline:active, .btn-outline-dark:active, .button:active, .woocommerce-Button:active {
  transform: translate(6px, 6px) !important;
}
.btn:active::after, .btn-primary:active::after, .btn-outline:active::after, .btn-outline-dark:active::after, .button:active::after, .woocommerce-Button:active::after {
  transform: translate(0, 0) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

/* ============================================================
   SCREEN READER
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Cream Button Variant */
.btn-cream {
  color: var(--black) !important;
}
.btn-cream::before {
  background: var(--white) !important;
  border: 1px solid var(--white) !important;
}
.btn-cream::after {
  border: 1px solid var(--border) !important;
  background-image: repeating-conic-gradient(rgba(200, 195, 186, 0.4) 0% 25%, transparent 0% 50%) !important;
}
.btn-cream:hover::before {
  background: var(--cream) !important;
  border-color: var(--cream) !important;
}
