:root {
  /* Even warmer orange — matches the deep peach sky in the image */
  /* Pastel palette sampled from the image — soft cream, warm sand,
     transitioning to gentle sky tones */
  --bg-left:    #e8dcc4;
  --bg-mid:     #e2d4b8;
  --bg-right:   #d8c9a8;
  --text-dark:  #1a2332;
  --text-muted: #2c3a4d;
  --accent:     #2a4a6b;
  --accent-bright: #3d6890;
  --line: rgba(26, 35, 50, 0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text-dark);
  background: linear-gradient(
    to right,
    var(--bg-left)  0%,
    var(--bg-left)  25%,
    var(--bg-mid)   55%,
    var(--bg-right) 80%,
    var(--bg-right) 100%
  );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Background image — image physically dissolves into bg via mask ===== */
/* ===== Background image with progressive blur on the left =====
   On wide screens uses `cover` for a full immersive look.
   On narrower screens switches to `contain` so the whole scene
   stays visible without aggressive cropping. */
.bg-image {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url('background.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* When the viewport gets narrower than the image's natural aspect
   ratio (~3:2 = 1.5), `cover` starts cropping the sides aggressively.
   Switch to `contain` and anchor to the right-bottom so the figure
   and dog stay framed. The body bg fills the empty space above. */
@media (max-aspect-ratio: 3/2) {
  .bg-image {
    background-size: contain;
    background-position: right bottom;
  }
}

/* Blur overlay — sits on the left side, uses backdrop-filter to blur
   the image beneath it. Strongest on the far left, gradually thinning
   toward the figure. */
.bg-blur {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(28px) saturate(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.05);
  /* Mask the blur so it's strongest on the left and fades out near the figure */
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 60%,
    rgba(0,0,0,0.8) 75%,
    rgba(0,0,0,0.4) 90%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 60%,
    rgba(0,0,0,0.8) 75%,
    rgba(0,0,0,0.4) 90%,
    transparent 100%
  );
  /* Soft pastel tint — sampled from the image's warm sand/cream tones,
     blends naturally with the sky and terrace colors */
  background: linear-gradient(
    to right,
    rgba(238, 220, 192, 0.18) 0%,
    rgba(238, 220, 192, 0.10) 50%,
    rgba(238, 220, 192, 0) 100%
  );
}

.bg-fade { display: none; }

/* ===== Navigation ===== */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 32px 56px;
}

.nav-left {
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.nav-links {
  display: inline-flex;
  align-items: baseline;
  gap: 40px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 4px 2px;
  line-height: 1;
  transition: color 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ===== Logo (raf.now) — plain text, aligned with nav links ===== */
.logo-btn {
  display: inline-block;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 4px 2px;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.logo-btn:hover {
  opacity: 0.7;
}

.logo-dot {
  /* Sea blue — matches the ocean and the coffee mug in the image */
  color: #2d8a9e;
  font-weight: 800;
  margin: 0 1px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 60px 56px 56px 80px;
  min-height: calc(100vh - 180px);
}

.hero-text {
  max-width: 500px;
  animation: fadeInLeft 0.8s ease-out;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 40px;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  margin-bottom: 40px;
  opacity: 0.85;
}

/* ===== Social icons — no circle, just icon brightens on hover ===== */
.socials {
  display: flex;
  gap: 24px;
  align-items: center;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
  opacity: 1;
}

.social svg {
  width: 24px;
  height: 24px;
  display: block;
}

.social:hover {
  color: #2d8a9e;
  opacity: 0.85;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 10;
  padding: 0 56px 28px 80px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal {
  background: linear-gradient(160deg, #fff5e0 0%, #f9e4b8 100%);
  border-radius: 20px;
  padding: 40px 44px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  display: none;
  box-shadow: 0 20px 60px rgba(26, 35, 50, 0.3);
  animation: scaleIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  display: block;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 300;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(26, 35, 50, 0.08);
}

.modal h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.modal-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.modal-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.modal-list li span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.modal-list li span:last-child {
  color: var(--text-dark);
  font-weight: 600;
}

.modal-mailbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff5e0;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 16px;
  transition: background 0.25s ease;
}

.modal-mailbtn:hover {
  background: var(--accent-bright);
}

.modal-mailbtn svg {
  width: 18px;
  height: 18px;
}

.modal-small {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .bg-blur { width: 58%; }
}

@media (max-width: 1024px) {
  .nav { padding: 24px 32px; }
  .nav-links { gap: 28px; }
  .hero { padding: 60px 32px 32px 40px; }
  .footer { padding: 0 32px 24px 40px; }
  .bg-blur { width: 62%; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { gap: 20px; }
  .nav-link { font-size: 14px; }
  .logo-btn { font-size: 15px; }

  html, body {
    background: linear-gradient(
      to bottom,
      var(--bg-right) 0%,
      var(--bg-left) 55%,
      var(--bg-left) 100%
    );
  }

  .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    /* Auto-height based on image's natural aspect ratio (3:2),
       so we show the whole scene without cropping */
    height: 0;
    padding-bottom: 66.67%;
    background-size: cover;
    background-position: center center;

    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 70%,
      rgba(0,0,0,0.5) 88%,
      transparent 100%
    );
            mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 70%,
      rgba(0,0,0,0.5) 88%,
      transparent 100%
    );
  }

  .bg-blur { display: none; }

  .hero {
    padding: calc(100vw * 0.55 + 40px) 24px 32px;
    min-height: auto;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; }

  .divider { margin-left: auto; margin-right: auto; }

  .socials { justify-content: center; }

  .footer { padding: 16px 24px 24px; text-align: center; }

  .modal { padding: 32px 24px; }
  .modal h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 14px; }
  .nav-link { font-size: 13px; }
  .hero-title { font-size: 32px; }
}
