/*!
 * MK Stucco LLC - Main Stylesheet
 * Built by Kadena Web Solutions
 * Using BEM methodology and CSS variables
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-primary: #0049ab;
  --color-primary-hover: #fa7272;
  --color-text: #767676;
  --color-text-dark: #000;
  --color-white: #fff;
  --color-bg: rgba(232, 232, 232, 0.6);
  --color-bg-nav: #f1f1f1;
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-overlay-light: rgba(0, 0, 0, 0.3);
  --color-overlay-medium: rgba(0, 0, 0, 0.2);
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-focus: rgba(0, 0, 0, 0.8);
  
  /* Typography */
  --font-primary: "Open Sans", arial, sans-serif;
  --font-heading: "Playfair Display", serif;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 24px;
  --font-size-h1: 40px;
  --font-size-h2: 40px;
  --font-size-h3: 24px;
  --font-size-h4: 24px;
  --line-height-base: 1.7;
  --line-height-heading: 1.3;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  --spacing-xxxl: 6rem;
  
  /* Layout */
  --border-width: 20px;
  --border-radius: 4px;
  --border-radius-lg: 100px;
  --container-width: 1300px;
  
  /* Transitions */
  --transition-fast: 0.2s;
  --transition-base: 0.3s;
  --transition-slow: 0.5s;
  --transition-slower: 2s;
  
  /* Z-index */
  --z-loader: 9999;
  --z-nav: 99999;
  --z-offcanvas: 1901;
  --z-nav-toggle: 2001;
  --z-dropdown: 1002;
  --z-overlay: 101;
  --z-gototop: 999;
}

/* ===== FONT FACES ===== */
@font-face {
  font-family: "icomoon";
  src: url("../fonts/icomoon-icomoon.eot");
  src: url("../fonts/icomoon-icomoon.eot#iefix") format("embedded-opentype"),
    url("../fonts/icomoon-icomoon.ttf") format("truetype"),
    url("../fonts/icomoon-icomoon.woff") format("woff"),
    url("../fonts/icomoon-icomoon.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  border-left: var(--border-width) solid var(--color-white);
  border-right: var(--border-width) solid var(--color-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  background: var(--color-white);
  left: 0;
  right: 0;
  height: var(--border-width);
  z-index: var(--z-overlay);
}

body::before {
  top: 0;
}

body::after {
  bottom: 0;
}

@media screen and (max-width: 768px) {
  body::before,
  body::after {
    display: none;
  }
  
  body {
    border-left: none;
    border-right: none;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, figure {
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 var(--spacing-lg) 0;
}

p {
  margin-bottom: var(--spacing-lg);
}

a {
  color: var(--color-primary);
  transition: var(--transition-slow);
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--color-primary);
  outline: none;
  text-decoration: none;
}

/* ===== SELECTION ===== */
::selection {
  color: var(--color-white);
  background: var(--color-primary);
}

::-webkit-selection {
  color: var(--color-white);
  background: var(--color-primary);
}

::-moz-selection {
  color: var(--color-white);
  background: var(--color-primary);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 var(--spacing-sm);
  }
}

/* ===== HEADER ===== */
.header {
  padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
  background-color: var(--color-bg-nav);
  border-left: var(--border-width) solid transparent;
  border-right: var(--border-width) solid transparent;
  transition: padding var(--transition-base) ease-in;
}

.header--scrolled {
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: var(--z-nav);
  border-left: var(--border-width) solid var(--color-white);
  border-right: var(--border-width) solid var(--color-white);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 120px;
}

.header__contact-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

.header__contact-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: #545454;
  font-size: var(--font-size-xl);
}

.header__contact-link i {
  color: var(--color-primary);
}

/* Navigation Styles */
.header__nav {
  display: flex;
  align-items: center;
}

.header__nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  position: relative;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-base);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.header__mobile-toggle-line {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition-base);
  transform-origin: 1px;
}

.header__mobile-toggle[aria-expanded="true"] .header__mobile-toggle-line:first-child {
  transform: rotate(45deg);
}

.header__mobile-toggle[aria-expanded="true"] .header__mobile-toggle-line:nth-child(2) {
  opacity: 0;
}

.header__mobile-toggle[aria-expanded="true"] .header__mobile-toggle-line:last-child {
  transform: rotate(-45deg);
}

