/*
Theme Name: TROQC
Theme URI: https://theranchofquestionablechoices.com
Author: Shandra
Description: The Ranch of Questionable Choices - a standalone WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: troqc
*/

/*
 * File: style.css
 * Version: 1.0.0
 * Last Modified: 2026-02-09
 */

/* ===========================================
   BASE RESET & DEFAULTS
   Replaces GeneratePress base CSS
   =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #F6F1EA;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #3F6D7D;
  text-decoration: none;
  position: relative;
}

a:hover {
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

a:hover::after {
  transform: scaleX(1);
}

/* Suppress sliding underline on button-style links */
.sidebar-start-button::after,
a.btn::after {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
}

/* ===========================================
   GLOBAL WIDGET STYLES
   Reusable across all pages/sidebars
   =========================================== */

/* Start Here Card Widget */
.sidebar-start-card {
  text-align: center;
  position: relative;
  padding-top: 30px;
}

.sidebar-start-label {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #999;
  margin-bottom: 15px;
}

.sidebar-start-icon {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 32px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
  border: 2px solid #f0e6d2;
}

.sidebar-start-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin: 0 0 10px 0;
  color: #333;
}

.sidebar-start-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-start-title a:hover {
  color: #666;
}

.sidebar-start-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.sidebar-start-button {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: #333;
  padding: 12px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.sidebar-start-button:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

/* ===========================================
   GLOBAL BUTTON STYLES
   =========================================== */
button,
input[type="submit"],
.wp-block-button__link,
.btn,
a.btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 25%);
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.55em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

/* Remove heavy default shadows */
button,
.wp-block-button__link,
.btn {
  box-shadow: none;
}

/* Hover / focus state */
button:hover,
button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.btn:hover,
.btn:focus {
  background-color: rgba(0, 0, 0, 4%);
  border-color: rgba(0, 0, 0, 4%);
  color: inherit;
  transform: translateY(-1px);
  outline: none;
}

/* Active / pressed state */
button:active,
.wp-block-button__link:active,
.btn:active {
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 6%);
}

/* Disabled buttons */
button:disabled,
.wp-block-button__link.disabled,
.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===========================================
   INLINE POST IMAGES
   =========================================== */
.wp-block-image.alignright img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
  background: #fff;
}

/* ===========================================
   CUSTOM UTILITY CLASSES
   =========================================== */
.float-right {
  float: right !important;
  margin: 0 0 1em 1.5em !important;
  max-width: 50%;
}

.rounded,
.rounded img {
  border-radius: 24px;
  overflow: hidden;
}

.rounded-xl,
.rounded-xl img {
  border-radius: 100px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .float-right {
    float: none !important;
    margin: 1em auto !important;
    max-width: 100%;
    display: block;
  }
}

/* ===========================================
   NAVIGATION (GLOBAL)
   =========================================== */
.site-header,
.main-navigation {
  max-width: 1300px;
  margin: 10px auto 0 auto;
}

.inside-header {
  justify-content: center;
  padding: 0;
}

.menu-toggle,
.main-nav {
  margin: 0 auto;
}

/* Nav Bar — Teal with Grain Texture */
.main-navigation {
  background: #3F6D7D;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  position: relative;
}

.main-navigation::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.main-navigation a {
  color: #fff !important;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 60px;
  padding: 0 20px;
  transition: opacity 0.2s;
  position: relative;
  z-index: 1;
}

.main-navigation a:hover {
  opacity: 1;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 25%;
  width: 50%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-navigation a:hover::after {
  transform: scaleX(1);
}

/* wp_nav_menu outputs a <ul> — flatten it for the nav bar */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  justify-content: center;
}

.main-navigation li {
  margin: 0;
}

/* ===========================================
   MOBILE MENU
   =========================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
  position: relative;
}

.menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

@media (max-width: 1050px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation {
    flex-wrap: wrap;
    padding: 8px 20px;
  }

  .main-navigation li {
    width: 100%;
    text-align: center;
    padding: 4px 0;
  }

  .main-navigation a {
    line-height: 1.4;
    padding: 6px 20px;
    display: block;
  }

  .main-navigation a::after {
    display: none;
  }
}

/* ===========================================
   HEADER ACCOUNT LINK
   =========================================== */
.site-header-account {
  max-width: 1300px;
  margin: 0 auto;
  text-align: right;
  padding: 6px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.site-header-account a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header-account a:hover {
  color: #3F6D7D;
}

.site-header-account .account-sep {
  color: #ccc;
  margin: 0 6px;
}

@media (max-width: 768px) {
  .site-header-account {
    text-align: center;
    padding: 4px 15px;
  }
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  max-width: 1300px;
  margin: 40px auto 0 auto;
  padding: 20px 30px;
  text-align: center;
}

.site-footer .copyright {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #777;
}

.footer-widgets {
  background-color: transparent;
}

/* ===========================================
   SKIP LINK (ACCESSIBILITY)
   =========================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  z-index: 100000;
}
