/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fbf1e2;
  --bg-alt: #f5e8d3;
  --fg: #1c1c1c;
  --muted: #6b7280;
  --accent: #c07a3e;
  --card-bg: #ffffff;
  --border: #e8dcc4;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.body-text {
  color: var(--muted);
  font-size: 1rem;
  max-width: 46ch;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag {
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--fg);
  background: var(--card-bg);
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--fg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-dark {
  background: var(--fg);
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: rgba(28, 28, 28, 0.25);
}

.btn-outline:hover {
  background: rgba(28, 28, 28, 0.05);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 32px;
  margin-right: auto;
  margin-left: 64px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 720px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px min(8vw, 96px);
}

.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---------- Featured project ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--border);
}

.featured-image {
  margin-left: min(8vw, 96px);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}

.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px min(8vw, 96px) 64px calc(min(8vw, 96px) + 32px);
}

.featured-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 20px;
}

/* ---------- Projects ---------- */
.projects {
  padding: 100px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.section-note {
  color: var(--muted);
  max-width: 32ch;
  text-align: right;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(28, 28, 28, 0.18);
}

.project-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #efe2c8, #e4d3ae);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.project-media--photo {
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
}

.project-media--photo-wide {
  aspect-ratio: 1902 / 706;
  flex: 1;
}

.project-media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 28px;
}

.project-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* --- Nexora Dashboard mock --- */
.mock-desktop {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-desktop__screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1c1c1c;
  border-radius: 10px;
  padding: 10px;
}

.mock-dash {
  height: 100%;
  background: #fff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 40px 1fr;
  overflow: hidden;
}

.mock-dash__sidebar {
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.mock-line {
  width: 18px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.mock-dash__main {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-dash__stats {
  display: flex;
  gap: 6px;
}

.mock-stat {
  flex: 1;
  height: 24px;
  background: #f2ede1;
  border-radius: 4px;
}

.mock-dash__chart {
  flex: 1;
  background: #f2ede1;
  border-radius: 4px;
  background-image: linear-gradient(
    135deg,
    transparent 47%,
    var(--accent) 48%,
    var(--accent) 52%,
    transparent 53%
  );
}

.mock-desktop__stand {
  width: 60px;
  height: 22px;
  background: #d8c9a6;
  border-radius: 0 0 6px 6px;
  margin-top: -2px;
}

/* --- Morning Calm phone mock --- */
.mock-phone {
  width: 190px;
  aspect-ratio: 9 / 18;
  background: #1c1c1c;
  border-radius: 28px;
  padding: 10px;
}

.mock-phone__screen {
  height: 100%;
  background: #fdf6ec;
  border-radius: 18px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-phone__greeting {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-phone__hero {
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(160deg, #9db4a8, #5c7a6d);
}

.mock-phone__row {
  display: flex;
  gap: 6px;
}

.mock-phone__pill {
  flex: 1;
  height: 26px;
  border-radius: 6px;
}

.mock-phone__pill:nth-child(1) {
  background: #f4d9c6;
}
.mock-phone__pill:nth-child(2) {
  background: #d9e6d3;
}
.mock-phone__pill:nth-child(3) {
  background: #d6e0ee;
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 24px;
}

.about-text .body-text {
  max-width: none;
  margin-bottom: 16px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Team ---------- */
.team-section {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.team-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 32px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.team-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-name {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.team-role {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.team-bio {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--fg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 110px 0 80px;
  text-align: center;
}

.contact-inner {
  max-width: 560px;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.contact .body-text {
  margin: 0 auto 36px;
  text-align: center;
}

.contact-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--fg);
}

.contact-form input:focus {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-links a {
  overflow-wrap: anywhere;
}

.contact-links a:hover {
  color: var(--fg);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.social-icon--linkedin { color: #0a66c2; }
.social-icon--github { color: #181717; }
.social-icon--whatsapp { color: #25d366; }
.social-icon--dribbble { color: #ea4c89; }

.social-icon--linkedin:hover { border-color: #0a66c2; }
.social-icon--github:hover { border-color: #181717; }
.social-icon--whatsapp:hover { border-color: #25d366; }
.social-icon--dribbble:hover { border-color: #ea4c89; }

.social-icon--instagram:hover {
  border-color: #c837ab;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

/* Tablet: keep two-column grids where they still fit, just tighten spacing */
@media (max-width: 1100px) {
  .container {
    padding: 0 24px;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    margin-left: 40px;
    gap: 22px;
  }
}

/* Small tablet / large phone: collapse nav, stack the big two-column sections */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 32px;
    gap: 16px;
    margin: 0;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero,
  .featured,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 420px;
    order: -1;
  }

  .hero-text {
    padding: 40px 24px;
  }

  .featured-text {
    padding: 40px 24px;
  }

  .featured-image {
    margin-left: 24px;
  }

  .featured-image img {
    min-height: 340px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }

  .container {
    padding: 0 20px;
  }

  .projects,
  .about,
  .testimonials {
    padding: 72px 0;
  }

  .contact {
    padding: 80px 0 56px;
  }
}

/* Phone: tighten header, hero image, and buttons so nothing crowds or overflows */
@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 12px;
    height: 68px;
  }

  .main-nav {
    top: 68px;
  }

  .logo {
    font-size: 1rem;
  }

  .btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero-text {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  .hero-image {
    padding: 24px;
    min-height: 340px;
  }

  .hero-image img {
    max-width: 320px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .featured-text {
    padding: 32px 16px;
  }

  .featured-image {
    margin-left: 16px;
  }

  .featured-image img {
    min-height: 260px;
  }

  .projects,
  .about,
  .testimonials {
    padding: 56px 0;
  }

  .contact {
    padding: 64px 0 48px;
  }

  .contact-form {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
