/*
Theme Name: Colossus
Theme URI: https://webdevit.co.uk
Author: Generated
Author URI: https://webdevit.co.uk
Description: Colossus is a responsive WordPress theme with customizable header, footer, top-bar widgets, and social integration.
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive, customizer, business, blog
Text Domain: colossus
*/

/* Basic styles */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  box-sizing: border-box;
  max-width: none !important;
  border: none !important;
}

*, *:before, *:after {
  box-sizing: border-box;
}

/* Hero Section */
#hero-section {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #hero-section {
    background-attachment: scroll !important;
    background-position: center center;
  }
}

#site-header.has-hero {
  overflow: visible;
}

#header-chrome.sticky-header-enabled {
  position: sticky;
  top: 0;
  z-index: 1000 !important;
  width: 100%;
}

#header-chrome.sticky-header-enabled #top-bar,
#header-chrome.sticky-header-enabled #main-header {
  width: 100%;
}

body.admin-bar #header-chrome.sticky-header-enabled {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #header-chrome.sticky-header-enabled {
    top: 46px;
  }
}

#hero-text-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  padding: clamp(8rem, 14vw, 10rem) 2rem 2rem;
  pointer-events: none;
}

#hero-text-overlay .hero-text-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  transform: translate(var(--hero-text-offset-x, 0px), var(--hero-text-offset-y, 0px));
}

#hero-text-overlay.hero-text-align-left .hero-text-inner {
  text-align: left;
}

#hero-text-overlay.hero-text-align-center .hero-text-inner {
  text-align: center;
}

#hero-text-overlay.hero-text-align-right .hero-text-inner {
  text-align: right;
}

.hero-description {
  color: var(--hero-text-color, #ffffff);
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.4;
  max-width: 40rem;
  margin: 0;
  display: inline-block;
  padding: 1rem 1.25rem;
  background: var(--hero-text-bg, rgba(0, 0, 0, 0.28));
  border-radius: 0.5rem;
  box-shadow: var(--hero-text-shadow, 0 12px 24px rgba(0, 0, 0, 0.3));
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#hero-text-overlay.hero-text-align-center .hero-description {
  max-width: 48rem;
}

/* Header Styles */
header#site-header { background: transparent; }

#top-bar {
  background: transparent;
  color: #fff;
  padding: 0.75rem 1rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 60px;
  padding-right: 60px;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-info .top-contact-item {
  margin-right: 0;
  display: inline-flex;
  align-items: center;
}

.contact-info .top-contact-item + .top-contact-item {
  border-left: var(--topbar-divider-width, 1px) solid var(--topbar-divider-color, currentColor);
  padding-left: 1.5rem;
}

.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  min-width: 1.2rem;
  margin-right: 0.5rem;
  font-size: 0.95rem;
  line-height: 1;
}

.topbar-icon img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  display: block;
}

.contact-info a,
.social-links a {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  #hero-text-overlay {
    padding: 7rem 1rem 1rem;
  }

  #hero-text-overlay .hero-text-inner {
    transform: translate(0, 0);
  }

  .hero-description {
    max-width: 100%;
    font-size: 1.1rem;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .contact-info {
    border-right: none;
    border-bottom: 1px solid inherit;
    padding-right: 0 !important;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .contact-info span {
    margin-right: 0;
    display: block;
  }

  .contact-info .top-contact-item + .top-contact-item {
    border-left: none;
    padding-left: 0;
  }
  
  .social-links {
    padding-left: 0 !important;
    text-align: center;
    width: 100%;
  }
}

.contact-info a,
.social-links a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover,
.social-links a:hover {
  text-decoration: underline;
}

#main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 60px;
  max-height: var(--header-max-height, 110px);
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 2rem;
  flex-wrap: wrap;
  overflow: visible;
}

#main-header .site-branding,
#main-header .main-navigation {
  max-height: 100%;
}

#main-header .site-branding {
  display: flex;
  align-items: center;
}

#main-header .main-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  padding: 0 1rem;
}

/* Logo left (default): branding left, nav right */
#main-header.logo-left {
  flex-direction: row;
  justify-content: space-between;
}

#main-header.logo-left .site-branding {
  order: 1;
}

#main-header.logo-left .main-navigation {
  order: 2;
  justify-content: center;
}

/* Logo right: nav on left, branding on right */
#main-header.logo-right {
  flex-direction: row;
  justify-content: space-between;
}

#main-header.logo-right .main-navigation {
  order: 1;
  justify-content: center;
}

#main-header.logo-right .site-branding {
  order: 2;
}

/* Logo center: branding centered on top row, nav below centered */
#main-header.logo-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#main-header.logo-center .site-branding {
  order: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-right: 0;
}

#main-header.logo-center .main-navigation {
  order: 2;
  justify-content: center;
}

#main-header.logo-center .main-navigation ul {
  justify-content: center;
}

