/*
 * Theme Name:   Sails.Online Child
 * Theme URI:    https://sails.online
 * Description:  Sails.Online child theme — Kraken Sails brand system with nautical blue accent.
 *               Parent theme: Astra. Install Astra first, then activate this child theme.
 * Author:       Kraken Sails / Christie Hamilton
 * Author URI:   https://krakensails.com
 * Template:     astra
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * Text Domain:  sails-online-child
 */

/* ────────────────────────────────────────
   SAILS.ONLINE DESIGN TOKENS
   Kraken brand system · Blue accent (#2AABF0)
   ──────────────────────────────────────── */

:root {
  --so-navy:        #0E1A29;
  --so-blue:        #2AABF0;
  --so-blue-dark:   #1A8FD1;
  --so-blue-faint:  rgba(42,171,240,0.10);
  --so-white:       #FFFFFF;
  --so-offwhite:    #F7F6F4;
  --so-textgrey:    #6B6A68;
  --so-subtle:      rgba(255,255,255,0.65);
  --so-faint:       rgba(255,255,255,0.45);
}

/* ────────────────────────────────────────
   GLOBAL
   ──────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--so-navy);
  background: var(--so-white);
}

/* ────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.ast-woocommerce-container .woocommerce .product_title,
.entry-title,
.site-title,
.widget-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
}

h1 { font-size: 56px !important; }
h2 { font-size: 42px !important; }
h3 { font-size: 22px !important; }
h4 { font-size: 18px !important; }

.so-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--so-blue);
  display: block;
  margin-bottom: 12px;
}

.so-divider {
  width: 56px;
  height: 4px;
  background: var(--so-blue);
  margin-bottom: 24px;
  display: block;
}

.so-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ────────────────────────────────────────
   HEADER & NAVIGATION
   ──────────────────────────────────────── */
.ast-header-break-point .main-header-bar,
.main-header-bar,
#masthead,
.site-header {
  background: var(--so-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Logo / Site title */
.site-title a,
.ast-site-identity .site-title a {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  text-transform: uppercase !important;
  color: var(--so-white) !important;
  letter-spacing: 0.04em !important;
}

/* Nav items */
.ast-builder-menu .menu-item a,
#ast-desktop-header .main-header-menu .menu-item a,
.main-navigation .main-header-menu .menu-item > a {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.2s !important;
}

.ast-builder-menu .menu-item a:hover,
#ast-desktop-header .main-header-menu .menu-item a:hover {
  color: var(--so-white) !important;
}

/* Dropdown */
.ast-builder-menu .sub-menu {
  background: var(--so-navy) !important;
  border-top: 2px solid var(--so-blue) !important;
}

.ast-builder-menu .sub-menu .menu-item a {
  color: rgba(255,255,255,0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

/* ────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────── */
.ast-button,
.ast-custom-button,
.menu-toggle,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--so-blue) !important;
  color: var(--so-white) !important;
  border: 2px solid transparent !important;
  border-radius: 2px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.055em !important;
  padding: 12px 24px !important;
  transition: background 0.2s, border-color 0.2s !important;
  box-shadow: none !important;
}

.ast-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: var(--so-blue-dark) !important;
}

/* Ghost/outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--so-navy) !important;
  border-color: var(--so-navy) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--so-navy) !important;
  color: var(--so-white) !important;
}

/* White ghost (on dark backgrounds) */
.so-btn-ghost-white {
  background: transparent !important;
  color: var(--so-white) !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
}

.so-btn-ghost-white:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* ────────────────────────────────────────
   LINKS & ACCENT
   ──────────────────────────────────────── */
a { color: var(--so-blue); transition: color 0.2s; }
a:hover { color: var(--so-blue-dark); }

/* ────────────────────────────────────────
   WOOCOMMERCE — PRODUCT CARDS
   ──────────────────────────────────────── */
.woocommerce ul.products li.product {
  border-top: 4px solid var(--so-blue) !important;
  border-radius: 2px !important;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 32px rgba(14,26,41,0.12) !important;
  transform: translateY(-3px) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--so-navy) !important;
}

.woocommerce ul.products li.product .price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--so-navy) !important;
}

.woocommerce span.onsale {
  background: var(--so-blue) !important;
  color: var(--so-white) !important;
  border-radius: 2px !important;
}

/* ────────────────────────────────────────
   WOOCOMMERCE — SINGLE PRODUCT
   ──────────────────────────────────────── */
