/*
Theme Name: Grossmann Garage Door
Template:   generatepress
Description: Child theme applying brand design to GeneratePress.
Version:     1.0
Text Domain: grossmann-garage
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --navy:       #1A2744;
  --navy-deep:  #0F1B30;
  --orange:     #E8622A;
  --orange-deep:#C94E1C;
  --cream:      #CEC8BC;
  --gray-50:    #F4F5F7;
  --gray-100:   #E7E9EC;
  --gray-400:   #8B95A1;
  --gray-600:   #5B6573;
  --white:      #FFFFFF;

  --font-display: 'Oswald', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(13, 34, 56, 0.12);
}

/* ==========================================================================
   BASE
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--navy-deep);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-deep);
}
a {
  color: var(--orange);
}
a:hover {
  color: var(--orange-deep);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
#masthead {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}
/* Transparent state — JS adds this class when a .hero is at the top */
#masthead.is-transparent {
  background: rgba(26, 39, 68, 0.08);
}

.site-branding .main-title a,
.site-branding .site-title a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.site-branding .main-title a:hover,
.site-branding .site-title a:hover {
  color: var(--cream);
}
.site-description {
  color: var(--cream);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-navigation,
.main-navigation .inside-navigation {
  background: transparent;
}

/* Nav links */
.main-navigation ul li a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a,
.main-navigation ul li.current-page-ancestor > a {
  color: var(--orange);
  background: transparent;
}

/* Dropdown sub-menus */
.main-navigation ul ul {
  background: var(--navy-deep);
}
.main-navigation ul ul li a {
  color: var(--cream);
}
.main-navigation ul ul li a:hover {
  color: #fff;
  background: var(--navy);
}

/* Mobile hamburger */
.menu-toggle,
.menu-toggle:hover {
  color: #fff;
}
.menu-toggle:hover {
  color: var(--orange);
}

/* Mobile open state — GP adds aria-expanded=true */
.main-navigation.toggled {
  background: var(--navy-deep);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button,
.wp-element-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background: var(--orange);
  color: #fff !important;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s;
}
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--orange-deep);
  color: #fff !important;
}

/* ==========================================================================
   CONTENT LINKS
   ========================================================================== */
.entry-content a,
.page-content a,
.widget a {
  color: var(--orange);
}
.entry-content a:hover,
.page-content a:hover,
.widget a:hover {
  color: var(--orange-deep);
}

/* ==========================================================================
   HERO SECTION
   Blocks/templates can output <section class="hero"> to get this treatment.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep) center/cover no-repeat;
  color: #fff;
  text-align: center;
  margin-top: 0; /* flush under the sticky header */
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 48, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 80px 32px;
}
.hero h1,
.hero .entry-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.4em;
}
.hero .hero-sub {
  color: var(--cream);
  font-size: 1.125rem;
  margin-bottom: 1.5em;
}

/* Primary CTA button used inside hero */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--orange-deep);
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer,
.site-info {
  background: var(--navy);
  color: var(--cream);
}
.site-footer a,
.site-info a {
  color: var(--cream);
}
.site-footer a:hover,
.site-info a:hover {
  color: #fff;
}
.footer-widgets {
  background: var(--navy-deep);
  color: var(--cream);
}
.footer-widgets a {
  color: var(--cream);
}
.footer-widgets a:hover {
  color: #fff;
}
.footer-widgets h1,
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4 {
  color: #fff;
}

/* ==========================================================================
   FLOATING CTAs
   JS adds .is-visible after scrolling past 100px.
   ========================================================================== */
.float-ctas {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.float-ctas.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.float-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.float-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  color: #fff;
}
.float-cta svg { flex-shrink: 0; }

.float-cta--call     { background: var(--navy); }
.float-cta--contact  { background: var(--navy-deep); }
.float-cta--estimate { background: var(--orange); }
.float-cta--estimate:hover { background: var(--orange-deep); }

/* Mobile: icon-only circles */
@media (max-width: 640px) {
  .float-ctas { bottom: 16px; right: 16px; }
  .float-cta  { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .float-cta span { display: none; }
  .float-cta svg { width: 22px; height: 22px; }
}

/* ==========================================================================
   ACCESSIBILITY / MOTION
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
