/* CA+id - Collaborations Architects + Interior Designers */
:root {
  --accent: #f76e37;
  --accent-dark: #d9531d;
  --ink: #1e1e1e;
  --text: #555;
  --muted: #888;
  --line: #e6e6e6;
  --alt: #f7f7f7;
  --dark: #1c1c1c;
  --head: "Yanone Kaffeesatz", "Arial Narrow", sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.7 var(--body); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); padding: 11px 26px; border-radius: 30px; font: 700 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost.dark { color: var(--ink); border-color: var(--ink); }
.btn-ghost.dark:hover { background: var(--ink); color: #fff; }

/* top bar + header */
.topbar { background: var(--dark); color: #bbb; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #ddd; }
.topbar a:hover { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand img { height: 60px; width: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a, .main-nav button { display: block; padding: 10px 14px; color: var(--ink); font: 700 .82rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .main-nav button:hover, .main-nav a[aria-current], .main-nav button.current { color: var(--accent); }
.has-sub { position: relative; }
.has-sub button span { font-size: .7em; }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.sub a { padding: 10px 18px; color: #666; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: #222; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; }
.hero .slide.active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35)); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p { font-size: 1.3rem; max-width: 600px; color: #eee; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.slider-dots { position: absolute; z-index: 3; bottom: 24px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--accent); border-color: var(--accent); }

.page-banner { position: relative; padding: 110px 0 90px; background: #333 center/cover no-repeat; color: #fff; text-align: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { margin: 10px 0 0; font-size: 1.1rem; color: #eee; }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head .line { display: block; width: 50px; height: 3px; background: var(--accent); margin: 0 auto; }
.sec-head .lead { margin-top: 14px; }
.about-grid .sec-head, .contact-info .sec-head { text-align: left; }
.about-grid .sec-head .line, .contact-info .sec-head .line { margin: 0; }
.intro { font-size: 1.1rem; }
.highlights { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.highlights li { background: #fff; padding: 22px 16px; border-top: 3px solid var(--accent); }
.highlights strong { display: block; font: 600 1.7rem/1.1 var(--head); color: var(--ink); text-transform: uppercase; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { position: relative; display: block; overflow: hidden; }
.cat-card img { transition: transform .5s; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font: 600 1.5rem/1.1 var(--head); text-transform: uppercase; text-align: center; }
.cat-card:hover img { transform: scale(1.06); }

/* project cards */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.p-card { display: block; background: #fff; color: var(--text); box-shadow: 0 2px 14px rgba(0,0,0,.06); transition: box-shadow .25s, transform .25s; }
.p-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-3px); color: var(--text); }
.p-card figure { margin: 0; overflow: hidden; aspect-ratio: 4/3; }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover img { transform: scale(1.05); }
.p-info { padding: 18px 20px 22px; }
.p-info .cat { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.p-info h3 { margin: 4px 0 2px; font-size: 1.45rem; }
.p-info .loc { font-size: .9rem; color: var(--muted); }
.ph { width: 100%; height: 100%; min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 20px; text-align: center; background: linear-gradient(135deg, #2b2b2b, #444); color: #fff; }
.ph span { font: 600 1.4rem/1.15 var(--head); text-transform: uppercase; }
.ph small { color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.ph.big { aspect-ratio: 16/10; }
.more { margin-top: 40px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filters a { padding: 9px 20px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink); font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.filters a:hover { border-color: var(--accent); color: var(--accent); }
.filters a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* clients + awards */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.clients li { background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 10px; aspect-ratio: 9/5; }
.clients img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .25s; }
.clients li:hover img { filter: none; opacity: 1; }
.awards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.award { display: block; background: #fff; padding: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.award img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* testimonials */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.t-grid blockquote { margin: 0; background: #fff; padding: 30px; border: 1px solid var(--line); position: relative; }
.t-grid blockquote::before { content: "\201C"; position: absolute; top: -6px; left: 22px; font: 5rem/1 Georgia, serif; color: var(--accent); opacity: .35; }
.t-grid p { font-style: italic; position: relative; }
.t-grid footer { font-weight: 700; color: var(--ink); }

.cta { background: var(--dark); color: #ccc; text-align: center; padding: 70px 0; }
.cta h2 { color: #fff; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.expertise { background: var(--alt); padding: 34px; border-top: 3px solid var(--accent); }
.expertise ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.expertise li { padding: 7px 0 7px 18px; position: relative; break-inside: avoid; }
.expertise li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 2px; background: var(--accent); }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.icon-box { text-align: center; background: #fff; padding: 36px 28px; }
.icon-box svg { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; margin-bottom: 14px; }

/* project page */
.project { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery .g-item:first-child { grid-column: 1 / -1; }
.gallery.single { grid-template-columns: 1fr; }
.g-item { display: block; overflow: hidden; background: #eee; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .g-item:not(:first-child) img { aspect-ratio: 4/3; }
.g-item:hover img { transform: scale(1.03); }
.project-side { position: sticky; top: 110px; background: var(--alt); padding: 30px; }
.client-logo { max-height: 80px; width: auto; margin-bottom: 20px; background: #fff; padding: 8px; }
.project-side dl { margin: 0 0 24px; }
.project-side dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project-side dd { margin: 0 0 14px; color: var(--ink); }
.prev-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); }
.prev-next a { font-weight: 700; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.ci { margin-bottom: 26px; padding-left: 18px; border-left: 3px solid var(--accent); }
.ci h3 { margin-bottom: 4px; }
.ci p { margin: 0; }
.enquiry { background: var(--alt); padding: 36px; }
.enquiry label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.enquiry input, .enquiry textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #ddd; background: #fff; font: inherit; font-weight: 400; color: var(--ink); border-radius: 2px; }
.enquiry input:focus, .enquiry textarea:focus { border-color: var(--accent); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.form-status.ok { background: #e6f6ea; color: #1b6b30; }
.form-status.err { background: #fde8e8; color: #9b1c1c; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.4); }
.notfound { padding: 120px 0; }

/* footer */
.site-footer { background: #111; color: #aaa; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 50px; }
.site-footer img { height: 60px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 1.4rem; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--accent); }
.footer-bar { border-top: 1px solid #2a2a2a; padding: 18px 0; font-size: .85rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 86vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* responsive */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .awards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; }
  .project-side { position: static; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a, .main-nav button { padding: 14px 20px; width: 100%; text-align: left; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 8px 14px; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .p-grid, .t-grid, .icon-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .topbar span:first-child { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .p-grid, .t-grid, .icon-grid, .highlights, .row2, .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card span { font-size: 1.15rem; padding: 30px 8px 10px; }
  .clients { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .awards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .expertise ul { columns: 1; }
  .hero { min-height: 70vh; }
  .brand img { height: 48px; }
  .header-inner { min-height: 70px; }
  .enquiry { padding: 24px 18px; }
  .prev-next { flex-direction: column; }
  .topbar .wrap { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
