/* Modern CSS Reset */
html {
  scroll-behavior: smooth;
}

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

* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Base Styles */
body {
  background-color: var(--color-beige);
  color: var(--color-charcoal);
  font-family: var(--font-body);
}

h1 {
  font-family: var(--font-body);
  line-height: 1.2;
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 96%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Button Flip Animation */
.btn-flip {
  opacity: 1;
  outline: 0;
  position: relative;
  text-align: center;
  letter-spacing: 0.5px;
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  overflow: hidden;
  border-radius: 4px;
}

.btn-flip:hover::after {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.btn-flip:hover::before {
  opacity: 0;
  transform: translateY(50%) rotateX(90deg);
}

.btn-flip::after {
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  color: var(--color-beige);
  display: block;
  transition: 0.5s;
  position: absolute;
  background: var(--color-orange);
  content: attr(data-back);
  transform: translateY(-50%) rotateX(90deg);
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  line-height: 1.5;
  border-radius: 4px;
}

.btn-flip::before {
  top: 0;
  left: 0;
  opacity: 1;
  color: var(--color-beige);
  display: block;
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  line-height: 1.5;
  transition: 0.5s;
  position: relative;
  background: var(--color-charcoal);
  content: attr(data-front);
  transform: translateY(0) rotateX(0);
  border-radius: 4px;
}



/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background-color: var(--color-beige);
  border-bottom: 1px solid rgba(62, 66, 67, 0.1);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo-container {
  grid-column: 1;
}

.main-navigation {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container .logo-img {
  height: 44px;
  width: auto;
  vertical-align: baseline;
  display: inline-block;
  margin-bottom: -3px;
}



.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
}

.nav-links a:hover {
  color: var(--color-orange);
}

.mobile-menu-toggle,
.hamburger-menu {
  display: none;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger-line:last-child {
  margin-bottom: 0;
}

/* Main Content */
.site-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-section {
  display: flex;
  align-items: top;
  min-height: calc(100vh - 200px);
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  color: var(--color-sage);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

/* Services & About Sections */
.services-section {
  padding: 0;
  scroll-margin-top: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-section {
  padding: 4rem 4rem 8rem 4rem;
  scroll-margin-top: 5rem;
  min-height: 100vh;
  background-color: var(--color-charcoal);
  color: var(--color-beige);
}

.services-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 4rem 4rem 6rem 4rem;
  background-color: var(--color-sage);
}

.services-header .section-title {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.9rem);
  max-width: 1000px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: 1rem;
}

.services-header .section-description {
  margin: 0 0 1rem 0;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-beige);
  align-self: flex-start;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  flex: 1;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-header .section-title {
    max-width: 850px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-header .section-title {
    max-width: 95%;
  }
}

.service-card {
  background-color: var(--color-peach);
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(62, 66, 67, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card:last-child {
  border-right: none;
}

.service-card.highlight {
  background-color: var(--color-blue);
  color: var(--color-charcoal);
  justify-content: flex-start;
  padding: 2.5rem 2rem;
  font-weight: 600;
  font-size: 1.5rem;
  font-family: var(--font-body);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
}



.service-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.service-list {
  list-style: disc;
  display: block;
  padding-left: 1.25rem;
}

.service-list li {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  line-height: 1.4;
}

.about-header {
  margin-bottom: 3rem;
}

.about-title {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-beige);
  letter-spacing: -0.02em;
  text-align: center;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-beige);
  text-align: left;
}

.about-content p {
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: center;
}

.footer-content p {
  font-size: 0.875rem;
  color: var(--color-sage);
  font-family: var(--font-body);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-template-columns: none;
  }
  
  .logo-container {
    position: static;
    transform: none;
    order: 1;
    grid-column: initial;
  }
  
  .logo-container .logo-link span {
    font-size: 2.5rem !important;
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 700 !important;
  }
  
  .logo-container .logo-img {
    height: 36px !important;
    margin-bottom: -2px !important;
  }
  
  .hamburger-menu {
    display: block;
    cursor: pointer;
    z-index: 100;
    order: 2; /* Put hamburger on right */
  }
  


  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 1rem;
    grid-column: initial;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .mobile-menu-toggle:checked ~ .main-navigation {
    display: flex;
  }
  
  .mobile-menu-toggle:checked ~ .hamburger-menu .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-toggle:checked ~ .hamburger-menu .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle:checked ~ .hamburger-menu .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-section {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  
  .about-section {
    padding: 3rem 1.5rem 5rem 1.5rem;
  }

  .about-content {
    padding: 0 1.5rem;
    text-align: left;
  }

  .services-header {
    padding: 2.5rem 1.5rem 3rem 1.5rem;
  }
  
  .services-header .section-title {
    max-width: 90%;
  }
}
/* Contact Section */
.contact-section {
  padding: 4rem 4rem 10rem 4rem;
  scroll-margin-top: 5rem;
  min-height: 100vh;
  background-color: var(--color-beige);
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-title {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.contact-detail {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.contact-detail a {
  color: var(--color-orange);
  text-decoration: underline;
}

.contact-detail a:hover {
  color: var(--color-charcoal);
}

.contact-detail a:focus,
.contact-detail a:focus-visible {
  outline: 2px solid var(--color-charcoal);
  outline-offset: 4px;
}

/* Cosmo Animation - Decorative hero element */
.cosmo-animation {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  width: 800px;
  height: 800px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.cosmo-animation svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cosmo-animation svg * {
  fill: none;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.cosmo-animation circle {
  stroke: var(--color-charcoal);
  stroke-width: 3.0;
}

.cosmo-animation polygon {
  stroke-width: 3.0;
  transform-origin: 50% 50%;
  animation: cosmo-spin 10s linear infinite;
}

.cosmo-animation .polygon {
  animation-duration: calc(10s / var(--i, 1) * 2);
}

/* Brand-adapted polygon colors - new palette */
.cosmo-animation .poly1 {
  stroke: var(--color-sage);
}

.cosmo-animation .poly2 {
  stroke: var(--color-sage);
}

.cosmo-animation .poly3 {
  stroke: var(--color-sage);
}

.cosmo-animation .poly4 {
  stroke: var(--color-sage);
}

.cosmo-animation .poly5 {
  stroke: var(--color-sage);
}

@keyframes cosmo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scale down on smaller screens */
@media (max-width: 1024px) {
  .cosmo-animation {
    width: 600px;
    height: 600px;
    right: 8%;
  }
}

@media (max-width: 768px) {
  .cosmo-animation {
    width: 450px;
    height: 450px;
    right: -8%;
    opacity: 0.3;
  }
}

/* Sweep to top effect for rightmost service tile */
.service-card.highlight.hvr-sweep-to-top {
  position: relative;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  cursor: pointer;
  color: var(--color-charcoal);
  z-index: 1;
  transition: none;
}
.service-card.highlight.hvr-sweep-to-top:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-orange);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.service-card.highlight.hvr-sweep-to-top:hover:before,
.service-card.highlight.hvr-sweep-to-top:focus:before,
.service-card.highlight.hvr-sweep-to-top:active:before {
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

.service-card.highlight.hvr-sweep-to-top:hover,
.service-card.highlight.hvr-sweep-to-top:focus,
.service-card.highlight.hvr-sweep-to-top:active {
  color: var(--color-beige) !important;
}

/* Contact Form */
.contact-form {
  margin-top: 3rem;
  text-align: left;
}

.form-notification {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  display: none;
}

.form-notification.success {
  display: block;
  background-color: var(--color-sage);
  color: var(--color-beige);
  border: 1px solid rgba(138, 154, 142, 0.3);
}

.form-notification.error {
  display: block;
  background-color: var(--color-orange);
  color: var(--color-beige);
  border: 1px solid rgba(219, 91, 0, 0.3);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-charcoal);
  background-color: var(--color-beige);
  border: 2px solid var(--color-charcoal);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(62, 66, 67, 0.6);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--color-orange);
}

.error-message {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange);
  margin-top: 0.25rem;
  min-height: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.error-message:not(:empty) {
  opacity: 1;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-orange);
}

.btn-submit {
  display: block;
  padding: 1.1rem 2.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-beige);
  background-color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  margin: 2rem auto 0 auto;
  max-width: 300px;
}

.btn-submit:hover,
.btn-submit:focus {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-beige);
  outline: none;
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

@media (max-width: 768px) {
  .contact-form {
    margin-top: 2rem;
  }
  
  .btn-submit {
    width: 100%;
    padding: 1.3rem 2.6rem;
  }
}