/* Mobile Menu */
.header__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.header__mobile-menu--active {
  display: block;
}

.header__mobile-menu-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.header__mobile-nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-lg);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.header__mobile-nav-link:hover {
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .header {
    padding: var(--spacing-lg) 0;
  }
  
  .header__logo img {
    height: 110px;
  }
  
  .header__contact {
    display: none;
  }
  
  .header__nav-menu {
    display: none;
  }
  
  .header__mobile-toggle {
    display: flex;
  }
}

@media screen and (max-width: 575px) {
  .header__logo img {
    height: 96px;
  }
  
  .header {
    padding: var(--spacing-sm) 0;
  }
}

/* ===== HERO INTRO ===== */
.hero-intro {
  padding: var(--spacing-xxxl) 0 var(--spacing-xxl) 0;
  text-align: center;
}

.hero-intro__content {
  margin: 0 auto;
  max-width: 800px;
}

.hero-intro__title {
  font-size: var(--font-size-h2);
  line-height: 44px;
  margin-bottom: var(--spacing-lg);
}

.hero-intro__subtitle {
  font-family: var(--font-primary) !important;
  font-size: var(--font-size-lg);
}

.hero-intro__subtitle em {
  color: rgba(0, 0, 0, 0.3);
  margin-right: 5px;
}

/* ===== HERO SLIDER ===== */
.hero {
  min-height: 800px;
  background: var(--color-white) url(../img/images-loader.gif) no-repeat center center;
  width: 100%;
  float: left;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.hero__slider {
  border: none;
  z-index: 1;
  margin-bottom: 0;
  position: relative;
}

.hero__slides {
  position: relative;
  overflow: hidden;
}

.hero__slide {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  min-height: 800px;
  position: relative;
  display: none;
}

.hero__slide:first-child {
  display: block;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: var(--transition-slow);
}

.hero__content {
  position: relative;
  z-index: 9;
  min-height: 800px;
  display: flex;
  align-items: flex-end;
}

.hero__text {
  opacity: 0;
  min-height: 800px;
  z-index: 9;
  position: relative;
}

.hero__text-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 2em 3em 0;
}

.hero__title,
.hero__subtitle {
  margin: 0;
  padding: 0;
  color: black;
}

.hero__title {
  margin-bottom: 10px;
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading);
  font-weight: 300;
  color: var(--color-white);
  display: inline;
  background-color: var(--color-primary);
  box-shadow: 0.2em 0 0 var(--color-primary), -0.2em 0 0 var(--color-primary);
  padding: 0.1em 0em;
  box-decoration-break: clone;
}

.hero__title a {
  color: var(--color-white);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  line-height: 1.5;
  margin-bottom: 10px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-primary);
}

.hero__subtitle a {
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--color-white);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-base);
}

.hero__nav:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero__nav--prev {
  left: 30px;
}

.hero__nav--next {
  right: 30px;
}

@media screen and (max-width: 768px) {
  .hero {
    min-height: 500px;
  }
  
  .hero__slide {
    min-height: 500px;
  }
  
  .hero__text {
    min-height: 500px;
  }
  
  .hero__text-inner {
    text-align: left;
    margin-left: 10px;
  }
  
  .hero__title {
    font-size: var(--font-size-xxl);
  }
  
  .hero__nav {
    display: none;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--spacing-xxxl) 0 var(--spacing-xxl) 0;
  text-align: center;
}

.about__content {
  margin: 0 auto;
  max-width: 800px;
}

.about__title {
  font-size: var(--font-size-h2);
  line-height: 44px;
  margin-bottom: var(--spacing-lg);
}

.about__description {
  text-align: left;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-base);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: var(--spacing-xxxl) 0;
  clear: both;
  text-align: center;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.portfolio__item {
  width: 100%;
  float: left;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-lg);
}

.portfolio__link {
  display: block;
  position: relative;
}

.portfolio__image {
  position: relative;
  max-width: 100%;
  transform: scale(1);
  transition: var(--transition-base);
  width: 100%;
  height: auto;
}

.portfolio__overlay {
  z-index: 9;
  position: absolute;
  bottom: var(--spacing-lg);
  left: 0;
  right: 0;
  padding: 30px;
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform: translate3d(0, 20px, 0);
}

