/** Theme Name: SRH Text Domain: srh Description: Self Regional Healthcare Requires at least: 6.7 Tested up to: 6.8 Requires PHP: 7.2 Version: 1.0 Author: windhamdavid Author URI: https://davidwindham.com */ .logo-letter { font-size: 115%; } main { margin-top: 180px !important; } a { text-decoration-thickness: 1px !important; text-underline-offset: .1em; } /* Focus styles */ :where(.wp-site-blocks *:focus) { outline-width: 2px; outline-style: solid; } /* Increase the bottom margin on submenus, so that the outline is visible. */ .wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) { margin-bottom: 3px; } /* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */ .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content { outline-offset: 4px; } /* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */ .wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content { outline-offset: 0; } /* * Progressive enhancement to reduce widows and orphans * https://github.com/WordPress/gutenberg/issues/55190 */ h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p { text-wrap: pretty; } /* * Change the position of the more block on the front, by making it a block level element. * https://github.com/WordPress/gutenberg/issues/65934 */ .more-link { display: block; } /* Auto-hide Navigation Styles */ header, .srh-auto-hide-header, .wp-site-header, .wp-block-template-part[data-area="header"] { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 9999; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease; transform: translateY(0); opacity: 1; } /* Hidden state when scrolling down */ header.header-hidden, .srh-auto-hide-header.header-hidden, .wp-site-header.header-hidden, .wp-block-template-part[data-area="header"].header-hidden { transform: translateY(-100%); opacity: 0; } /* Visible state when scrolling up */ header.header-visible, .srh-auto-hide-header.header-visible, .wp-site-header.header-visible, .wp-block-template-part[data-area="header"].header-visible { transform: translateY(0); opacity: 1; } /* Enhanced background when scrolled */ header.header-scrolled, .srh-auto-hide-header.header-scrolled, .wp-site-header.header-scrolled, .wp-block-template-part[data-area="header"].header-scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); } /* Ensure content doesn't jump when header becomes fixed */ body { padding-top: 0; transition: padding-top 0.3s ease; } body.header-offset { padding-top: var(--header-height, 80px); } /* Navigation links hover effects */ header a, .srh-auto-hide-header a, .wp-site-header a, .wp-block-template-part[data-area="header"] a { transition: color 0.2s ease, transform 0.2s ease; } header a:hover, .srh-auto-hide-header a:hover, .wp-site-header a:hover, .wp-block-template-part[data-area="header"] a:hover { transform: translateY(-1px); } /* Mobile menu adjustments */ @media (max-width: 768px) { header, .srh-auto-hide-header, .wp-site-header, .wp-block-template-part[data-area="header"] { background: rgba(255, 255, 255, 0.98); } body.header-offset { padding-top: var(--header-height, 60px); } } /* Smooth scroll behavior for the whole page */ html { scroll-behavior: smooth; } /* Optional: Add a subtle animation when page loads */ header, .srh-auto-hide-header, .wp-site-header, .wp-block-template-part[data-area="header"] { animation: slideDown 0.5s ease-out; } @keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }