/* -------------------------
   RESET & BASE
-------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #111;
  background-color: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------
   GLOBAL ELEMENTS
-------------------------- */

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* -------------------------
   TYPOGRAPHY
-------------------------- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  font-size: 0.95rem;
  color: #444;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 12px;
}

/* -------------------------
   HEADER / NAV
-------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #eee;
}

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

/* Safari logo fix */
.logo-img {
  height: 42px;
  width: auto;
  max-height: 42px;
}

.nav-links a {
  margin-left: 28px;
  font-size: 0.85rem;
  color: #222;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* -------------------------
   HERO
-------------------------- */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: url("images/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  max-width: 700px;
  color: #fff;
}

.hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 20px;
}

.hero-text {
  margin-top: 20px;
  font-size: 1rem;
  color: #eee;
}

.hero-actions {
  margin-top: 36px;
}

/* -------------------------
   BUTTONS
-------------------------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn.primary {
  background: #111;
  color: #fff;
}

.btn.primary:hover {
  background: #000;
}

.btn.ghost {
  border: 1px solid #fff;
  color: #fff;
  margin-left: 16px;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.1);
}

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

/* -------------------------
   SECTIONS
-------------------------- */

.section {
  padding: 120px 0;
}

.section-alt {
  background: #f8f8f8;
}

.section-head {
  max-width: 600px;
  margin-bottom: 60px;
}

/* -------------------------
   SPLIT LAYOUT
-------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.copy p + p {
  margin-top: 18px;
}

/* -------------------------
   CARDS
-------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.card {
  background: #fff;
  padding: 32px;
  border: 1px solid #eee;
}

/* -------------------------
   SERVICES
-------------------------- */

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

.service-item p {
  margin-top: 10px;
}

/* -------------------------
   PORTFOLIO / GALLERY
-------------------------- */

.portfolio-group {
  margin-top: 120px;
}

.portfolio-head {
  max-width: 500px;
  margin-bottom: 40px;
}

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

/* THIS fixes your “too big image” problem */
.material-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 16px;
}

.material-card p {
  font-size: 0.85rem;
  margin-top: 6px;
}

/* -------------------------
   CONTACT
-------------------------- */

.contact-panel {
  background: #fff;
  padding: 48px;
  border: 1px solid #eee;
}

.contact-lines p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.contact-form {
  margin-top: 28px;
}

.form-row {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: #555;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 0.85rem;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.7rem;
  color: #777;
  margin-top: 10px;
}

/* -------------------------
   FOOTER
-------------------------- */

.site-footer {
  padding: 60px 0;
  border-top: 1px solid #eee;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-small {
  font-size: 0.7rem;
  color: #777;
}

/* -------------------------
   RESPONSIVE
-------------------------- */

@media (max-width: 900px) {
  .split,
  .cards,
  .services-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  h1 {
    font-size: 2.4rem;
  }
}