.portfolio__title {
  color: var(--color-white);
  margin-bottom: 10px;
  font-weight: 400;
  font-size: var(--font-size-h3);
}

.portfolio__location {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-base);
}

.portfolio__item::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  opacity: 0;
  background: var(--color-overlay-medium);
  z-index: 0;
  transition: var(--transition-base);
}

.portfolio__item:hover::after {
  opacity: 1;
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.portfolio__item:hover .portfolio__image {
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .portfolio {
    padding: var(--spacing-xl) 1em;
  }
  
  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .portfolio__overlay {
    opacity: 1;
  }
}

/* ===== CERTIFICATE SECTION ===== */
.certificate {
  padding: var(--spacing-xxxl) 0;
  clear: both;
  text-align: center;
}

.certificate__title {
  font-size: var(--font-size-h2);
  line-height: 44px;
  margin-bottom: var(--spacing-lg);
}

.certificate-gallery {
  padding: 0 0 var(--spacing-xxxl) 0;
}

.certificate-gallery__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.certificate-gallery__item {
  max-width: 500px;
}

.certificate-gallery__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .certificate-gallery__content {
    flex-direction: column;
  }
}

/* ===== BRANDS SECTION ===== */
.brands {
  padding: var(--spacing-xxxl) 0;
  clear: both;
  text-align: center;
  background-color: var(--color-white);
}

.brands__title {
  font-size: var(--font-size-h2);
  line-height: 44px;
  margin-bottom: var(--spacing-lg);
}

.brands-gallery {
  padding: 0 0 var(--spacing-xxxl) 0;
  background-color: var(--color-white);
}

.brands-gallery__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.brands-gallery__item {
  width: 200px;
  padding: 0 10px;
}

.brands-gallery__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media screen and (max-width: 991.98px) {
  .brands-gallery__item {
    width: 150px;
  }
}

@media screen and (max-width: 575.98px) {
  .brands-gallery__item {
    width: 120px;
  }
}

/* ===== QUOTE SECTION ===== */
.quote {
  padding: var(--spacing-xxxl) 0;
  text-align: center;
}

.quote__title {
  font-size: var(--font-size-h2);
  line-height: 44px;
  margin-bottom: var(--spacing-lg);
}

.quote__subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.quote__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xxl);
  color: var(--color-primary);
  text-decoration: none;
}

.quote__phone i {
  font-size: var(--font-size-xxl);
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.contact__title {
  font-size: var(--font-size-h2);
  line-height: 44px;
  margin-bottom: var(--spacing-lg);
}

.contact-form {
  padding: var(--spacing-xl) 0 var(--spacing-xxxl) 0;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xxl);
}

.contact-form__info-title {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-dark);
}

.contact-form__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-form__info-item {
  margin: 0 0 var(--spacing-lg) 0;
  position: relative;
  padding-left: 40px;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
}

.contact-form__info-item i {
  position: absolute;
  top: 0.3em;
  left: 0;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
}

.contact-form__info-item a {
  color: var(--color-text-dark);
}

.contact-form__form {
  background: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl);
}

.contact-form__field {
  margin-bottom: 30px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--font-size-lg);
  font-family: var(--font-primary);
  transition: var(--transition-base);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form__submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-lg);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-form__submit:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.contact-form__message {
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  display: none;
}

.contact-form__message.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form__message.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media screen and (max-width: 768px) {
  .contact-form {
    padding: var(--spacing-xl) 1em;
  }
  
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .contact-form__info {
    text-align: center;
  }
  
  .contact-form__info-item {
    margin: 0 0 var(--spacing-lg) 0;
    padding-left: 0;
    justify-content: center;
  }
  
  .contact-form__info-item i {
    position: relative;
    top: 0.3em;
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    left: -5px;
  }
}

/* ===== FOOTER ===== */
.footer {
  margin-top: var(--spacing-lg) !important;
  padding: var(--spacing-xxxl) 0;
  clear: both;
  text-align: center;
  background-color: var(--color-white);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.footer__title {
  margin-bottom: 30px;
  font-size: var(--font-size-h3);
  color: var(--color-text-dark);
}

.footer__description {
  color: var(--color-text);
  line-height: var(--line-height-base);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link-item {
  padding: 0;
  margin: 0 0 10px 0;
  display: block;
}

.footer__link-item a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.footer__link-item a:hover {
  text-decoration: underline;
}

.footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer__social-item {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.footer__social-link {
  display: inline-block;
  color: var(--color-primary);
  padding: 10px;
  transition: var(--transition-base);
}

.footer__social-link i {
  font-size: 30px;
}

.footer__social-link:hover {
  transform: translateY(-2px);
}

.footer__copyright {
  display: block;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.footer__copyright-text {
  margin: 0;
}

.footer__copyright-company {
  display: block;
  font-weight: 600;
  color: var(--color-text-dark);
}

.footer__copyright-credit {
  display: block;
  color: var(--color-text);
  margin-top: var(--spacing-xs);
}

.footer__copyright-credit a {
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .footer {
    padding: var(--spacing-xl) 1em;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer__links {
    margin-bottom: 30px;
  }
}

/* ===== GO TO TOP ===== */
.gototop {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: var(--z-gototop);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.gototop--active {
  opacity: 1;
  visibility: visible;
}

.gototop__link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition-base);
}

.gototop__link:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.gototop__link i {
  font-size: 20px;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: var(--z-loader);
  background: url(../img/images-loader.gif) center no-repeat var(--color-white);
}

/* ===== ANIMATIONS ===== */
.animate-box {
  opacity: 0;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated-fast {
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

.animated.hinge {
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
}

/* ===== ICON FONTS ===== */
[class^="icon-"],
[class*=" icon-"] {
  font-family: "icomoon" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

/* ===== CONTACT FORM ENHANCEMENTS ===== */
.contact-form__error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.contact-form__loading {
  text-align: center;
  padding: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}

.contact-form__loading span {
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Turnstile styling */
.cf-turnstile {
  margin-bottom: 1rem;
}

/* Enhanced form field styling */
.contact-form__input:invalid,
.contact-form__textarea:invalid {
  border-color: #dc3545;
}

.contact-form__input:valid,
.contact-form__textarea:valid {
  border-color: #28a745;
}

/* Loading state for submit button */
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success/Error message enhancements */
.contact-form__message.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.contact-form__message.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media screen and (max-width: 768px) {
  .hero__nav {
    display: none;
  }
  
  .header__logo img {
    height: 80px;
  }
  
  .hero__text-inner {
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  
  .about__content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about__text {
    text-align: center;
  }
  
  .about__title {
    font-size: 1.75rem;
  }
  
  .about__description {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .certificate-gallery__content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form__title {
    font-size: 1.5rem;
  }
  
  .contact-form__field input,
  .contact-form__field textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer__links {
    margin-bottom: 30px;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .about__title {
    font-size: 1.5rem;
  }
  
  .about__description {
    font-size: 0.85rem;
  }
  
  .contact-form__title {
    font-size: 1.25rem;
  }
  
  .contact-form__field input,
  .contact-form__field textarea {
    padding: 0.625rem;
    font-size: 0.85rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.lightbox__container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-white);
}

.lightbox__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--color-white);
}

.lightbox__location {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.8);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 20px;
  z-index: 10001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: var(--font-size-lg);
  font-weight: 500;
}

.lightbox__current {
  color: var(--color-primary);
}

/* Mobile lightbox adjustments */
@media screen and (max-width: 768px) {
  .lightbox__overlay {
    padding: var(--spacing-sm);
  }
  
  .lightbox__image {
    max-height: 70vh;
  }
  
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .lightbox__close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox__prev {
    left: 10px;
  }
  
  .lightbox__next {
    right: 10px;
  }
  
  .lightbox__caption {
    bottom: -50px;
  }
  
  .lightbox__title {
    font-size: var(--font-size-lg);
  }
  
  .lightbox__counter {
    bottom: -80px;
    font-size: var(--font-size-base);
  }
}

/* Icon font additions for lightbox */
.icon-close::before {
  content: "×";
  font-size: 24px;
  font-weight: bold;
}

.icon-arrow-left::before {
  content: "‹";
  font-size: 24px;
  font-weight: bold;
}

.icon-arrow-right::before {
  content: "›";
  font-size: 24px;
  font-weight: bold;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .hero__nav,
  .gototop,
  .contact-form__form,
  .lightbox {
    display: none;
  }
  
  body {
    border: none;
  }
  
  .hero {
    min-height: auto;
  }
}