/*
Theme Name:   Octorock
Theme URI:    https://www.octorock.com
Description:  Divi Child Theme
Author:       Brent Reader
Author URI:   https://www.octorock.com
Template:     Divi
Version:      1.0.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  divichild
*/

/* =Theme customization starts here
------------------------------------------------- */

h1 {font-weight:700;letter-spacing:1px}
h2, h3, h4, h5, h6 {font-weight:700;}
p {font-weight: 300;}
body li {font-weight: 300;}  /* was only in Customizer > Additional CSS until 2026-11-22 */

#top-menu li {font-weight:300;}

/* Page background for every page (2026-11-22): navy into purple into the coral of the footer, the /hosting look. The gradient
   starts beneath the hero: octorock.js sets --oc-hero to the first section's height when that section has a background image,
   so the run from navy (38% of the remaining height to #3b1d59, 72% to #663399) to coral at the footer is the same on every
   page whatever the hero's height. Pages without a hero start at the top. Sections are transparent by default (below); a page
   that needs an exception sets a section background in the builder or its own rule in its page CSS. The body color behind it
   is #060f3e (Customizer). */
#main-content {
    --oc-hero: 0px;
    background-image: linear-gradient(#060f3e 0, #060f3e var(--oc-hero),
        #3b1d59 calc(var(--oc-hero) + (100% - var(--oc-hero)) * 0.38),
        #663399 calc(var(--oc-hero) + (100% - var(--oc-hero)) * 0.72),
        #f2666d 100%);
}
/* sections are transparent by default so the gradient shows (Divi's base stylesheet fills a section with white when it has no
   background setting); a section with its own color or image in the builder still wins, since Divi writes those with !important */
body #main-content .et_pb_section, .et-db #et-boc #main-content .et-l .et_pb_section {background-color: transparent;}  /* second form: Theme Builder body layouts, whose wrapper sits inside #main-content */
/* Theme Builder body layouts (events archive, single event) load Divi's builder CSS scoped to .et-db #et-boc .et-l, which
   outranks ordinary selectors; the footer colors are repeated under that scope so those pages match the rest */
.et-db #et-boc .et-l .oc-foot .et_pb_text, .et-db #et-boc .et-l .oc-foot .et_pb_text p, .et-db #et-boc .et-l .oc-foot .et_pb_text li,
.et-db #et-boc .et-l .oc-foot .et_pb_text a, .et-db #et-boc .et-l .oc-foot h3, .et-db #et-boc .et-l .oc-foot .oc-nolink { color: #060f3e; }
.et-db #et-boc .et-l .oc-legal .et_pb_text, .et-db #et-boc .et-l .oc-legal p, .et-db #et-boc .et-l .oc-legal a, .et-db #et-boc .et-l .oc-legal li { color: #d9cbea; }
.et-db #et-boc .et-l .oc-legal ul.oc-legal-links a, .et-db #et-boc .et-l .oc-legal .oc-copy { color: #ffffff; }

body #main-content .container:before {width: 0;}  /* body prefix: Divi's parent stylesheet is inlined after this file, so equal-specificity rules here would lose */

/* ------------------------------------------------------------------
   Octorock additions (repo site/divi-child/style.css, site/scripts/wp_child_theme.py)
   ------------------------------------------------------------------ */

/* Header (2026-11-22). The fixed bar is navy (Customizer > Header > Fixed Navigation); a faint line separates it from the page. */
#main-header.et-fixed-header { box-shadow: 0 1px 0 rgba(255,255,255,0.08) !important; }  /* over Divi's own fixed-header shadow */

/* One hover treatment for everything in the bar: the menu items' #ff8a8a over .4s (Divi Toolbox menu2) also on the search
   icon, its closer, the logo and the hamburger / its closer. */
#et_search_icon:before, span.et_close_search_field:after { transition: color .4s ease-in-out; }
#et_search_icon:hover, #et_search_icon:hover:before, span.et_close_search_field:hover:after { color: #ff8a8a; }
/* logo: the <img> is kept for its alt text and size but drawn transparent; a masked box in the link paints the same SVG in the
   current color so it can transition like the text links */
