@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --teal: #2C7272;
  --teal-dark: #1e5555;
  --teal-light: #EDF5F5;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e0e0;
  --bg: #ffffff;
  --max: 1080px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

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

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
}

.site-logo:hover { text-decoration: none; }

.logo-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

nav { display: flex; gap: 32px; align-items: center; }

nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav a:hover { color: var(--teal); text-decoration: none; }
nav a.active { color: var(--teal); }

/* ── Hero ── */
.hero {
  background: var(--teal-light);
  padding: 80px 0 72px;
  border-bottom: 1px solid #d0e8e8;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 700px;
}

.hero p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero .cta-link {
  display: inline-block;
  margin-top: 32px;
  background: var(--teal);
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hero .cta-link:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

/* ── Page header (for inner pages) ── */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.page-header h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-header p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-muted);
}

/* ── Sections ── */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 32px;
}

h3:first-child { margin-top: 0; }

p + p { margin-top: 14px; }

ul {
  margin-top: 10px;
  margin-left: 20px;
}

ul li { margin-bottom: 4px; }

/* ── Service tiles ── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.tile {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.tile:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(44,114,114,0.1);
}

.tile h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 10px;
}

.tile p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0;
}

.tile a.tile-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.tile a.tile-link:hover { text-decoration: underline; }

/* ── Testimonials ── */
.testimonials { background: var(--teal-light); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.testimonial {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  border: 1px solid #d0e8e8;
}

.testimonial blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.testimonial cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  color: var(--teal);
}

/* ── CTA band ── */
.cta-band {
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 64px 32px;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 12px;
}

.cta-band p {
  color: #ccc;
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); text-decoration: none; color: #fff; }

.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { background: #f0f0f0; text-decoration: none; color: var(--teal); }

.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline:hover { background: var(--teal); color: #fff; text-decoration: none; }

/* ── About page specifics ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
}

.about-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--teal);
}

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

.services-grid h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0;
  margin-bottom: 12px;
}

.services-grid ul { margin-left: 16px; }
.services-grid ul li { font-size: 15px; margin-bottom: 6px; }

.experience-list { margin-top: 20px; }

.exp-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.exp-item:last-child { border-bottom: none; }

.exp-role { font-size: 15px; color: var(--text-muted); }
.exp-date { font-size: 14px; color: var(--text-muted); white-space: nowrap; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* ── Sample projects (inner pages) ── */
.sample {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.sample:last-of-type { border-bottom: none; }

.sample-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  border: 1px solid var(--teal);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 16px;
}

.sample h2 {
  font-size: clamp(20px, 2vw, 24px);
  margin-bottom: 16px;
}

.sample-meta {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.sample img {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.sample-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.sample-images img {
  margin: 0;
  width: 100%;
}

/* ── Email sample display ── */
.email-sample {
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  margin: 24px 0;
  font-size: 15px;
}

.email-sample .email-field {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.email-sample .email-value { margin-bottom: 16px; }
.email-sample .email-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Contact form ── */
.contact-form {
  max-width: 600px;
  margin-top: 32px;
}

.form-group { margin-bottom: 24px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
}

textarea { min-height: 140px; resize: vertical; }

.form-submit {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--teal-dark); }

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

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

footer p { font-size: 14px; color: var(--text-muted); }
footer a { font-size: 14px; color: var(--teal); }

/* ── Portfolio cross-nav ── */
.portfolio-nav-section {
  background: var(--teal-light);
  border-top: 1px solid #d0e8e8;
}

.portfolio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.portfolio-nav .btn-outline {
  font-size: 14px;
  padding: 10px 18px;
}

/* ── Clients logo grid ── */
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.client-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 90px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.client-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 10px rgba(44,114,114,0.08);
}

.client-card img {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.client-card span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .clients-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .clients-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Divider ── */
hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .exp-item { flex-direction: column; gap: 4px; }
  header .container { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .tiles-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .hero { padding: 48px 0; }
}
