/*
Theme Name:   Sydney Child - Staley Ventures
Theme URI:    https://www.staleyventures.com
Description:  Sydney child theme styled to match the Staley Ventures brand identity.
              Navy, red, and white palette with bold Barlow Condensed typography.
Author:       Staley Ventures
Template:     sydney
Version:      1.0.0
*/

/* ============================================================
   GOOGLE FONTS — Barlow Condensed (headings) + Barlow (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  --sv-navy:       #0D1F3C;
  --sv-red:        #C8102E;
  --sv-white:      #FFFFFF;
  --sv-off-white:  #F4F2EE;
  --sv-steel:      #4A5568;
  --sv-light:      #EDF2F7;
  --sv-navy-dark:  #091528;

  --sv-font-display: 'Barlow Condensed', sans-serif;
  --sv-font-body:    'Barlow', sans-serif;
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */
body {
  font-family: var(--sv-font-body) !important;
  font-weight: 400;
  color: var(--sv-navy);
  background-color: var(--sv-off-white);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.widget-title,
.site-title {
  font-family: var(--sv-font-display) !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--sv-navy);
  line-height: 1 !important;
}

p, li, td, th, label, input, textarea, select {
  font-family: var(--sv-font-body) !important;
}

a {
  color: var(--sv-red);
  transition: color 0.2s, opacity 0.2s;
}
a:hover {
  color: var(--sv-navy);
  text-decoration: none;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

/* Main header wrapper */
#masthead,
.site-header,
header.site-header {
  background-color: var(--sv-navy) !important;
  border-bottom: 3px solid var(--sv-red) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35) !important;
}

/* Sticky header */
.sticky-header #masthead,
.sticky-header header.site-header {
  background-color: rgba(13, 31, 60, 0.97) !important;
  backdrop-filter: blur(8px);
}

/* Site title / logo text */
.site-title,
.site-title a {
  font-family: var(--sv-font-display) !important;
  font-weight: 900 !important;
  font-size: 1.7rem !important;
  color: var(--sv-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.site-title a:hover {
  color: var(--sv-red) !important;
}

/* Site tagline */
.site-description {
  font-family: var(--sv-font-display) !important;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5) !important;
}

/* Nav menu items */
#site-navigation .nav-menu > li > a,
.main-navigation ul li a,
.sydney-nav ul li a {
  font-family: var(--sv-font-display) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s !important;
}

#site-navigation .nav-menu > li > a:hover,
#site-navigation .nav-menu > li.current-menu-item > a,
#site-navigation .nav-menu > li.current_page_item > a,
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--sv-red) !important;
  background: transparent !important;
}

/* Dropdown sub-menus */
.main-navigation ul ul,
#site-navigation .nav-menu ul {
  background-color: var(--sv-navy-dark) !important;
  border-top: 2px solid var(--sv-red) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
.main-navigation ul ul li a {
  font-family: var(--sv-font-display) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.main-navigation ul ul li a:hover {
  color: var(--sv-white) !important;
  background-color: rgba(200, 16, 46, 0.15) !important;
}

/* Mobile menu toggle */
.menu-toggle,
button.menu-toggle {
  color: var(--sv-white) !important;
  background: var(--sv-red) !important;
  border: none !important;
  font-family: var(--sv-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px !important;
}
.menu-toggle:hover {
  background: #a50d24 !important;
}

/* ============================================================
   HERO / FRONT PAGE HEADER
   ============================================================ */
.sydney-hero,
.front-page-header,
.header-image,
.custom-header,
#hero-section,
.wp-block-cover,
.hero-area {
  background-color: var(--sv-navy) !important;
  position: relative;
  overflow: hidden;
}

/* Red diagonal accent — top-right corner (matches brochure chevrons) */
.sydney-hero::after,
.front-page-header::after,
.wp-block-cover::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 180px 180px 0;
  border-color: transparent var(--sv-red) transparent transparent;
  z-index: 1;
  pointer-events: none;
}

/* Hero headings */
.sydney-hero h1,
.sydney-hero h2,
.front-page-header h1,
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2 {
  font-family: var(--sv-font-display) !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  color: var(--sv-white) !important;
  font-size: clamp(3rem, 6vw, 6rem) !important;
  line-height: 0.93 !important;
}

/* Hero eyebrow / subtitle */
.sydney-hero .hero-subtitle,
.sydney-hero p,
.front-page-header p,
.wp-block-cover__inner-container p {
  font-family: var(--sv-font-body) !important;
  font-weight: 300;
  color: rgba(255,255,255,0.65) !important;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.btn,
a.button,
.wc-block-components-button,
.sydney-cta-btn {
  font-family: var(--sv-font-display) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background-color: var(--sv-red) !important;
  color: var(--sv-white) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0.85rem 2.2rem !important;
  transition: background-color 0.2s, transform 0.15s !important;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
a.button:hover {
  background-color: #a50d24 !important;
  color: var(--sv-white) !important;
  transform: translateY(-1px);
}

/* Outline / ghost button variant */
.button.outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--sv-white) !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
}
.button.outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--sv-white) !important;
  background: transparent !important;
  transform: translateY(-1px);
}