/* logo height: Divi's 54% of the bar, less 20% at the top of the page (43.2%) and less 10% once the bar is fixed (48.6%) */
.logo_container a { display: inline-block; position: relative; vertical-align: middle; height: 43.2%; }
#main-header.et-fixed-header .logo_container a { height: 48.6%; }
#logo, .et_pb_svg_logo #logo { height: 100%; max-height: 100%; width: auto; opacity: 0; }
.logo_container a::after { content: ''; position: absolute; inset: 0; background-color: #ffffff; -webkit-mask: url(https://www.octorock.com/wp-content/uploads/2026/11/octorock-logo-wordmark-white.svg?v=2) center / contain no-repeat; mask: url(https://www.octorock.com/wp-content/uploads/2026/11/octorock-logo-wordmark-white.svg?v=2) center / contain no-repeat; transition: background-color .4s ease-in-out; pointer-events: none; }
.logo_container a:hover::after, .logo_container a:focus-visible::after { background-color: #ff8a8a; }
@media (max-width: 980px) { .dtb_mobile .logo_container a, .dtb_mobile #main-header.et-fixed-header .logo_container a { height: 57.6%; } }  /* Toolbox's 72% less 20% */
/* hamburger (Divi Toolbox icon 5): same color and timing on hover, in both the three-line and the X state */
#main-header .mobile_menu_bar .dtb-hamburger-inner { transition: transform .22s cubic-bezier(.55,.055,.675,.19), background-color .4s ease-in-out; }
#main-header .mobile_menu_bar .dtb-hamburger-inner::before { transition: top .1s .25s ease-in, opacity .1s ease-in, background-color .4s ease-in-out; }
#main-header .mobile_menu_bar .dtb-hamburger-inner::after { transition: bottom .1s .25s ease-in, transform .22s cubic-bezier(.55,.055,.675,.19), background-color .4s ease-in-out; }
#main-header .hamburger_menu_icon-toggled .dtb-hamburger-inner { transition: transform .22s .12s cubic-bezier(.215,.61,.355,1), background-color .4s ease-in-out; }
#main-header .hamburger_menu_icon-toggled .dtb-hamburger-inner::before { transition: top .1s ease-out, opacity .1s .12s ease-out, background-color .4s ease-in-out; }
#main-header .hamburger_menu_icon-toggled .dtb-hamburger-inner::after { transition: bottom .1s ease-out, transform .22s .12s cubic-bezier(.215,.61,.355,1), background-color .4s ease-in-out; }
#main-header .mobile_menu_bar:hover .dtb-hamburger-inner, #main-header .mobile_menu_bar:hover .dtb-hamburger-inner::before, #main-header .mobile_menu_bar:hover .dtb-hamburger-inner::after,
#main-header .hamburger_menu_icon-toggled:hover .dtb-hamburger-inner, #main-header .hamburger_menu_icon-toggled:hover .dtb-hamburger-inner::before, #main-header .hamburger_menu_icon-toggled:hover .dtb-hamburger-inner::after { background-color: #ff8a8a; }

/* Sidebar (blog and single posts): widget links were Divi's grey; white with the same hover as the menu */
#sidebar .et_pb_widget, #sidebar .et_pb_widget li { color: rgba(255,255,255,0.9); }
#sidebar .et_pb_widget a { color: rgba(255,255,255,0.9); transition: color .4s ease-in-out; }
#sidebar .et_pb_widget a:hover, #sidebar .et_pb_widget a:focus-visible { color: #ff8a8a; }

/* Animated underline on hover and focus, the same gesture as the top menu's (Divi Toolbox menu2: a line (1.5px here)
   growing from the center in 0.3s). Drawn as a background so it follows wrapped inline links; the color is the
   link's own color. Buttons, images and the top menu (which has its own) are left alone. */
.et_pb_text a:not(.et_pb_button), .entry-content p a:not(.et_pb_button), .oc-foot a, .oc-legal a {
    text-decoration: none;
    padding-bottom: 6px;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 1.5px;
    transition: background-size 0.3s ease-in-out, color 0.3s ease-in-out;
    border-radius: 0;
}
.et_pb_text a:not(.et_pb_button):hover, .et_pb_text a:not(.et_pb_button):focus-visible,
.entry-content p a:not(.et_pb_button):hover, .entry-content p a:not(.et_pb_button):focus-visible,
.oc-foot a:hover, .oc-foot a:focus-visible, .oc-legal a:hover, .oc-legal a:focus-visible {
    background-size: 100% 1.5px;
}
.et_pb_text a:focus-visible, .oc-foot a:focus-visible, .oc-legal a:focus-visible { outline-offset: 4px; border-radius: 2px; }  /* ring colors: Accessibility, below */

/* Site footer (Theme Builder layout "Octorock site footer", menus from Appearance > Menus) */
.oc-foot .et_pb_text, .oc-foot .et_pb_text p, .oc-foot .et_pb_text li, .oc-foot .et_pb_text a { color: #060f3e; }
.oc-foot h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #060f3e; margin: 0 0 14px; padding: 0; }
.oc-foot ul.oc-menu { list-style: none; margin: 0; padding: 0 !important; }  /* !important: Divi's Theme Builder scope gives lists 1em bottom padding on the events pages */
.oc-foot ul.oc-menu li { margin: 0; padding: 0; list-style: none; }
.oc-foot ul.oc-menu li a, .oc-foot ul.oc-menu li .oc-nolink { display: inline-block; padding: 8px 0; min-height: 44px; line-height: 28px; font-size: 1rem; font-weight: 300; text-decoration: none; background-position: 50% calc(100% - 7px); }
.oc-foot .oc-brand p { font-size: 1rem; line-height: 1.6; margin: 0 0 10px; }
.oc-foot .oc-brand img { display: block; width: 56px; height: auto; margin: 0 0 6px; }
.oc-foot .oc-brand .oc-brand-name { display: block; font-size: 1rem; margin: 0 0 4px; }
.oc-foot .oc-brand a { text-decoration: none; }
/* email and phone: the same box and underline position as the menu links (an inline-block with a taller min-height pushed the line down) */
.oc-foot .oc-brand-contact { line-height: 28px; }
.oc-foot .oc-brand-contact a { display: inline-block; padding: 8px 0; min-height: 44px; line-height: 28px; background-position: 50% calc(100% - 7px); }
.oc-foot .et_pb_row { padding-top: 0; padding-bottom: 0; }
/* the line sits centered between the divider and the legal band: equal padding on both sides, no module or column margin below,
   and the section itself has no bottom padding */
.oc-foot .oc-trust { border-top: 1px solid rgba(6,15,62,0.25); margin-top: 24px; padding: 26px 0; }
/* top rule: the same line; its margin below matches the gap between the bottom of the longest column and the bottom rule */
.oc-foot .oc-rule { border-top: 1px solid rgba(6,15,62,0.25); margin-bottom: 44px; }
.oc-foot .oc-rule-row .et_pb_module, .oc-foot .oc-rule-row .et_pb_column { margin-bottom: 0 !important; }
.oc-foot .oc-trust-row .et_pb_column, .oc-foot .oc-trust-row .et_pb_module { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.oc-foot .oc-trust p { margin: 0; font-size: 0.9rem; color: #060f3e; text-align: center; letter-spacing: 0.02em; }
.oc-foot .oc-trust span { white-space: nowrap; }
.oc-legal { background: #060f3e; }
.oc-legal .et_pb_text, .oc-legal p, .oc-legal a, .oc-legal li { color: #d9cbea; font-size: 0.85rem; }
.oc-legal ul.oc-legal-links { list-style: none; margin: 0; padding: 0 !important; text-align: right; }
.oc-legal ul.oc-legal-links li { display: inline-block; margin: 0 0 0 20px; padding: 0; }
.oc-legal ul.oc-legal-links a { display: inline-block; padding: 6px 0; min-height: 36px; line-height: 24px; font-weight: 300; text-decoration: none; white-space: nowrap; color: #ffffff; background-position: 50% calc(100% - 3px); }
/* slim band: no row padding on desktop; the 36px link boxes give it its height (the row has no Divi padding setting, which would outrank this) */
.oc-legal .et_pb_row { padding: 0 !important; display: flex; align-items: center; }  /* !important: Divi's Theme Builder scope gives rows 2% padding on the events pages */
.oc-legal .et_pb_column { margin-bottom: 0 !important; }
.oc-legal .oc-copy { line-height: 36px; margin: 0; color: #ffffff; }
@media (max-width: 980px) {
    .oc-foot .et_pb_column_1_4 { margin-bottom: 20px !important; }
    /* tablets and phones: links first, copyright last, every line a 36px row (the copyright keeps its 36px line box); the band's
       padding (8.5px, !important over Divi's phone row padding) plus a row's own 8.5px of air equals the 17px between the text of two rows */
    .oc-legal .et_pb_row { display: flex; flex-direction: column; padding: 8.5px 0 !important; }
    .oc-legal .et_pb_column_1_3 { order: 2; }
    .oc-legal ul.oc-legal-links, .oc-legal .oc-copy { text-align: center; }
    .oc-legal ul.oc-legal-links li { margin: 0 10px; }
}
@media (max-width: 767px) {
    .oc-foot ul.oc-menu li a, .oc-foot ul.oc-menu li .oc-nolink { padding: 10px 0; background-position: 50% calc(100% - 9px); }
    .oc-foot .oc-trust span { display: block; }
    .oc-foot .oc-trust .oc-sep { display: none; }
    /* phones: the divider follows the last menu closely and the line has less air above and below */
    .oc-foot .oc-deck .et_pb_column_1_4:last-child, .oc-foot .oc-deck .et_pb_column_1_4:last-child .et_pb_module { margin-bottom: 0 !important; }
    .oc-foot .oc-trust { margin-top: 8px; padding: 16px 0; }
    .oc-foot .oc-rule { margin-bottom: 18px; }
    /* phones: everything in the deck is centered */
    .oc-foot .et_pb_text, .oc-foot .oc-brand, .oc-foot h3, .oc-foot ul.oc-menu { text-align: center; }
    .oc-foot .oc-brand img { margin: 0 auto 6px; }
    /* legal band: policy links in one centered column, copyright last */
    .oc-legal ul.oc-legal-links li { display: block; margin: 0; }
}

/* ------------------------------------------------------------------
   Accessibility (WCAG 2.2 AA); behavior in a11y.js, markup hooks in functions.php
   ------------------------------------------------------------------ */

/* skip link: off screen until it receives keyboard focus */
.oc-skip { position: absolute; left: 12px; top: 0; z-index: 100050; transform: translateY(-130%); padding: 12px 18px; background: #ffffff; color: #060f3e; font-weight: 600; text-decoration: none; border-radius: 0 0 8px 8px; }
.oc-skip:focus { transform: none; outline: 2px solid #060f3e; outline-offset: -5px; }
#main-content:focus { outline: none; }
/* anchors and focused elements stop below the fixed bar, not under it */
html { scroll-padding-top: 100px; }

/* screen-reader-only text (live region for form results) */
.oc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* keyboard focus: a white ring with a navy halo reads on every stop of the page gradient, the coral footer and photos */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
    outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #060f3e;
}
/* text fields: a thin ring inside the field's own edge */
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #663399; outline-offset: -2px; }
/* the header's search icon and its closer are zero-size boxes that draw an icon in a pseudo-element: ring the icon */
#et_search_icon:focus-visible, span.et_close_search_field:focus-visible { outline: none; box-shadow: none; }
#et_search_icon:focus-visible::before, span.et_close_search_field:focus-visible::after { outline: 2px solid #ffffff; outline-offset: 5px; box-shadow: 0 0 0 8px #060f3e; border-radius: 2px; }
#et_search_icon:focus-visible::before, span.et_close_search_field:focus-visible::after { color: #ff8a8a; }
/* the header search field sits on the dark bar */
#main-header .et-search-field:focus-visible { outline-color: #ffffff; outline-offset: 2px; }
/* while the search field is open the menu is faded out: take it out of the tab order too */
#main-header .et_pb_menu_hidden #top-menu-nav, #main-header .et_pb_menu_hidden #et_mobile_nav_menu { visibility: hidden; }
/* 320px (400% zoom): the footer line may wrap instead of forcing a sideways scroll */
@media (max-width: 359px) { .oc-foot .oc-trust span { white-space: normal; } }
/* toggle and accordion titles: the control is the text inside the heading */
.et_pb_toggle_title .oc-toggle-btn { display: block; cursor: pointer; }
.et_pb_toggle_title .oc-toggle-btn:focus-visible { outline-offset: 6px; border-radius: 2px; }

/* contact forms: Divi hides the field labels and relies on placeholders; show the labels and drop the duplicate placeholders */
.et_pb_contact_form .et_pb_contact_form_label { display: block; margin: 0 0 6px; color: #ffffff; font-size: 1rem; font-weight: 400; }
.et_pb_contact_form .input::placeholder { color: transparent !important; }

/* blog, posts, search results */
.wp-block-search .wp-block-search__label { display: block !important; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#sidebar .wp-block-search__button { color: #3e3c3f; }
a.dtb-read-more, a.dtb-read-more:visited { color: #060f3e !important; }
#commentform p > label[for] { display: block !important; margin: 0 0 6px; color: #ffffff; font-size: 1rem; }
#commentform input::placeholder, #commentform textarea::placeholder { color: transparent !important; }
/* events (Divi Events Calendar module): its Bootstrap-style rows are 5px wider than a phone screen */
@media (max-width: 767px) { .append_events.row, .append_events .row { margin-left: 0 !important; margin-right: 0 !important; } }

/* background video pause control: appears on hover, on keyboard focus and while paused; always shown on touch screens */
.oc-video-toggle { position: absolute; right: 18px; bottom: 18px; z-index: 20; width: 44px; height: 44px; padding: 0; border: 2px solid #ffffff; border-radius: 50%; background: rgba(6, 15, 62, 0.78); color: #ffffff; cursor: pointer; opacity: 0; transition: opacity .2s ease-in-out; }
.et_pb_section_video:hover .oc-video-toggle, .oc-video-toggle:focus-visible, .oc-video-toggle.is-paused { opacity: 1; }
@media (hover: none) { .oc-video-toggle { opacity: 0.85; } }
.oc-video-toggle::before { content: ''; display: block; box-sizing: border-box; width: 12px; height: 14px; margin: 0 auto; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.oc-video-toggle.is-paused::before { width: 0; height: 0; margin: 0 0 0 16px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }

/* visitors who ask their system for less motion: no entrance animations, hover transitions, parallax or smooth scrolling */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .et_parallax_bg, .et_pb_parallax_css { background-attachment: scroll !important; }
}
