:root{
  --bg: #f8f7f2;
  --accent: #961e65;
  --text: #000000;
  --muted: #6b6b6b;
  --container: 1100px;
  --header-height: 72px;
}

/* Smooth scrolling for in-page navigation and offset for fixed header */
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{max-width:var(--container);margin:0 auto;padding:1.5rem}
.narrow{max-width:720px;margin:0 auto}

.site-header{background:linear-gradient(180deg, rgba(248,247,242,0.95), rgba(248,247,242,0.9));position:fixed;top:0;left:0;width:100%;height:var(--header-height);z-index:120;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-bottom:1px solid rgba(150,30,101,0.06);display:flex;align-items:center}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:100%}
.logo{font-weight:800;color:var(--accent);text-decoration:none;font-size:1.125rem;letter-spacing:0.4px}
.nav a{margin-left:1.25rem;color:var(--text);text-decoration:none;padding:.45rem .35rem;border-radius:6px}
.nav a:hover{color:var(--accent);background:rgba(150,30,101,0.04)}

/* make header content span full width but keep gutters */
.site-header .container{max-width:100%;width:100%;padding:0 1rem}
.site-header .header-inner{justify-content:space-between;width:100%}
.site-header .nav{display:flex;align-items:center}
.site-header .logo{margin-left:.25rem}
.site-header .nav{margin-right:.25rem}

/* logo image sizing */
.logo img{height:50px;width:auto;display:block}

@media (max-width:900px){
  .logo img{height:48px}
}

@media (max-width:600px){
  .logo img{height:99px}
}

.hero{padding:4.5rem 0 3rem;display:flex;align-items:center}
.hero-inner{padding:2.5rem;background:linear-gradient(180deg, rgba(150,30,101,0.06), transparent 70%);border-radius:12px}
.hero h1{font-size:clamp(1.6rem,3.6vw,2.4rem);margin:0 0 .75rem}
.hero p{margin:0 0 1.25rem;color:var(--muted)}

.btn-primary,.btn-outline{display:inline-block;padding:.7rem 1.1rem;border-radius:8px;text-decoration:none;font-weight:600}
.btn-primary{background:var(--accent);color:white;border:2px solid var(--accent)}
.btn-outline{color:var(--accent);border:2px solid rgba(150,30,101,0.12);background:transparent}

.section{padding:3rem 0}
.section h2{margin:0 0 1rem}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:white;border-radius:10px;padding:1.25rem;box-shadow:0 6px 18px rgba(0,0,0,0.04)}
.card h3{margin:0 0 .5rem}
.card p{margin:0;color:var(--muted)}

