/* Leach's Sharpening Service — Shared Styles */

:root {
    --blue-dark: #0d3d6e;
    --blue-main: #1a6bb5;
    --blue-light: #3a9fe0;
    --blue-wave: #1e72c8;
    --gray-dark: #2d2d2d;
    --gray-body: #444444;
    --gray-muted: #888888;
    --gray-line: #e0e0e0;
    --white: #ffffff;
    --bg: #f9f9f9;
    --success: #2e7d32;
    --warning: #e65100;
    --danger: #c62828;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Barlow', sans-serif;
    background: var(--bg);
    color: var(--gray-dark);
    font-size: 16px;
  }

  /* ========== PAGE TRANSITIONS ========== */
  /* Cross-document View Transitions API — Chrome 126+, Safari 18.2+ */
  /* Zero JS required for supported browsers. Instant fallback for others. */
  @view-transition {
    navigation: auto;
  }

  /* Fade animation for the page as a whole */
  @keyframes vt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
  }

  ::view-transition-old(root) {
    animation: vt-fade-out 0.12s ease forwards;
  }
  ::view-transition-new(root) {
    animation: vt-fade-in 0.18s ease forwards;
  }

  /* JS fallback for browsers without View Transitions support */
  body.page-fading-out {
    opacity: 0;
    transition: opacity 0.12s ease;
  }
  body.page-fading-in {
    opacity: 0;
  }
  body.page-visible {
    opacity: 1;
    transition: opacity 0.18s ease;
  }

  /* ========== NAVIGATION ========== */
  nav {
    background: var(--white);
    border-bottom: 3px solid #1e7fd4;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  /* Owner nav hidden by default — JS shows it only after login */
  #owner-nav { display: none; }

  /* ========== ANNOUNCEMENT BANNER ========== */
  #announcement-banner {
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 200;
    border-left: 4px solid transparent;
    transition: none;
  }

  #main-nav {
    position: relative;
  }

  .nav-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 0.4rem 0.9rem;
    color: var(--gray-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.15s;
  }

  .nav-links a:hover, .nav-links a.active {
    background: var(--blue-main);
    color: var(--white);
  }

  /* ========== NAV DROPDOWN ========== */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
    transition: transform 0.15s;
  }

  .nav-dropdown:hover > a::after {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--gray-line);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 190px;
    z-index: 200;
    overflow: hidden;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gray-body) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    background: none !important;
    border-radius: 0 !important;
    transition: background 0.12s;
    white-space: nowrap;
  }

  .nav-dropdown-menu a:hover {
    background: #f0f4fb !important;
    color: var(--blue-main) !important;
  }

  .nav-dropdown-menu a + a {
    border-top: 1px solid var(--gray-line);
  }

  .nav-owner-btn {
    background: #0d3d6e;
    color: var(--white) !important;
    border-radius: 4px;
  }

  /* ========== PAGES ========== */
  /* page visibility handled per-file in multi-page build */

  /* ========== WAVE HEADER ========== */
  .wave-header {
    background: #0d3d6e;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem 5rem;
  }

  .wave-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
  }

  .wave-stripe {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .wave-stripe svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* ========== HERO ========== */
  .hero {
    background: #0d3d6e;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  .hero-waves {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 6rem;
    max-width: 600px;
  }

  .hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--white);
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    max-width: 460px;
  }

  .hero-cta {
    display: inline-block;
    background: var(--white);
    color: var(--blue-dark);
    padding: 0.75rem 1.75rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.15s;
  }

  .hero-cta:hover {
    background: var(--blue-light);
    color: var(--white);
  }

  .hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 3;
  }

  /* ========== SECTIONS ========== */
  .section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
  }

  .section-header {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--blue-dark);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    border-bottom: 3px solid var(--blue-main);
    padding-bottom: 0.5rem;
  }

  .section-sub {
    color: var(--gray-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* ========== PRICING TABLE ========== */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }

  .price-card {
    background: var(--white);
    border: 1.5px solid var(--gray-line);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s;
  }

  .price-card:hover {
    border-color: var(--blue-main);
    transform: translateY(-2px);
  }

  .price-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .price-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
  }

  .price-card .price {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--blue-main);
  }

  .btn-outline-blue {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--blue-main);
    border: 2px solid var(--blue-main);
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }

  .btn-outline-blue:hover {
    background: var(--blue-main);
    color: var(--white);
  }

  /* ========== CONTACT ========== */
  .contact-bar {
    background: #0d3d6e;
    color: var(--white);
    padding: 2rem;
    text-align: center;
  }

  .contact-bar h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .contact-item a {
    color: var(--white);
    text-decoration: none;
  }

  .contact-item a:hover {
    text-decoration: underline;
  }
  /* ========== MOBILE MENU ========== */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: all 0.2s;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 2px solid var(--gray-line);
    padding: 0.75rem 1.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    display: block;
    padding: 0.6rem 0;
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-line);
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu a.active {
    color: var(--blue-main);
    font-weight: 700;
  }

  .mobile-logout {
    color: #e57373 !important;
    margin-top: 0.5rem;
  }

  @media (max-width: 700px) {
    .hamburger { display: flex; }
    .nav-links { display: none !important; }
  }

  /* ========== BUTTONS ========== */
  .btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1.5px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    box-sizing: border-box;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--blue-main); color: var(--white); }
  .btn-primary:hover { background: #0d3d6e; }
  .btn-secondary { background: var(--gray-dark); color: var(--white); }
  .btn-secondary:hover { background: #111; }
  .btn-success { background: var(--success); color: var(--white); }
  .btn-danger { background: var(--danger); color: var(--white); }
  .btn-outline { background: transparent; color: var(--blue-main); border: 1.5px solid var(--blue-main); }
  .btn-outline:hover { background: var(--blue-main); color: var(--white); }
  .btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
  .btn-xs { padding: 0.25rem 0.5rem; font-size: 0.78rem; }

  /* ========== ABOUT PAGE ========== */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  @media (max-width: 600px) {
    .about-grid { grid-template-columns: 1fr; }
  }

  .info-block {
    background: var(--white);
    border: 1.5px solid var(--gray-line);
    border-radius: 6px;
    padding: 1.5rem;
  }
  .info-block h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--blue-light);
    padding-bottom: 0.5rem;
  }
  .info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    gap: 1rem;
  }
  .info-row:last-child { border-bottom: none; }
  .info-row .key {
    color: var(--gray-muted);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .info-row .val { font-weight: 600; color: var(--gray-dark); text-align: right; }

  /* ========== FOOTER ========== */
  footer {
    background: var(--white);
    border-top: 1px solid var(--gray-line);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-muted);
  }