.woocommerce div.product .product_title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--so-navy) !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  color: var(--so-blue) !important;
}

.woocommerce .star-rating span::before { color: var(--so-blue) !important; }
.woocommerce .star-rating::before { color: #ddd !important; }

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--so-navy) !important;
  border-bottom: 3px solid var(--so-blue) !important;
}

/* ────────────────────────────────────────
   WOOCOMMERCE — CART & CHECKOUT
   ──────────────────────────────────────── */
.woocommerce-page .woocommerce-cart-form__cart-item,
.woocommerce table.shop_table {
  font-family: 'Inter', sans-serif !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  background: var(--so-offwhite) !important;
  border: 1px solid #E8E7E5 !important;
}

/* ────────────────────────────────────────
   SECTIONS — UTILITY CLASSES
   For use in page builder blocks
   ──────────────────────────────────────── */

/* Navy dark section */
.so-section-navy {
  background: var(--so-navy) !important;
  color: var(--so-white) !important;
}

.so-section-navy h1,
.so-section-navy h2,
.so-section-navy h3,
.so-section-navy h4 { color: var(--so-white) !important; }

.so-section-navy p { color: var(--so-subtle) !important; }

/* Blue accent section */
.so-section-blue {
  background: var(--so-blue) !important;
  color: var(--so-white) !important;
}

/* Off-white section */
.so-section-offwhite {
  background: var(--so-offwhite) !important;
}

/* ────────────────────────────────────────
   CATEGORY CARDS
   ──────────────────────────────────────── */
.so-cat-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none !important;
  border-radius: 2px;
}

.so-cat-card:hover .so-cat-overlay {
  background: linear-gradient(to top, rgba(14,26,41,0.92) 0%, rgba(14,26,41,0.35) 60%, rgba(14,26,41,0.1) 100%) !important;
}

.so-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,26,41,0.80) 0%, rgba(14,26,41,0.15) 60%, transparent 100%);
  transition: background 0.3s;
}

.so-cat-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--so-white) !important;
}

/* ────────────────────────────────────────
   FEATURE / WHY CARDS
   ──────────────────────────────────────── */
.so-feature-card {
  border-top: 3px solid var(--so-blue);
  padding: 40px 32px;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.so-feature-card:hover { background: rgba(255,255,255,0.07); }

.so-feature-card h3 { color: var(--so-white) !important; font-size: 20px !important; margin-bottom: 12px !important; }
.so-feature-card p  { color: var(--so-subtle) !important; font-size: 14px !important; }

/* ────────────────────────────────────────
   COMPARISON TABLE
   ──────────────────────────────────────── */
.so-compare-table { width: 100%; border-collapse: collapse; }

.so-compare-table th {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 16px 20px !important;
  text-align: center !important;
}

.so-compare-table th.so-highlight {
  background: var(--so-blue) !important;
  color: var(--so-white) !important;
}

.so-compare-table td {
  padding: 14px 20px !important;
  text-align: center !important;
  font-size: 14px !important;
  border-bottom: 1px solid #E8E7E5 !important;
  color: var(--so-textgrey) !important;
}

.so-compare-table td.so-highlight {
  background: rgba(42,171,240,0.06) !important;
  font-weight: 600 !important;
  color: var(--so-navy) !important;
}

/* ────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────── */
.site-footer,
footer.site-footer,
#colophon,
.ast-builder-grid-row[data-section="footer-builder"] {
  background: #080f17 !important;
  color: rgba(255,255,255,0.4) !important;
}

.site-footer a { color: rgba(255,255,255,0.45) !important; }
.site-footer a:hover { color: rgba(255,255,255,0.8) !important; }

.site-footer .widget-title,
.site-footer h3,
.site-footer h4 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--so-blue) !important;
}

.ast-small-footer,
.ast-footer-copyright {
  background: rgba(0,0,0,0.3) !important;
  color: rgba(255,255,255,0.25) !important;
  font-size: 12px !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
}

/* ────────────────────────────────────────
   FORMS & INPUTS
   ──────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
  border: 1px solid #E0DFDD !important;
  border-radius: 2px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: var(--so-navy) !important;
  transition: border-color 0.2s !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--so-blue) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(42,171,240,0.15) !important;
}

/* ────────────────────────────────────────
   SCROLLBAR
   ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--so-offwhite); }
::-webkit-scrollbar-thumb { background: var(--so-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--so-blue-dark); }
