/* Reset and Base Styles */ * { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: var(--font-body); color: var(--color-text); background-color: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :root { --color-primary: #0056b3; --color-accent: #ff6f00; --color-text: #333; --color-bg: #f8f8f8; --color-surface: #ffffff; --font-heading: 'Roboto', 'Helvetica Neue', Arial, sans-serif; --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; --hero-min-height: 100vh; --hero-overlay-alpha: 0.45; --hero-focus: center; --animation-reveal-duration: 600ms; --animation-card-lift: -4px; --animation-image-scale: 1.05; } .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } /* Typography */ h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 0.8em; line-height: 1.2; } h1 { font-size: clamp(2.5rem, 6vw, 4rem); } h2 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 1.5em; } h3 { font-size: clamp(1.5rem, 4vw, 2rem); } p { margin-bottom: 1em; } a { color: var(--color-accent); text-decoration: none; } a:hover { text-decoration: underline; } .button, a.cta { display: inline-block; background-color: var(--color-accent); color: #fff; padding: 0.8rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 1rem; border: none; cursor: pointer; text-align: center; } .button:hover, a.cta:hover { filter: brightness(1.1); } /* Header */ .site-header { background-color: var(--color-surface); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 1000; } .site-header .container { display: flex; justify-content: space-between; align-items: center; } .logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: bold; color: var(--color-primary); } .main-nav ul { list-style: none; display: flex; gap: 1.5rem; } .main-nav a { color: var(--color-text); font-weight: 500; padding: 0.5rem 0; position: relative; } .main-nav a:hover { color: var(--color-primary); text-decoration: none; } .main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--color-primary); transition: width 0.3s ease; } .main-nav a:hover::after { width: 100%; } .menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; } .hamburger { display: block; width: 25px; height: 3px; background-color: var(--color-primary); position: relative; transition: background-color 0.3s ease; } .hamburger::before, .hamburger::after { content: ''; display: block; width: 25px; height: 3px; background-color: var(--color-primary); position: absolute; transition: transform 0.3s ease; } .hamburger::before { top: -8px; } .hamburger::after { top: 8px; } .menu-toggle.is-active .hamburger { background-color: transparent; } .menu-toggle.is-active .hamburger::before { transform: translateY(8px) rotate(45deg); } .menu-toggle.is-active .hamburger::after { transform: translateY(-8px) rotate(-45deg); } /* Hero Section */ .hero { min-height: var(--hero-min-height); display: grid; place-items: center; position: relative; overflow: hidden; } .hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, center); z-index: 0; } .hero__overlay { position: relative; z-index: 1; max-width: 720px; padding: clamp(1rem, 4vw, 2.5rem); background: rgba(0, 0, 0, var(--hero-overlay-alpha, 0.45)); color: #fff; border-radius: 12px; text-align: center; } .hero__overlay h1 { color: #fff; margin-bottom: 0.5em; } .hero__overlay p { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 1.5em; } /* Sections */ section { padding: 4rem 0; } .section-title { margin-bottom: 2.5rem; } /* About Section */ #about { background-color: var(--color-surface); } #about p:last-of-type { margin-bottom: 0; } /* Services Grid */ .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; } .service-item { background-color: var(--color-surface); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 1.5rem; } .service-item img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 1rem; } .service-item h3 { margin-top: 0.5rem; margin-bottom: 0.5rem; color: var(--color-primary); } .service-item p { padding: 0 1.5rem; font-size: 0.95rem; color: var(--color-text); margin-bottom: 0; } /* Testimonials */ .testimonials__grid { column-count: 1; column-gap: 1.5rem; } .testimonial { break-inside: avoid; background: var(--color-surface); padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); } .testimonial:nth-child(odd) { transform: rotate(-1deg); } .testimonial:nth-child(even) { transform: rotate(1deg); } .testimonial cite { display: block; margin-top: 0.6rem; font-style: italic; color: var(--color-primary); font-size: 0.9rem; } /* Contact Section */ .contact-info { text-align: center; margin-bottom: 2rem; font-size: 1.1rem; } .contact-info p { margin-bottom: 0.5rem; } .map-container { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); } /* Footer */ .site-footer { background-color: var(--color-primary); color: #fff; text-align: center; padding: 2rem 0; font-size: 0.9rem; } .site-footer p { margin-bottom: 0; } /* Animations */ @media (prefers-reduced-motion: no-preference) { @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .reveal { opacity: 0; will-change: transform, opacity; } .reveal.is-visible { animation: fadeInUp var(--animation-reveal-duration, 600ms) ease-out forwards; } } @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; animation: none; } } /* Hover Effects */ @media (hover: hover) and (prefers-reduced-motion: no-preference) { .card, .testimonial { transition: transform 200ms, box-shadow 200ms; } .card:hover { transform: translateY(var(--animation-card-lift, -4px)); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); } .gallery img, [class*="gallery"] img, .service-item img { transition: transform 300ms; } .gallery img:hover, [class*="gallery"] img:hover, .service-item img:hover { transform: scale(var(--animation-image-scale, 1.05)); } .button, a.cta { transition: filter 150ms; } .button:hover, a.cta:hover { filter: brightness(1.1); } .testimonial:hover { transform: rotate(0deg) scale(1.02); transition: transform 200ms; } } /* Responsive */ @media (max-width: 767px) { .main-nav { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background-color: var(--color-surface); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); padding: 1rem 0; } .main-nav.is-open { display: flex; } .main-nav ul { flex-direction: column; align-items: center; } .main-nav li { width: 100%; text-align: center; } .main-nav a { display: block; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .main-nav a:hover { background-color: var(--color-bg); } .menu-toggle { display: block; } } @media (min-width: 640px) { .testimonials__grid { column-count: 2; } } @media (min-width: 768px) { .site-header .container { padding: 0 2rem; } .services-grid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1024px) { .testimonials__grid { column-count: 3; } }