@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --navy: #08132f;
  --navy-deep: #040b20;
  --ink: #13203d;
  --muted: #63708b;
  --paper: #f3f1ec;
  --white: #fffdfa;
  --gold: #c69a4a;
  --gold-light: #e1bf7d;
  --line: rgba(17, 33, 64, .14);
  --shadow: 0 22px 60px rgba(8, 19, 47, .12);
  --shell: min(1180px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', Arial, sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin: 0 auto; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); background: linear-gradient(90deg, rgba(4,11,32,.7), rgba(4,11,32,.38) 50%, rgba(4,11,32,.66)), url('images/madeira-premium.jpg') center / cover no-repeat; }
@supports (background-image: url('images/madeira-premium.avif')) {
  .site-header { background-image: linear-gradient(90deg, rgba(4,11,32,.7), rgba(4,11,32,.38) 50%, rgba(4,11,32,.66)), url('images/madeira-premium.avif'); }
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--gold); color: var(--gold-light); font: 600 13px/1 'Playfair Display', Georgia, serif; letter-spacing: .05em; }
.brand-mark img { display: block; width: 29px; height: auto; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 11px; font-weight: 600; letter-spacing: .17em; }
.brand-copy small { color: var(--gold-light); font-size: 8px; letter-spacing: .34em; }
.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 24px; color: rgba(255,255,255,.73); font-size: 13px; }
.main-nav a, .header-contact { transition: color .2s ease; }
.main-nav a:hover, .header-contact:hover { color: var(--gold-light); }
.header-contact { display: flex; align-items: center; gap: 9px; color: var(--white); font-size: 12px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #63c38c; box-shadow: 0 0 0 5px rgba(99,195,140,.14); }

.hero-section { position: relative; min-height: 760px; display: flex; align-items: center; padding: 150px 0 100px; color: var(--white); background: radial-gradient(circle at 74% 36%, rgba(198,154,74,.17), transparent 24%), linear-gradient(115deg, var(--navy-deep), var(--navy) 58%, #102348); overflow: hidden; }
.hero-section::after { content: ''; position: absolute; right: -90px; top: 180px; width: 360px; height: 360px; border: 1px solid rgba(198,154,74,.3); border-radius: 50%; box-shadow: 0 0 0 36px rgba(198,154,74,.04), 0 0 0 72px rgba(198,154,74,.025); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr); gap: 110px; align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 690px; min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .24em; font-size: 10px; font-weight: 700; color: var(--gold); }
.eyebrow span { display: inline-block; margin-right: 8px; font-size: 14px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 740px; margin-bottom: 25px; font-size: clamp(46px, 6vw, 78px); line-height: 1.02; text-wrap: balance; }
.hero-lead { max-width: 590px; margin-bottom: 35px; color: rgba(255,255,255,.71); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 0 25px; border: 1px solid transparent; font-size: 12px; font-weight: 700; letter-spacing: .02em; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--gold-light); }
.button-primary:hover { background: var(--white); }
.text-link { color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--gold-light); }
.hero-notes { display: flex; gap: 20px 28px; flex-wrap: wrap; margin-top: 58px; color: rgba(255,255,255,.52); font-size: 11px; }
.hero-notes i { margin-right: 6px; color: var(--gold-light); font-style: normal; }
.hero-aside { position: relative; min-height: 370px; padding: 36px 0 35px 38px; border-left: 1px solid rgba(198,154,74,.52); }
.aside-number { color: var(--gold-light); font-size: 13px; letter-spacing: .12em; }
.aside-number span { color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.aside-line { width: 62px; height: 1px; margin: 34px 0 25px; background: var(--gold); }
.hero-aside p { max-width: 245px; color: rgba(255,255,255,.63); font-size: 14px; line-height: 1.8; }
.aside-link { display: inline-flex; gap: 17px; margin-top: 17px; color: var(--gold-light); font-size: 12px; font-weight: 700; }
.aside-link:hover { color: var(--white); }
.aside-seal { position: absolute; right: 0; bottom: 0; display: grid; gap: 5px; width: 113px; height: 113px; place-content: center; border: 1px solid rgba(198,154,74,.55); border-radius: 50%; text-align: center; color: var(--gold-light); }
.aside-seal span { font: 600 27px/1 'Playfair Display', Georgia, serif; }
.aside-seal small { color: rgba(255,255,255,.5); font-size: 7px; letter-spacing: .2em; line-height: 1.4; }

.intro-section { padding: 125px 0; }
.intro-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; }
.intro-grid h2, .section-heading h2, .process-title h2, .about-copy h2 { max-width: 730px; margin-bottom: 24px; font-size: clamp(34px, 4vw, 53px); line-height: 1.1; }
.section-text, .section-intro { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.85; }