/* ============================================================
   PAGE / CONTENT AREA
   ============================================================ */
.site-main,
main#main {
  background-color: var(--sv-off-white);
}

/* Page/post titles */
.entry-header .entry-title,
.page-header .page-title {
  font-family: var(--sv-font-display) !important;
  font-weight: 900 !important;
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  text-transform: uppercase;
  color: var(--sv-navy);
  line-height: 0.95 !important;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* Red underline accent on page titles */
.entry-header .entry-title::after,
.page-header .page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--sv-red);
  margin-top: 0.75rem;
}

/* Section headings */
h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem) !important;
}

/* Body copy */
.entry-content p,
.page-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--sv-steel);
}

/* ============================================================
   SYDNEY FRONT PAGE BLOCKS / SECTIONS
   ============================================================ */

/* Services / Features block */
.sydney-services,
.aThemes-services,
[class*="sydney-fp-"] {
  background-color: var(--sv-white);
  padding: 5rem 0;
}

/* Alternating section backgrounds */
.sydney-services:nth-of-type(even),
.aThemes-section:nth-of-type(even) {
  background-color: var(--sv-off-white);
}

/* Section divider accent */
.sydney-services::before,
.aThemes-section::before {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--sv-red);
  margin: 0 auto 2rem;
}

/* Icon boxes / feature boxes */
.sydney-icon-box,
.feature-box,
.aThemes-icon-box {
  background: var(--sv-white) !important;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  padding: 2rem !important;
}
.sydney-icon-box:hover,
.feature-box:hover,
.aThemes-icon-box:hover {
  border-bottom-color: var(--sv-red) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13,31,60,0.12) !important;
}

.sydney-icon-box .box-icon,
.feature-box .icon,
.aThemes-icon-box i {
  color: var(--sv-red) !important;
  font-size: 2.5rem !important;
}

.sydney-icon-box h3,
.feature-box h3,
.aThemes-icon-box h3 {
  font-family: var(--sv-font-display) !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  text-transform: uppercase;
  color: var(--sv-navy) !important;
  margin-bottom: 0.75rem !important;
}

/* Team blocks */
.sydney-team .name,
.aThemes-team h3 {
  font-family: var(--sv-font-display) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  color: var(--sv-navy) !important;
}
.sydney-team .role,
.aThemes-team .role {
  color: var(--sv-red) !important;
  font-family: var(--sv-font-display) !important;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Testimonials */
.sydney-testimonials,
.aThemes-testimonials {
  background-color: var(--sv-light) !important;
}
.sydney-testimonials blockquote,
.aThemes-testimonials .testimonial-content {
  border-left: 4px solid var(--sv-red) !important;
  font-family: var(--sv-font-body) !important;
  font-weight: 400;
  color: var(--sv-navy) !important;
  font-size: 1rem;
  line-height: 1.75;
}
.testimonial-author,
.sydney-testimonials cite,
.aThemes-testimonials .author-name {
  font-family: var(--sv-font-display) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv-red) !important;
}

/* Stats / numbers section */
.sydney-facts,
.aThemes-facts,
.counter-section {
  background-color: var(--sv-red) !important;
  color: var(--sv-white) !important;
}
.sydney-facts .fact-number,
.aThemes-facts .number,
.counter-section .counter {
  font-family: var(--sv-font-display) !important;
  font-weight: 900 !important;
  font-size: 3.5rem !important;
  color: var(--sv-white) !important;
  line-height: 1;
}
.sydney-facts .fact-label,
.aThemes-facts .label,
.counter-section .counter-label {
  font-family: var(--sv-font-display) !important;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.85rem !important;
}

/* ============================================================
   SIDEBAR & WIDGETS
   ============================================================ */
.widget-title,
.widgettitle {
  font-family: var(--sv-font-display) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sv-navy) !important;
  border-bottom: 3px solid var(--sv-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem !important;
}

/* ============================================================
   CALL TO ACTION (Sydney CTA block)
   ============================================================ */
