/* =========================
   CSS VARIABLES
========================= */
:root {
  --page-bg: #f9f8f6;
  --ink: #393e46;

  --intro-right-bg: #393e46;
  --intro-text-color: #efe9e3;

  --container-max: 1200px;
  --border-h: 50px;

  --radius: 3px;
}

/* =========================
   RESET / BASE
========================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

a {
  color: #ab977d;
  text-decoration: none;
}

/* =========================
   LAYOUT  (FIXED)
========================= */
.container {
  width: 100%;
  max-width: 1200px;               /* hard cap (fixes your issue) */
  max-width: var(--container-max);  /* keeps your variable version too */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================
   TOP BORDER
========================= */
.border {
  width: 100%;
  height: var(--border-h);
  background: var(--ink);
}

/* =========================
   HEADER
========================= */
.header {
  width: 100%;
  background: url("files/topo.jpg") center / cover no-repeat;
  padding: 32px 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.header-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1;
  margin: 0;
}

.header-name-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   INTRO
========================= */
.intro { padding: 20px 0; }

.intro-card {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.intro-left {
  flex: 1 1 50%;
  min-height: 260px;
}

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

.intro-right {
  flex: 1 1 50%;
  background: var(--intro-right-bg);
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;

  /* default: bottom corners only (phones/tablets) */
  border-radius: 0 0 var(--radius) var(--radius);
}

.intro-text {
  max-width: 460px;
  color: var(--intro-text-color);
}

.social {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.social a { display: inline-flex; }

.social img {
  width: 34px;
  height: 34px;
  display: block;
}

/* =========================
   EXPERTISE SECTIONS
========================= */
.expertise {
  padding: 48px 0 24px;
}

.expertise-title {
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--ink);

  width: 100%;
  max-width: 800px;   /* match expertise-box */
  margin: 0 auto;     /* center the block */
}

.expertise-title::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(57, 62, 70, 0.25);
  margin: 0 0 8px;
}

.expertise-box {
  background: #efe9e3;
  padding: 20px 22px;
  border-radius: var(--radius);

  width: 100%;
  max-width: 800px;     /* limit text box width */
  margin: 0 auto;       /* center the box */
}

.expertise-box p {
  margin: 0 0 8px;
}

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

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background: #c9b59c;
  color: #f9f8f6;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  border-radius: 2px;
}

.btn:hover { opacity: 0.7; }

/* =========================
   PORTFOLIO SLIDER
========================= */
.portfolio {
  margin-top: 15px;            /* space between text box and images */
  background: var(--page-bg);  /* match page bg */
}

.portfolio-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.portfolio-track::-webkit-scrollbar { display: none; }

.portfolio-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
}

.portfolio-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* bottom navigation buttons */
.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.portfolio-btn {
  border: 0;
  background: rgba(57, 62, 70, 0.10);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.portfolio-btn:hover { opacity: 0.8; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  :root { --border-h: 25px; }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .intro-card { flex-direction: column; }
  .intro-left { height: 240px; }
  .intro-right { padding: 20px; }
}

/* monitors: only round the RIGHT corners of intro-right */
@media (min-width: 1025px) {
  .intro-right {
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}