.practice-section { position: relative; isolation: isolate; padding: 120px 0 135px; color: var(--white); background: var(--navy); overflow: hidden; }
.practice-section > .shell { position: relative; z-index: 1; }
.wood-surface { position: relative; isolation: isolate; color: var(--white); background: #4f3525 url('images/madeira-premium.jpg') center / cover no-repeat; overflow: hidden; }
@supports (background-image: url('images/madeira-premium.avif')) {
  .wood-surface { background-image: url('images/madeira-premium.avif'); }
}
.wood-surface .section-text,
.wood-surface .process-title > p:last-child,
.wood-surface .process-list p,
.wood-surface .office-copy > p:not(.section-kicker) { color: rgba(255,255,255,.78); }
.wood-surface .process-list h3,
.wood-surface .office-address strong { color: var(--white); }
.wood-surface .process-list li { border-color: rgba(255,255,255,.24); }
.wood-surface::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(105deg, rgba(19,8,4,.46), rgba(19,8,4,.18) 48%, rgba(19,8,4,.42)); pointer-events: none; }
.wood-surface::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(6,12,30,.3), rgba(6,12,30,.06) 48%, rgba(6,12,30,.28)); pointer-events: none; }
.wood-surface > .shell { position: relative; z-index: 1; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { max-width: 300px; margin-bottom: 4px; color: rgba(255,255,255,.7); }
.practice-carousel { position: relative; }
.practice-grid { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.practice-grid::-webkit-scrollbar { display: none; }
.practice-card { position: relative; flex: 0 0 calc((100% - 24px) / 3); min-height: 285px; padding: 25px 24px 24px; border: 1px solid rgba(255,255,255,.12); color: var(--white); background: url('images/madeira-premium.jpg') center / cover no-repeat; scroll-snap-align: start; transition: transform .2s ease, box-shadow .2s ease; }
@supports (background-image: url('images/madeira-premium.avif')) {
  .practice-card { background-image: url('images/madeira-premium.avif'); }
}
.practice-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,11,32,.76), rgba(4,11,32,.4)); pointer-events: none; transition: background .2s ease; }
.practice-card > * { position: relative; z-index: 1; }
.practice-card:hover { z-index: 2; transform: translateY(-5px); box-shadow: var(--shadow); }
.practice-card:hover::before { background: linear-gradient(135deg, rgba(4,11,32,.64), rgba(4,11,32,.3)); }
.card-index { position: absolute; top: 30px; right: 30px; color: var(--gold); font: 500 12px/1 'Playfair Display', Georgia, serif; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 38px; border: 1px solid var(--gold); color: var(--gold); font-size: 18px; }
.practice-card h3 { max-width: 230px; margin-bottom: 11px; font: 500 22px/1.16 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.practice-card p { max-width: 270px; margin-bottom: 20px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.65; }
.practice-card a { position: absolute; bottom: 24px; left: 24px; display: inline-flex; gap: 13px; color: var(--gold); font-size: 11px; font-weight: 700; }
.practice-card a:hover { color: var(--gold-light); }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
.carousel-dots { display: flex; align-items: center; gap: 7px; }
.carousel-dot { width: 25px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.is-active { width: 42px; background: var(--gold); }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); color: var(--white); background: transparent; cursor: pointer; font-size: 16px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.carousel-button:hover { color: var(--white); border-color: var(--navy); background: var(--navy); }

.process-section { padding: 125px 0; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; }
.process-title h2 { max-width: 390px; }
.process-title > p:last-child { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 0 0 29px; margin-bottom: 29px; border-bottom: 1px solid rgba(19,32,61,.16); }
.process-list li:last-child { margin-bottom: 0; }
.process-list li > span { color: var(--gold); font: 500 21px/1 'Playfair Display', Georgia, serif; }
.process-list h3 { margin-bottom: 5px; font: 500 25px/1.2 'Playfair Display', Georgia, serif; }
.process-list p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.about-section { padding: 130px 0; color: var(--white); background: var(--navy); }
.about-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 115px; align-items: center; }
.about-portrait { position: relative; min-height: 450px; display: grid; place-items: center; background: var(--navy); overflow: hidden; }
.about-portrait::before, .about-portrait::after { content: ''; position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; pointer-events: none; }
.about-portrait::before { width: 315px; height: 315px; }
.about-portrait::after { width: 230px; height: 230px; }
.about-portrait img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; object-position: center top; opacity: .88; }
.portrait-caption { position: absolute; z-index: 2; left: 25px; bottom: 23px; color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.about-copy h2 { max-width: 620px; }
.about-copy > p:not(.section-kicker) { max-width: 580px; color: rgba(255,255,255,.66); font-size: 15px; line-height: 1.85; }
.about-details { display: flex; gap: 65px; margin: 37px 0; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.about-details div { display: grid; gap: 7px; }
.about-details span { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.about-details strong { font-size: 12px; line-height: 1.7; }
.about-section .button-outline { color: var(--white); border-color: var(--white); }
.about-section .button-outline:hover { color: var(--navy); background: var(--white); }
.office-section .button-outline { color: var(--white); border-color: var(--white); }
.button-outline:hover { color: var(--white); background: var(--navy); }

.office-section { padding: 110px 0; }
.office-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 95px; align-items: center; }
.office-photo-wrap { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.office-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.office-photo-label { position: absolute; z-index: 1; right: 20px; bottom: 20px; padding: 9px 13px; color: var(--white); background: rgba(8,19,47,.86); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.office-copy h2 { max-width: 450px; margin-bottom: 22px; font-size: clamp(34px, 4vw, 50px); line-height: 1.1; }
.office-copy > p:not(.section-kicker) { max-width: 405px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.office-address { display: grid; gap: 7px; margin: 29px 0 21px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.office-address span { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.office-address strong { font-size: 12px; line-height: 1.7; }
.office-map-button { margin-top: 2px; }
.office-map-frame { margin-top: 58px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.office-map-frame iframe { display: block; width: 100%; height: 310px; border: 0; }

.final-cta { padding: 105px 0; color: var(--white); background: linear-gradient(110deg, #10234c, var(--navy)); }
.final-cta-inner { text-align: center; }
.final-cta h2 { margin-bottom: 34px; font-size: clamp(42px, 5vw, 67px); line-height: 1.04; }
.final-cta h2 em { color: var(--gold-light); }
.button-light { color: var(--navy); background: var(--white); }
.button-light:hover { color: var(--white); background: var(--gold); }

.site-footer { color: rgba(255,255,255,.67); background: linear-gradient(90deg, rgba(4,11,32,.78), rgba(4,11,32,.5) 50%, rgba(4,11,32,.72)), url('images/madeira-premium.jpg') center / cover no-repeat; }
@supports (background-image: url('images/madeira-premium.avif')) {
  .site-footer { background-image: linear-gradient(90deg, rgba(4,11,32,.78), rgba(4,11,32,.5) 50%, rgba(4,11,32,.72)), url('images/madeira-premium.avif'); }
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr .7fr; gap: 50px; padding: 70px 0 58px; }
.footer-tagline { margin: 20px 0 0; color: rgba(255,255,255,.4); font-size: 12px; }
.footer-column { display: grid; align-content: start; gap: 6px; font-size: 12px; }
.footer-column > span { margin-bottom: 10px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.footer-column a:hover { color: var(--gold-light); }
.footer-column p { margin: 0; font-size: 12px; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.34); font-size: 10px; }
.floating-whatsapp { position: fixed; right: 23px; bottom: 23px; z-index: 20; display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--white); background: #24b65b; box-shadow: 0 8px 25px rgba(8,19,47,.28); font-size: 27px; transition: transform .2s ease; }
.floating-whatsapp:hover { transform: scale(1.07); }

@media (max-width: 900px) {
  :root { --shell: min(100% - 42px, 680px); }
  .shell { width: min(calc(100% - 42px), 680px); }
  .main-nav { display: none; }
  .hero-section { min-height: auto; padding: 145px 0 80px; }
  .hero-grid, .process-grid, .about-grid, .intro-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-grid { gap: 75px; }
  .hero-aside { min-height: 280px; }
  .hero-aside p { max-width: 430px; }
  .aside-seal { right: 20px; }
  .intro-section, .practice-section, .process-section, .about-section, .office-section { padding: 85px 0; }
  .office-grid { grid-template-columns: 1fr; gap: 48px; }
  .office-map-frame { margin-top: 48px; }
  .section-heading { display: block; }
  .section-intro { margin-top: 22px; }
  .practice-card { flex-basis: calc((100% - 12px) / 2); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 34px); }
  .shell { width: calc(100% - 34px); }
  .site-header { position: absolute; }
  .header-inner { min-height: 72px; }
  .header-contact span:last-child { display: none; }
  .hero-grid { width: calc(100% - 34px); }
  .hero-copy, .hero-aside { width: 100%; max-width: 100%; min-width: 0; }
  .hero-aside p { max-width: 280px; overflow-wrap: anywhere; }
  h1 { width: 100%; max-width: 100%; font-size: 32px; line-height: 1.08; overflow-wrap: anywhere; }
  .hero-lead { max-width: 320px; font-size: 12px; line-height: 1.75; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 21px; }
  .hero-notes { display: grid; gap: 10px; margin-top: 42px; }
  .hero-aside { padding-left: 24px; }
  .aside-seal { right: 0; width: 95px; height: 95px; }
  .practice-card { flex-basis: 86%; }
  .practice-card { min-height: 300px; }
  .about-details { display: grid; gap: 21px; }
  .about-portrait { min-height: 300px; }
  .about-portrait img { min-height: 300px; }
  .office-map-frame iframe { height: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 33px; }
  .footer-bottom { display: grid; gap: 7px; }
  .floating-whatsapp { right: 16px; bottom: 16px; }
}
