/*
 * =====================================================================
 *  ROOH PHOTOFILMS — Premium Button Design System
 *  rooh-buttons.css
 *
 *  Brand direction: Premium · Cinematic · Elegant · Warm · Romantic
 *  Brand primary:   #996a4e  (warm terracotta/brown)
 *  Brand deep:      #7a5039  (darker brown for hover depth)
 *  Brand ivory:     #f7f0e8  (warm white text)
 *
 *  Variants:
 *    .button                      → Primary filled (brand brown)
 *    .button.button-border        → Outline on light bg
 *    .button.button-border.white  → Outline on dark/cinematic bg
 * =====================================================================
 */

/* =====================================================================
   CSS Custom Properties — Rooh brand tokens
   ===================================================================== */
:root {
  --rooh-brown: #996a4e;
  --rooh-brown-deep: #7a5039;
  --rooh-brown-light: #b58468;
  --rooh-ivory: #f7f0e8;
  --rooh-white: #ffffff;
  --rooh-black: #1a1210;

  /* Button geometry */
  --rooh-btn-height: 50px;
  --rooh-btn-px: 34px;
  --rooh-btn-radius: 3px;
  --rooh-btn-font-size: 12px;
  --rooh-btn-letter: 1.8px;
  --rooh-btn-weight: 600;

  /* Animation */
  --rooh-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --rooh-duration: 380ms;
}


/* =====================================================================
   Base .button — Reset & Shared Foundation
   ===================================================================== */

.button,
a.button,
button.button {
  /* Geometry */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--rooh-btn-height);
  padding: 0 var(--rooh-btn-px);
  border-radius: var(--rooh-btn-radius);

  /* Typography */
  font-family: inherit;
  font-size: var(--rooh-btn-font-size);
  font-weight: var(--rooh-btn-weight);
  letter-spacing: var(--rooh-btn-letter);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;

  /* Interaction */
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;

  /* Animation */
  transition:
    background-color var(--rooh-duration) var(--rooh-ease),
    border-color var(--rooh-duration) var(--rooh-ease),
    color var(--rooh-duration) var(--rooh-ease),
    transform var(--rooh-duration) var(--rooh-ease),
    box-shadow var(--rooh-duration) var(--rooh-ease);

  box-shadow: none;
  overflow: hidden;
  position: relative;
}


/* =====================================================================
   PRIMARY BUTTON — Warm Brown Fill
   ===================================================================== */

.button {
  background: var(--rooh-brown);
  border: 1px solid var(--rooh-brown);
  color: var(--rooh-ivory);
}

.button:hover,
.button:focus-visible {
  background: var(--rooh-brown-deep);
  border-color: var(--rooh-brown-deep);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  background: var(--rooh-brown-deep);
}

.button:focus-visible {
  outline: 2px solid var(--rooh-brown-light);
  outline-offset: 3px;
}


/* =====================================================================
   Icon animation
   ===================================================================== */

.button i,
.button .fa,
.button svg {
  transition: transform var(--rooh-duration) var(--rooh-ease);
  flex-shrink: 0;
}

.button:hover i.fa-angle-right,
.button:hover i.fa-arrow-right,
.button:hover i.fa-long-arrow-right,
.button:hover i.fa-chevron-right {
  transform: translateX(3px);
}

.button:hover i.fa-camera,
.button:hover i.fa-calendar-check-o,
.button:hover i.fa-calendar {
  transform: scale(1.12);
}


/* =====================================================================
   OUTLINE BUTTON — light background
   .button.button-border
   ===================================================================== */

.button.button-border {
  background: transparent;
  border: 1px solid var(--rooh-brown);
  color: var(--rooh-brown);
}

.button.button-border:hover,
.button.button-border:focus-visible {
  background: var(--rooh-brown);
  border-color: var(--rooh-brown);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}

.button.button-border:active {
  transform: translateY(0);
  background: var(--rooh-brown-deep);
  border-color: var(--rooh-brown-deep);
}


/* =====================================================================
   OUTLINE WHITE — Cinematic dark sections
   .button.button-border.white
   ===================================================================== */

.button.button-border.white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--rooh-white);
}

.button.button-border.white:hover,
.button.button-border.white:focus-visible {
  background: var(--rooh-brown);
  border-color: var(--rooh-brown);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}

.button.button-border.white:active {
  background: var(--rooh-brown-deep);
  border-color: var(--rooh-brown-deep);
  transform: translateY(0);
}


/* =====================================================================
   BLACK VARIANT
   ===================================================================== */

.button.black {
  background: #1a1210;
  border-color: #1a1210;
  color: var(--rooh-ivory);
}

.button.black:hover,
.button.black:focus-visible {
  background: var(--rooh-brown);
  border-color: var(--rooh-brown);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}


/* =====================================================================
   WHITE FILL
   ===================================================================== */

.button.white {
  background: var(--rooh-white);
  border-color: var(--rooh-white);
  color: var(--rooh-brown);
}

.button.white:hover,
.button.white:focus-visible {
  background: var(--rooh-brown);
  border-color: var(--rooh-brown);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}


/* =====================================================================
   ICON-COLOR TEXT LINKS
   .button.icon-color
   ===================================================================== */

.button.icon-color {
  background: transparent;
  border: none;
  color: var(--rooh-brown);
  padding: 0;
  height: auto;
  font-weight: var(--rooh-btn-weight);
}

.button.icon-color:hover,
.button.icon-color:focus-visible {
  color: var(--rooh-brown-deep);
  transform: none;
}