.site-branding a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.site-branding img {
  max-height: calc(var(--header-max-height, 110px) - 2rem);
  width: auto;
  display: block;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-navigation > div > ul,
.main-navigation > ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

.main-navigation > div > ul > li,
.main-navigation > ul > li {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-navigation li {
  position: relative;
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 999;
  margin: 0;
  padding: 0.5rem 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.main-navigation .sub-menu li {
  display: block;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  display: block;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.1;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.main-navigation a::after {
  bottom: -0.35rem;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-navigation.hover-effect-color a::after,
.main-navigation.hover-effect-background a::after,
.main-navigation.hover-effect-none a::after {
  display: none;
}

.main-navigation.hover-effect-background a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.main-navigation.hover-effect-underline a,
.main-navigation.hover-effect-color a,
.main-navigation.hover-effect-none a {
  transition: color 0.22s ease;
}

.main-navigation .menu-item-has-children > a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main-navigation.show-dropdown-arrows .menu-item-has-children > a {
  padding-left: 0;
  padding-right: 1rem;
}

.main-navigation.show-dropdown-arrows.has-default-dropdown-arrow .menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.main-navigation.show-dropdown-arrows.has-custom-dropdown-arrow .menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  background-image: var(--nav-dropdown-arrow-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.main-navigation.show-dropdown-arrows .menu-item-has-children:hover > a::before,
.main-navigation.show-dropdown-arrows .menu-item-has-children:focus-within > a::before {
  transform: translateY(-35%) rotate(-135deg);
}

.main-navigation.hide-dropdown-arrows .menu-item-has-children > a {
  padding-right: 0;
}

.main-navigation.hide-dropdown-arrows .menu-item-has-children > a::before {
  display: none;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  color: #0073aa;
}

.main-navigation.hover-effect-none a:hover::after,
.main-navigation.hover-effect-none a:focus-visible::after {
  opacity: 0;
  transform: scaleX(0);
}

@media (max-width: 768px) {
  #main-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 1rem 0.5rem;
  }
  
  .site-branding a {
    font-size: 1.25rem;
  }
  
  .main-navigation ul {
    gap: 1rem;
    justify-content: center;
    align-items: center;
    height: auto;
  }

  .main-navigation > div > ul > li,
  .main-navigation > ul > li {
    display: block;
    height: auto;
  }

  #main-header .main-navigation {
    align-items: center;
    align-self: auto;
  }
  
  .main-navigation a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  #main-header {
    padding: 0.75rem 0.5rem;
  }
  
  .site-branding a {
    font-size: 1.1rem;
  }
  
  .main-navigation ul {
    gap: 0.75rem;
    flex-direction: column;
  }
}

/* Page Styles */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}

.page-thumbnail {
  margin: 1rem 0 2rem 0;
  width: 100%;
}

.page-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.page-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.page-content blockquote {
  margin-left: 0;
  padding-left: 1.5rem;
  border-left: 4px solid #0073aa;
  font-style: italic;
  color: #666;
  margin: 1.5rem 0;
}

.page-content a {
  color: #0073aa;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-container {
    padding: 0.75rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-content h2 {
    font-size: 1.5rem;
  }
  
  .page-content h3 {
    font-size: 1.2rem;
  }
  
  .page-content {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0.5rem;
  }
  
  .page-title {
    font-size: 1.6rem;
  }
  
  .page-content h2 {
    font-size: 1.3rem;
  }
  
  .page-content h3 {
    font-size: 1.1rem;
  }
}

.page-links {
  margin-top: 2rem;
  text-align: center;
}

article {
  margin-bottom: 2rem;
}

/* Block Editor Support */
.wp-block-image {
  margin: 1rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-separator {
  margin: 2rem 0;
}

/* Parallax Section Styles */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    opacity: 0.3;
    z-index: 1;
  }

.parallax-section[data-parallax] {
  will-change: transform;
}

.parallax-section-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.parallax-section-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-section-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.parallax-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
  .parallax-section {
    min-height: 300px;
  }
  
  .parallax-section-content {
    padding: 1.5rem;
  }
  
  .parallax-section-content h2 {
    font-size: 1.8rem;
  }
  
  .parallax-section-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .parallax-section {
    min-height: 250px;
  }
  
  .parallax-section-content {
    padding: 1rem;
  }
  
  .parallax-section-content h2 {
    font-size: 1.4rem;
  }
  
  .parallax-section-content p {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-section[data-parallax] {
    transform: none !important;
  }
}

main#site-content { padding: 1rem; }

/* Footer Styles */
footer#site-footer { padding: 2rem 1rem 1rem 1rem; text-align: center; }

.footer-widgets {
  display: grid;
  max-width: 1200px;
  margin: 0 auto 2rem;
  gap: 2rem;
}

.footer-column {
  padding: 1rem;
  padding-right: 2rem;
}

.footer-column:last-child {
  border-right: none;
}

.footer-column h4 {
  margin-top: 0;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.footer-column li {
  margin: 0.5rem 0;
}

.footer-column a {
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-column a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-social-section {
  padding: 1.5rem 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-contact-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-contact-info span {
  display: inline-flex;
  align-items: center;
}

.footer-contact-info span + span {
  border-left: 1px solid currentColor;
  padding-left: 1.5rem;
}

.footer-contact-info a {
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-contact-info a:hover {
  opacity: 0.7;
}

.footer-social {
  margin: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  margin: 0 1rem;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s, text-decoration 0.3s;
  font-size: 0.95rem;
}

.footer-social a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  footer#site-footer {
    padding: 1.5rem 0.75rem 0.75rem;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
    margin: 0 auto 1.5rem;
    gap: 1rem;
  }
  
  .footer-column {
    padding: 1rem 0.5rem;
    padding-right: 0.5rem;
    border-right: none !important;
    border-bottom: 1px solid inherit;
  }
  
  .footer-column:last-child {
    border-bottom: none;
  }
  
  .footer-column h4 {
    font-size: 1rem;
  }
  
  .footer-social a {
    margin: 0 0.5rem;
    font-size: 0.85rem;
  }
  
  .footer-social-section {
    padding: 1rem 0.5rem;
  }
  
  .footer-copyright {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  footer#site-footer {
    padding: 1rem 0.5rem 0.5rem;
  }
  
  .footer-column {
    padding: 0.75rem 0.25rem;
  }
  
  .footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-social a {
    display: block;
    margin: 0.25rem 0;
    font-size: 0.8rem;
  }
  
  .footer-social-section {
    padding: 0.75rem 0.25rem;
  }
  
  .footer-copyright {
    padding: 0.75rem 0.25rem;
    font-size: 0.75rem;
  }
}
