/* =====================================================
   CARBONARA CLIMATE — styles.css
   ===================================================== */

/* Performance: improve font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Variables --- */
:root {
  --color-bg: #faf9f7;
  --color-text: #1a1a18;
  --color-text-muted: #6b6b62;
  --color-accent: #2d4a35;       /* deep forest green */
  --color-accent-light: #e8efe9;
  --color-border: #ddd9d1;
  --color-white: #ffffff;
  --font-display: 'Raleway', sans-serif;
  --font-heading: 'Work Sans', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --header-height: 110px;
  --max-width: 1100px;
  --narrow-width: 660px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--narrow-width);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex-shrink: 0;
  margin-right: auto;
}

.logo img {
  height: 92px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.linkedin-link {
  display: flex;
  align-items: center;
  color: #0a66c2;
  transition: color 0.2s ease;
}

.linkedin-link:hover {
  color: #004182;
}

.linkedin-link svg {
  width: 26px;
  height: 26px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
}

.mobile-nav .nav-link {
  display: inline-block;
}

.mobile-nav.open {
  display: flex;
}

/* =====================================================
   HERO (index.html only)
   ===================================================== */
.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 22, 0.42);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* =====================================================
   ABOUT SECTION (index.html)
   ===================================================== */
.about {
  flex: 1;
  padding: 5rem 0 6rem;
}

.about .container {
  max-width: 760px;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.services-list {
  margin-top: 0.5rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.services-list li {
  font-size: 1rem;
  color: var(--color-text);
  padding-left: 1.4rem;
  position: relative;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.form-success {
  display: none;
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin-top: 1rem;
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.6;
}
/* Honeypot field — visually hidden from real users, bots will fill it */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-section {
  flex: 1;
  padding: 5rem 0 6rem;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0ada5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 74, 53, 0.08);
}

.submit-btn {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: #9699a8;
  border: none;
  border-radius: 2px;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.submit-btn:hover {
  background-color: #7c7f8e;
  transform: translateY(-1px);
}

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

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background-color: #5dbdca;
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 2rem;
  text-align: left;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.footer-brand-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-linkedin {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
}

.footer-linkedin:hover {
  color: #ffffff;
}

.footer-linkedin svg {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.15rem;
}

.form-error {
  background-color: #fdecea;
  border: 1px solid #e57373;
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin-top: 1rem;
  color: #c0392b;
  font-size: 1rem;
  line-height: 1.6;
}


/* =====================================================
   ANIMATIONS — fade-up slide-in on page load
   ===================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero content — title and subtitle staggered */
.hero-title {
  animation: fadeUp 0.75s ease both;
  animation-delay: 0.15s;
}

.hero-subtitle {
  animation: fadeUp 0.75s ease both;
  animation-delay: 0.35s;
}

/* About section — heading, paragraphs, and list staggered */
.section-heading {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.about-text:nth-of-type(1) {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.about-text:nth-of-type(2) {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

.about-text:nth-of-type(3) {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

.services-list {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.5s;
}

/* Contact page — title, intro, and form fields staggered */
.page-title {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.contact-intro {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.contact-form .form-group:nth-child(2) {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

.contact-form .form-group:nth-child(3) {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

.contact-form .form-group:nth-child(4) {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.5s;
}

.contact-form .submit-btn {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.6s;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-subtitle,
  .section-heading,
  .about-text,
  .services-list,
  .page-title,
  .contact-intro,
  .contact-form .form-group,
  .contact-form .submit-btn {
    animation: none;
  }
}
@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  /* Hide LinkedIn icon from desktop header on mobile — it appears in hamburger menu instead */
  .header-right .linkedin-link {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: 400px;
    background-attachment: scroll;
    background-position: center top;
  }

  .about {
    padding: 3.5rem 0 4rem;
  }

  .contact-section {
    padding: 3.5rem 0 4rem;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}
