/* Global Styles */
html {
    scroll-behavior: smooth;
}

:root {
    --page-bg: #f4f4f4;
    --page-text: #333333;
    --page-heading: #111111;
    --surface: #FFFA3E;
    --surface-text: #111111;
    --surface-border: #111111;
    --surface-hover-bg: #111111;
    --surface-hover-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[id] {
    scroll-margin-top: 110px;
}

body {
    font-family: "Google Sans Text", "Google Sans", Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text);
    background-color: var(--page-bg);
    display: block;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body.theme-yellow {
    --surface: #FFFA3E;
    --surface-text: #111111;
    --surface-border: #111111;
    --surface-hover-bg: #111111;
    --surface-hover-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body.theme-graphite {
    --surface: #1f1b1a;
    --surface-text: #f5ebdf;
    --surface-border: #f5ebdf;
    --surface-hover-bg: #f5ebdf;
    --surface-hover-text: #1f1b1a;
    --shadow: rgba(31, 27, 26, 0.24);
}

body.theme-slate {
    --surface: #174a7a;
    --surface-text: #f4f8fb;
    --surface-border: #f4f8fb;
    --surface-hover-bg: #f4f8fb;
    --surface-hover-text: #10324f;
    --shadow: rgba(23, 74, 122, 0.2);
}

body.theme-olive {
    --surface: #6a7c4d;
    --surface-text: #f7f6eb;
    --surface-border: #f7f6eb;
    --surface-hover-bg: #f7f6eb;
    --surface-hover-text: #44502f;
    --shadow: rgba(68, 80, 47, 0.24);
}

body.theme-ice {
    --surface: #6fa8c8;
    --surface-text: #f7fbff;
    --surface-border: #f7fbff;
    --surface-hover-bg: #f7fbff;
    --surface-hover-text: #3d627a;
    --shadow: rgba(61, 98, 122, 0.18);
}

body.theme-stone {
    --surface: #8d6aa8;
    --surface-text: #fcf7ff;
    --surface-border: #fcf7ff;
    --surface-hover-bg: #fcf7ff;
    --surface-hover-text: #5f4573;
    --shadow: rgba(95, 69, 115, 0.2);
}

h1 {
    color: var(--page-heading);
    margin-bottom: 20px;
    font-size: 2.5em;
    line-height: 1.2em;
}

h1,
h2,
h3,
.servicetext-title {
    font-family: "Google Sans Text", "Google Sans", Arial, sans-serif;
    font-weight: 700;
}

p {
    color: var(--page-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Container Classes */
.menuwrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0 0;
    background-color: var(--surface);
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.introwrap {
    justify-content: center;
    display: flex;
    max-height: 650px;
    width: 100%;
    background-color: var(--surface);
    transition: background-color 0.35s ease;
}

.menuwrap,
.menuwrap .logo h1,
.menuwrap .menu a,
.menuwrap .menu a:hover,
.menuwrap .menu a.active,
.menuwrap .phone,
.introwrap h1,
.introwrap p,
.service,
.service h1,
.service p,
.projectit {
    color: var(--surface-text);
}

.intro {
    position: relative;
    padding-right: 40px;
    max-width: 640px;
    padding-top: 130px;
}

.counterwrap {
    width: 1200px;
    padding-top: 170px;
}

.morecount {
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
}

.count {
    background: #FFFFFF;
}
.counters {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 30px 0;
    
}

.counter {
    width: 330px;
    text-align: center;
    font-weight: bold; 
    padding-top: 30px;
}

.counter h1 {
    margin: 0;
    line-height: 1;
}

.intro p {
    margin-bottom: 35px;
}

.introimage {
    top: 75px;
    position: relative;
}

.button {
    border: 2px solid var(--surface-border);
    padding: 10px 20px 10px 20px;
    font-weight: bold;
    color: var(--surface-text);
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.button:hover {
    background-color: var(--surface-hover-bg);
    color: var(--surface-hover-text);
    transition: 0.3s ease-in-out;
}

.page {
    display: flex;
    align-items: center;
    width: 1200px;
    border-bottom: 2px solid var(--surface-border);
    padding-bottom: 5px;
}

.service {
    background-color: var(--surface);
    transition: background-color 0.35s ease;
}

.servicewrap {
    padding: 80px 0;
    display: flex;
    max-width: 1200px;
}

.serviceicons {
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
}

.siconwrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.serviceimage {
    width: min(100%, 550px);
    aspect-ratio: 446 / 625;
    overflow: hidden;
    flex-shrink: 0;
}

.serviceimage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-toggle {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.service-toggle:focus-visible {
    outline: 2px solid var(--surface-border);
    outline-offset: 8px;
}

.serviceicon {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--surface-border);
    padding: 14px;
    background: transparent;
    transition: transform 0.2s ease;
}

.service-toggle:hover .serviceicon,
.service-toggle:focus-visible .serviceicon,
.siconwrap.is-open .serviceicon {
    transform: scale(1.05);
}

.serviceicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.servicetext {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.servicetext-title {
    font-size: 1.5em;
    line-height: 1.2;
    color: var(--surface-text);
}

.servicetext-copy {
    color: var(--surface-text);
}

.servicetext-copy {
    margin-bottom: 0;
}

.servicetext-title {
    font-weight: bold;}

.servicepanel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    padding-left: 108px;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}

.servicepanel-inner {
    overflow: hidden;
}

.servicepanel p {
    padding-top: 4px;
    margin-bottom: 15px;
}

.servicepanel p:last-child {
    margin-bottom: 0;
}

.siconwrap.is-open .servicepanel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.projects {
    padding: 40px 0;
    background: #FFFFFF;
}


.left {
    display: flex;
    justify-content: left;
    width: 1200px;
    padding: 40px 0;
    position: relative;
}

.right {
    display: flex;
    justify-content: right;
    width: 1200px;
    padding: 40px 0;
    position: relative;
}

.projectit {
    background-color: var(--surface);
    color: var(--surface-text);
    padding: 20px;
    width: auto;
    display: block;
    position: absolute;
    font-size: 2em;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease, background-color 0.35s ease, color 0.35s ease;
    will-change: transform, opacity;
}

.projectit.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.left .projectit {
    top: 260px;
    right: 260px;
}

.right .projectit {
    top: 260px;
    left: 260px;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contactus {
    width: 1200px;
    background: var(--surface);
    color: var(--surface-text);
    border: none;
    text-align: center;
    padding: 50px 0;
    margin: 40px 0;
}

body:not(.theme-yellow) .contactus {
    border: 2px solid var(--surface-border);
}

.contacttext {
    padding: 0 250px;
}

.contacttext h1 {
    color: var(--surface-text);
}

.contacttext h2 {
    color: var(--surface-text);
}

.contacttext p,
.contactus .button,
.contactform input,
.contactform textarea,
.contactform input::placeholder,
.contactform textarea::placeholder,
.contactform button {
    color: var(--surface-text);
}

.contactform {
    width: min(520px, 90%);
    margin: 30px auto 0;
}

.contactform form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.contactform .name-email-row {
    display: flex;
    gap: 16px;
}

.contactform .name-email-row input {
    flex: 1;
}

.contactform input,
.contactform textarea {
    width: 100%;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--surface-border);
    color: var(--surface-text);
    font: inherit;
}

.contactform textarea {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    resize: none;
}

.contactform input::placeholder,
.contactform textarea::placeholder {
    color: var(--surface-text);
    opacity: 0.8;
}

.contactform input:focus,
.contactform textarea:focus {
    outline: none;
    border-color: var(--surface-border);
}

.contactform button {
    width: fit-content;
    margin: 8px auto 0;
    align-self: center;
    background: transparent;
    border-color: var(--surface-border);
}

/* Logo Section */
.logo {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 2.5em;
    color: var(--heading);
    margin: 0;
}

/* Menu Section */
.menu {
    flex-grow: 5;
    margin-right: 24px;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 50px;
    padding-left: 0;
    padding-top: 5px;
}

.menu li {
    display: inline;
    text-align: center;
}

.menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--menu-link);
    font-size: 1em;
    font-weight: 400;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: transparent;
    transform: scaleX(0.8);
    transform-origin: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    background-color: currentColor;
    transform: scaleX(1);
    
}

.menu a.active {
    color: var(--menu-link);
    font-weight: 700;
}

/* Additional Elements */
.phone {
  min-width: 75px;
  font-weight: bold;
  color: var(--heading);
    border-left: 2px solid var(--surface-border);
  height: 26px;
  padding-left: 10px;
}

.theme-switcher {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    margin-left: 3px;
}

#themeButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--surface-border);
    border-radius: 10px;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.35s ease;
    position: relative;
    z-index: 4;
}

#themeButton:hover,
#themeButton[aria-expanded="true"] {
    background-color: var(--surface-hover-bg);
    border-color: var(--surface-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.theme-icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: spinIcon 6s linear infinite;
}

@keyframes spinIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body.theme-yellow .serviceicon img {
    filter: none;
}

.theme-menu {
position: static;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 4px;
    padding: 0;
  border: 2px solid var(--surface-border);
    border-width: 0;
  border-radius: 10px;
  background-color: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  min-height: 35px;
  height: 40px;
    max-width: 0;
    overflow: hidden;
  opacity: 0;
  visibility: hidden;
    transition: max-width 0.28s ease, opacity 0.2s ease, visibility 0.2s ease, border-width 0.2s ease, padding 0.28s ease, border-color 0.35s ease, background-color 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.theme-menu.show {
                max-width: 300px;
                        padding: 0 20px 0 10px;
  border-width: 2px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
    margin-left: 8px;
  margin-right: -25px;
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    width: 34px;
    height: 34px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.theme-option:hover {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(1.03);
}

.theme-option:focus-visible {
    outline: 1px solid var(--surface-border);
    outline-offset: 1px;
}

.theme-swatch {
width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
  display: inline-block;
  flex-shrink: 0;
  transition: width 0.2s ease, height 0.2s ease;
}

.theme-option:hover .theme-swatch,
.theme-option.active .theme-swatch {
  width: 26px;
  height: 26px;
}

.theme-swatch.yellow {
    background: #FFFA3E;
}

.theme-swatch.graphite {
    background: #1f1b1a;
}

.theme-swatch.slate {
    background: #174a7a;
}

.theme-swatch.olive {
    background: #6a7c4d;
}

.theme-swatch.ice {
    background: #6fa8c8;
}

.theme-swatch.stone {
    background: #8d6aa8;
}

.footer {
    background: #111111;
    color: #ffffff;
    padding: 60px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.05em;
}

.footer p {
    color: #f2f2f2;
    margin-bottom: 6px;
}