.work-grid{grid-template-columns:repeat(2,1fr)}
.work-item{background:white;border-radius:8px;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,0.04)}
.work-item img{display:block;width:100%;height:auto}
.work-item figcaption{padding:.6rem .8rem;font-size:.95rem;display:flex;flex-direction:column;gap:.45rem}
.work-header{display:flex;justify-content:space-between;align-items:center;gap:.6rem;width:100%}
.work-title{flex:1}
.work-stars{display:inline-flex;gap:.15rem;align-items:center}
.star{font-size:1.05rem;line-height:1}
.star.filled{color:#f5a623}
.star.outline{color:#d6d6d6}
.work-quote{position:relative;text-align:center;color:var(--muted);font-style:italic;padding:.45rem .6rem .6rem;margin:0;font-size:.9rem}
.work-quote::before{content:'“';position:absolute;left:.45rem;top:0;font-size:1.4rem;color:rgba(0,0,0,0.12);line-height:1}
.work-quote::after{content:'”';position:absolute;right:.45rem;bottom:0;font-size:1.4rem;color:rgba(0,0,0,0.12);line-height:1}

.about p{color:var(--muted);line-height:1.6}
/* About section redesign */
.about-inner{display:grid;grid-template-columns:1fr 360px;gap:1.75rem;align-items:start;margin-top:.75rem;padding:1.25rem;background:linear-gradient(180deg, rgba(150,30,101,0.04), rgba(150,30,101,0.01));border-radius:12px;border:1px solid rgba(150,30,101,0.06)}
.about-text h3{margin:0 0 .5rem;font-size:1.25rem}
.about-text .lead{margin:0 0 1rem;color:var(--muted);line-height:1.5}
.about-list{margin:0 0 1rem;padding-left:1.05rem;color:var(--text)}
.about-list li{margin:0.45rem 0}
.about-card{background:white;border-radius:10px;padding:.9rem;box-shadow:0 8px 28px rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.03)}
.about-card .card-inner{display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center}
.about-logo{height:56px;width:auto;border-radius:8px}
.about-card h4{margin:.25rem 0 .15rem}
.about-card .small{color:var(--muted);font-size:.92rem;margin:0}
.about-card .muted{color:var(--muted);font-size:.85rem;margin:0}
.stats{display:flex;gap:1rem;margin-top:.6rem}
.stats div{display:flex;flex-direction:column;align-items:center}
.stats strong{font-size:1.1rem}

.contact-form{display:flex;flex-direction:column;gap:.8rem}
.contact-form input,.contact-form textarea{padding:13px;border:1px solid rgba(0,0,0,0.08);border-radius:8px;font-size:1rem}
.contact-form textarea#message{padding:13px;line-height:1.4}

/* allow resizing only vertically; prevent shrinking below default (6 rows) */
.contact-form textarea{resize:vertical;overflow:auto}
.contact-form textarea#message{min-height:calc(6 * 1.4em + 26px)}

.phone-row{display:flex;gap:.5rem;align-items:center}
.phone-row select{padding:.8rem;border:1px solid rgba(0,0,0,0.08);border-radius:8px;background:white;font-size:1rem;color:var(--text);-webkit-appearance:none;-moz-appearance:none;appearance:none}
.phone-row input[type="tel"]{flex:1}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* small flag preview box next to the select */
.flag-preview{width:34px;height:26px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:white;border:1px solid rgba(0,0,0,0.06);font-size:16px}
.flag-preview.fi{font-size:18px}
.phone-row{align-items:center}
.phone-row select{min-width:170px}
.phone-row .fi{line-height:1}
#phoneStatus{min-height:1.1rem;margin-top:0}

/* Custom select styling */
.custom-select{position:relative;display:inline-block}
.custom-select .select-trigger{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem;border:1px solid rgba(0,0,0,0.08);background:white;border-radius:8px;cursor:pointer}
.custom-select .flag-box{width:26px;height:18px;display:inline-block}
.custom-select .select-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.custom-select .select-arrow{margin-left:6px;color:var(--muted)}
.custom-select .select-options{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:200;background:white;border:1px solid rgba(0,0,0,0.08);border-radius:8px;max-height:220px;overflow:auto;box-shadow:0 8px 24px rgba(0,0,0,0.08);display:none;padding:6px}
.custom-select .option-item{display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;border-radius:6px;cursor:pointer}
.custom-select .option-item:hover,.custom-select .option-item:focus{background:rgba(150,30,101,0.04);outline:none}
.custom-select .option-item .fi{font-size:18px}
.custom-select .opt-text{font-size:.95rem;color:var(--text)}

.site-footer{padding:2rem 0;border-top:1px solid rgba(0,0,0,0.06);margin-top:2rem}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;color:var(--muted)}
.footer-inner a{color:var(--text);text-decoration:none}

@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .work-grid{grid-template-columns:1fr}
  .nav{display:none}
  .about-inner{grid-template-columns:1fr}
}

@media (max-width:600px){
  .grid{grid-template-columns:1fr}
  .hero{padding:2.5rem 0}
  .hero-inner{padding:1.2rem}
}

/* ensure page content isn't hidden behind the fixed header */
body{padding-top:var(--header-height)}

@media (max-width:900px){
  :root{--header-height:64px}
}

@media (max-width:600px){
  :root{--header-height:56px}
}