.button.icon-color i {
  border: 1px solid var(--rooh-brown);
  border-radius: 50%;
  height: 22px;
  width: 22px;
  line-height: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--rooh-duration) var(--rooh-ease),
    background var(--rooh-duration) var(--rooh-ease),
    border-color var(--rooh-duration) var(--rooh-ease),
    color var(--rooh-duration) var(--rooh-ease);
}

.button.icon-color:hover i {
  background: var(--rooh-brown-deep);
  border-color: var(--rooh-brown-deep);
  color: var(--rooh-white);
  transform: translateX(3px);
}

.button.icon-color.white {
  color: var(--rooh-white);
}

.button.icon-color.white i {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--rooh-white);
}

.button.icon-color.white:hover {
  color: var(--rooh-ivory);
}

.button.icon-color.white:hover i {
  background: var(--rooh-white);
  border-color: var(--rooh-white);
  color: var(--rooh-brown);
}


/* =====================================================================
   ARROW TEXT BUTTON
   .button.arrow
   ===================================================================== */

.button.arrow {
  background: transparent;
  border: none;
  color: var(--rooh-brown);
  padding: 0;
  height: auto;
  font-weight: 600;
}

.button.arrow i {
  padding-left: 8px;
  font-size: 15px;
}

.button.arrow:hover {
  color: var(--rooh-brown-deep);
  transform: none;
}

.button.arrow:hover i {
  transform: translateX(3px);
}

.button.arrow.white {
  color: var(--rooh-white);
}

.button.arrow.white:hover {
  color: var(--rooh-ivory);
  background: transparent;
}


/* =====================================================================
   ICON MODIFIER — icon at right side of filled button
   ===================================================================== */

.button.icon i,
.button.icon .fa {
  margin-left: 8px;
}


/* =====================================================================
   SPACING
   ===================================================================== */

.button+.button {
  margin-left: 16px;
}

.button+.button.d-grid {
  margin-left: 0;
}


/* =====================================================================
   SIZE VARIANTS
   ===================================================================== */

.button.x-small {
  height: 36px;
  padding: 0 18px;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.button.small {
  height: 42px;
  padding: 0 22px;
  font-size: 11px;
}

.button.medium {
  height: 50px;
  padding: 0 30px;
  font-size: 12px;
}

.button.large {
  height: 56px;
  padding: 0 42px;
  font-size: 13px;
  letter-spacing: 2px;
}


/* =====================================================================
   FORM SUBMIT BUTTON
   ===================================================================== */

button.button,
button.button[type="submit"],
input.button[type="submit"] {
  height: var(--rooh-btn-height);
  padding: 0 var(--rooh-btn-px);
  background: var(--rooh-brown);
  border: 1px solid var(--rooh-brown);
  color: var(--rooh-ivory);
  font-family: inherit;
  font-size: var(--rooh-btn-font-size);
  font-weight: var(--rooh-btn-weight);
  letter-spacing: var(--rooh-btn-letter);
  text-transform: uppercase;
  cursor: pointer;
}

button.button:hover,
button.button[type="submit"]:hover {
  background: var(--rooh-brown-deep);
  border-color: var(--rooh-brown-deep);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}

button.button:focus-visible,
button.button[type="submit"]:focus-visible {
  outline: 2px solid var(--rooh-brown-light);
  outline-offset: 3px;
}


/* =====================================================================
   REVOLUTION SLIDER BUTTONS — override inline red with higher specificity
   ===================================================================== */

html body .rev-btn,
html body .rev-button,
html body a.rev-btn,
html body a.rev-button {
  background-color: var(--rooh-brown);
  border-color: var(--rooh-brown);
  color: var(--rooh-ivory);
  border-radius: var(--rooh-btn-radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: capitalize;
}

html body .rev-btn:hover,
html body .rev-button:hover {
  background-color: var(--rooh-brown-deep);
  border-color: var(--rooh-brown-deep);
  color: var(--rooh-ivory);
}


/* =====================================================================
   ISOTOPE / PORTFOLIO FILTER BUTTONS — higher specificity without !important
   ===================================================================== */

html body .isotope-filters button,
html body .isotope-filters button.button {
  height: auto;
  padding: 6px 0;
  margin: 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #555;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition:
    color var(--rooh-duration) var(--rooh-ease),
    border-color var(--rooh-duration) var(--rooh-ease);
}

html body .isotope-filters button:focus {
  outline: none;
}

html body .isotope-filters button:focus-visible {
  outline: none;
  border-bottom-color: var(--rooh-brown-light);
}

html body .isotope-filters button.active,
html body .isotope-filters button:hover {
  background: transparent;
  border-color: var(--rooh-brown);
  color: var(--rooh-brown);
}

html body .isotope-filters button+button {
  margin-left: 0;
}


/* =====================================================================
   GRAY OUTLINE VARIANT
   ===================================================================== */

.button.button-border.gray {
  background: transparent;
  border: 1px solid #d0c4ba;
  color: #888;
}

.button.button-border.gray:hover,
.button.button-border.gray:focus-visible {
  background: var(--rooh-brown);
  border-color: var(--rooh-brown);
  color: var(--rooh-ivory);
  transform: translateY(-1px);
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
  :root {
    --rooh-btn-height: 46px;
    --rooh-btn-px: 26px;
    --rooh-btn-font-size: 11px;
  }

  .button+.button {
    margin-left: 10px;
  }

  .button.large {
    height: 50px;
    padding: 0 30px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --rooh-btn-height: 46px;
    --rooh-btn-px: 22px;
    --rooh-btn-font-size: 11px;
    --rooh-btn-letter: 1.4px;
  }

  .button+.button {
    margin-left: 8px;
  }

  .action-box-button,
  .mt-30 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .action-box-button .button+.button,
  .mt-30 .button+.button {
    margin-left: 0;
  }
}