/*
Theme Name: RSR F4
Theme URI: https://rsrf4.com
Description: Institutional holding company theme for RSR F4 — quiet luxury, modern institutional design with Tailwind CSS.
Version: 1.0.0
Author: RSR F4
Author URI: https://rsrf4.com
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsrf4
*/

/* Custom properties */
:root {
  --warm-white: #f7f5f2;
  --charcoal: #1c1c1b;
  --stone: #e8e4de;
  --taupe: #9a928a;
  --dark-green: #2f3d36;
  --bronze: #8b7355;
  --font-display: 'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100%;
}

.font-display {
  font-family: var(--font-display);
}

/* Reveal animation */
@keyframes reveal-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal-visible {
  animation: reveal-fade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Hero image cover */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
}

.overlay-dark {
  background: rgba(28, 28, 27, 0.45);
}

.overlay-green {
  background: rgba(47, 61, 54, 0.50);
}

/* Portfolio card image */
.portfolio-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.03);
}

/* Hamburger animation */
.hamburger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-open .hamburger-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .hamburger-line-2 {
  opacity: 0;
}

.menu-open .hamburger-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile dropdown */
.mobile-dropdown {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s;
  overflow: hidden;
}

.mobile-dropdown.open {
  max-height: 28rem;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Section divider gradient */
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(139, 115, 85, 0.30), transparent);
}