.sydney-cta,
.aThemes-cta,
.wp-block-group.cta-section {
  background-color: var(--sv-red) !important;
  padding: 5rem 0 !important;
}
.sydney-cta h2,
.aThemes-cta h2,
.wp-block-group.cta-section h2 {
  color: var(--sv-white) !important;
  font-size: clamp(2.5rem, 4vw, 4rem) !important;
}
.sydney-cta p,
.aThemes-cta p,
.wp-block-group.cta-section p {
  color: rgba(255,255,255,0.8) !important;
}
.sydney-cta .button,
.aThemes-cta .button {
  background-color: var(--sv-white) !important;
  color: var(--sv-red) !important;
}
.sydney-cta .button:hover,
.aThemes-cta .button:hover {
  background-color: var(--sv-navy) !important;
  color: var(--sv-white) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon,
.site-footer,
footer.site-footer {
  background-color: var(--sv-navy-dark) !important;
  border-top: 3px solid var(--sv-red) !important;
  color: rgba(255,255,255,0.55) !important;
}

.site-footer .widget-title,
.site-footer .widgettitle {
  color: var(--sv-white) !important;
  border-bottom-color: var(--sv-red);
}

.site-footer a {
  color: rgba(255,255,255,0.65) !important;
}
.site-footer a:hover {
  color: var(--sv-red) !important;
}

.site-info,
.footer-credits {
  background-color: #050e1c !important;
  color: rgba(255,255,255,0.3) !important;
  font-family: var(--sv-font-display) !important;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 1.2rem 0 !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.site-info a {
  color: rgba(255,255,255,0.4) !important;
}
.site-info a:hover {
  color: var(--sv-red) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
  font-family: var(--sv-font-body) !important;
  border: 1.5px solid #d0d7e2 !important;
  border-radius: 2px !important;
  padding: 0.7rem 1rem !important;
  background: var(--sv-white) !important;
  color: var(--sv-navy) !important;
  transition: border-color 0.2s !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--sv-red) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.12) !important;
}

/* ============================================================
   GUTENBERG BLOCKS — BRAND OVERRIDES
   ============================================================ */

/* Cover block */
.wp-block-cover {
  background-color: var(--sv-navy) !important;
}
.wp-block-cover .wp-block-cover__inner-container {
  position: relative; z-index: 2;
}

/* Separator */
.wp-block-separator,
hr {
  border-color: var(--sv-red) !important;
  border-width: 2px !important;
  width: 60px;
  margin: 2rem 0;
}

/* Quote block */
.wp-block-quote {
  border-left: 4px solid var(--sv-red) !important;
  background: var(--sv-white);
  padding: 1.5rem 2rem !important;
}
.wp-block-quote cite {
  font-family: var(--sv-font-display) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv-red) !important;
}

/* Table block */
.wp-block-table thead {
  background-color: var(--sv-navy) !important;
  color: var(--sv-white) !important;
}
.wp-block-table th {
  font-family: var(--sv-font-display) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wp-block-table tbody tr:nth-child(even) {
  background-color: var(--sv-light) !important;
}

/* ============================================================
   UTILITY CLASSES (use in WP block editor custom CSS classes)
   ============================================================ */

/* .sv-red-bar — adds a left red border accent to any block */
.sv-red-bar {
  border-left: 4px solid var(--sv-red) !important;
  padding-left: 1.5rem;
}

/* .sv-section-tag — small uppercase eyebrow label */
.sv-section-tag {
  font-family: var(--sv-font-display) !important;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sv-red);
  display: block;
  margin-bottom: 0.75rem;
}

/* .sv-navy-bg — dark navy background section */
.sv-navy-bg,
.has-sv-navy-background-color {
  background-color: var(--sv-navy) !important;
  color: var(--sv-white) !important;
}
.sv-navy-bg h1, .sv-navy-bg h2, .sv-navy-bg h3,
.sv-navy-bg h4, .sv-navy-bg h5, .sv-navy-bg h6 {
  color: var(--sv-white) !important;
}
.sv-navy-bg p { color: rgba(255,255,255,0.65) !important; }

/* .sv-red-bg */
.sv-red-bg,
.has-sv-red-background-color {
  background-color: var(--sv-red) !important;
  color: var(--sv-white) !important;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  h1, h2 { line-height: 1 !important; }

  .site-title, .site-title a {
    font-size: 1.3rem !important;
  }

  .menu-toggle {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }

  /* Mobile nav */
  .main-navigation ul {
    background-color: var(--sv-navy-dark) !important;
    border-top: 2px solid var(--sv-red);
  }
  .main-navigation ul li a {
    padding: 0.75rem 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }

  .entry-header .entry-title::after,
  .page-header .page-title::after {
    width: 40px;
  }
}
