/* Delfina Kozik theme - design system matching the original Lovable site. */

:root {
	--dk-ink: #151322;
	--dk-ink-foreground: #fafafa;
	--dk-primary: #f2620f;
	--dk-muted: #f6f5f9;
	--dk-muted-foreground: #6f6d80;
	--dk-border: #e9e8ef;
	--dk-tint-1: #fdeee2;
	--dk-tint-2: #e8e6fb;
	--dk-tint-3: #e2f5ea;
	--dk-gradient: linear-gradient(100deg, #f2620f, #e83e7c 50%, #4f46e5);
	--dk-shadow-soft: 0 24px 60px -28px rgba(60, 50, 120, 0.35);
	--dk-radius: 1rem;
}

html { -webkit-font-smoothing: antialiased; }

/* ---------- Eyebrow label ---------- */
.dk-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--dk-primary);
	margin: 0 0 1.25rem;
}

/* ---------- Gradient text & surfaces ---------- */
.dk-text-gradient {
	background: var(--dk-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.dk-bg-gradient { background: var(--dk-gradient); color: #fff; }
.dk-bg-ink { background: var(--dk-ink); color: var(--dk-ink-foreground); }
.dk-bg-muted { background: var(--dk-muted); }
.dk-tint-1 { background: var(--dk-tint-1); }
.dk-tint-2 { background: var(--dk-tint-2); }
.dk-tint-3 { background: var(--dk-tint-3); }

/* ---------- Header ---------- */
.dk-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid rgba(233, 232, 239, 0.6);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.dk-header-inner {
	max-width: 1152px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
}
.dk-logo {
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
	color: inherit;
}
.dk-logo span { color: var(--dk-primary); }

.dk-nav { display: flex; align-items: center; gap: 2rem; }
.dk-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dk-muted-foreground);
	text-decoration: none;
	transition: color 0.2s;
}
.dk-nav a:hover, .dk-nav a.current-menu-item, .dk-nav .current-menu-item > a { color: #1c1a2e; }

.dk-menu-toggle {
	display: none;
	background: none;
	border: 0;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.5rem;
}

@media (max-width: 767px) {
	.dk-menu-toggle { display: block; }
	.dk-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		background: #fff;
		border-bottom: 1px solid var(--dk-border);
		padding: 1.5rem;
	}
	.dk-nav.is-open { display: flex; }
	.dk-nav a { font-size: 1rem; color: #1c1a2e; }
}

/* ---------- Buttons ---------- */
.dk-btn-primary,
.wp-block-button.dk-btn-primary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	padding: 0.85rem 1.6rem;
	background: var(--dk-primary);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: var(--dk-shadow-soft);
	border: 0;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}
.dk-btn-primary:hover { transform: translateY(-2px); color: #fff; }

.dk-btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

.dk-btn-ghost,
.wp-block-button.dk-btn-ghost .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	padding: 0.85rem 1.6rem;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: opacity 0.2s;
}
.dk-btn-ghost:hover { opacity: 0.7; }

.dk-btn-light,
.wp-block-button.dk-btn-light .wp-block-button__link {
	display: inline-flex;
	border-radius: 999px;
	padding: 0.875rem 1.75rem;
	background: #fff;
	color: #1c1a2e !important;
	font-weight: 700;
	text-decoration: none;
	border: 0;
	transition: transform 0.2s;
}
.dk-btn-light:hover { transform: translateY(-2px); }

/* ---------- Cards ---------- */
.dk-card {
	border-radius: var(--dk-radius);
	padding: 2rem;
}
.dk-card-outline {
	border: 1px solid var(--dk-border);
	background: #fff;
	border-radius: var(--dk-radius);
	padding: 2rem;
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none;
	color: inherit;
	display: block;
}
a.dk-card-outline:hover { transform: translateY(-4px); box-shadow: var(--dk-shadow-soft); }

.dk-number-badge {
	display: inline-flex;
	height: 2.75rem;
	width: 2.75rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	background: var(--dk-gradient);
	color: #fff;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-weight: 700;
}

.dk-shadow-soft { box-shadow: var(--dk-shadow-soft); }

/* ---------- Hero ---------- */
.dk-hero-img {
	border-radius: 2rem;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	box-shadow: var(--dk-shadow-soft);
	outline: 8px solid var(--dk-muted);
}
.dk-hero-badge {
	position: absolute;
	bottom: -1.5rem;
	left: -1.5rem;
	background: #fff;
	border-radius: 1rem;
	padding: 1.25rem;
	box-shadow: var(--dk-shadow-soft);
}
.dk-hero-badge p { margin: 0; }
.dk-hero-badge .dk-badge-top { font-size: 0.75rem; color: var(--dk-muted-foreground); }
.dk-hero-badge .dk-badge-main {
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}

/* ---------- Services page ---------- */
.dk-service-row {
	display: grid;
	gap: 2rem;
	border-top: 1px solid var(--dk-border);
	padding: 4rem 0;
	scroll-margin-top: 6rem;
}
@media (min-width: 768px) {
	.dk-service-row { grid-template-columns: 1fr 1.4fr; }
}
.dk-service-number {
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-size: 3rem;
	font-weight: 800;
	background: var(--dk-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.dk-service-items {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	align-self: start;
}
@media (min-width: 640px) {
	.dk-service-items { grid-template-columns: 1fr 1fr; }
}
.dk-service-items li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border: 1px solid var(--dk-border);
	background: #fff;
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	font-weight: 500;
}
.dk-service-items li::before {
	content: "";
	height: 0.375rem;
	width: 0.375rem;
	border-radius: 999px;
	background: var(--dk-primary);
	flex-shrink: 0;
}

/* ---------- Contact card ---------- */
.dk-contact-card {
	border-radius: 1.5rem;
	border: 1px solid var(--dk-border);
	background: rgba(232, 230, 251, 0.5);
	padding: 1.75rem;
	box-shadow: var(--dk-shadow-soft);
}
.dk-contact-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.dk-contact-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid rgba(233, 232, 239, 0.7);
}
.dk-contact-list li:first-child { border-top: 0; padding-top: 0; }
.dk-contact-list li:last-child { padding-bottom: 0; }
.dk-contact-icon {
	display: grid;
	place-items: center;
	height: 2.75rem;
	width: 2.75rem;
	flex-shrink: 0;
	border-radius: 1rem;
	background: #fff;
	color: var(--dk-primary);
	box-shadow: 0 0 0 1px var(--dk-border);
}
.dk-contact-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--dk-muted-foreground);
}
.dk-contact-list a {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	text-underline-offset: 4px;
}
.dk-contact-list a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.dk-form-card {
	border-radius: 1.5rem;
	border: 1px solid var(--dk-border);
	background: #fff;
	padding: 2rem;
	box-shadow: var(--dk-shadow-soft);
}
@media (min-width: 768px) { .dk-form-card { padding: 2.5rem; } }
.dk-form { display: grid; gap: 1.25rem; }
.dk-form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .dk-form-row { grid-template-columns: 1fr 1fr; } }
.dk-field { display: grid; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.dk-field input,
.dk-field select,
.dk-field textarea {
	width: 100%;
	border-radius: calc(var(--dk-radius) - 2px);
	border: 1px solid #d9d7e3;
	background: #fff;
	padding: 0.75rem 1rem;
	font: inherit;
	font-size: 0.95rem;
	outline: none;
	box-sizing: border-box;
}
.dk-field input:focus,
.dk-field select:focus,
.dk-field textarea:focus {
	border-color: var(--dk-primary);
	box-shadow: 0 0 0 3px rgba(242, 98, 15, 0.15);
}
.dk-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.dk-privacy {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 0.85rem;
	align-items: start;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--dk-muted-foreground);
	margin-top: 0.25rem;
}

.dk-privacy input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--dk-primary);
	transform: translateY(0.22rem);
	flex-shrink: 0;
	cursor: pointer;
}

.dk-privacy span {
	display: block;
}

.dk-privacy a {
	color: var(--dk-foreground);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dk-privacy a:hover {
	color: var(--dk-primary);
}
.dk-form-message { font-size: 0.875rem; margin: 0; }
.dk-form-error { color: #d63638; }
.dk-form-success { text-align: center; padding: 4rem 0; }

/* ---------- Layout helpers ---------- */
.dk-wrap { max-width: 1152px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.dk-grid-2, .dk-grid-3, .dk-grid-4 { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
    .dk-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }

    .dk-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 640px) { .dk-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .dk-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.dk-section { padding-top: 5rem; padding-bottom: 5rem; }
.dk-section-lg { padding-top: 6rem; padding-bottom: 6rem; }

/* ---------- CTA band ---------- */
.dk-cta {
	border-radius: 1.5rem;
	background: var(--dk-gradient);
	color: #fff;
	text-align: center;
	padding: 4rem 2rem;
}
@media (min-width: 768px) { .dk-cta { padding: 4rem; } }
.dk-cta h2 { color: #fff; margin: 0; }
.dk-cta p { max-width: 36rem; margin: 1rem auto 0; opacity: 0.85; }

/* ---------- Footer ---------- */
.dk-footer { background: var(--dk-ink); color: var(--dk-ink-foreground); }
.dk-footer a { color: inherit; text-decoration: none; }
.dk-footer a:hover { opacity: 0.7; }
.dk-footer .dk-footer-brand {
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}
.dk-footer nav a { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; opacity: 0.8; }

/* ---------- Misc ---------- */
.dk-muted-text { color: var(--dk-muted-foreground); }
.dk-lead { font-size: 1.25rem; font-weight: 500; }
.dk-pillar-dot { color: var(--dk-primary); }

/* Footer year handled inline; headings margins reset inside sections */
.dk-cta .wp-block-button { margin-top: 2rem; }


/* Homepage hero - fix WordPress width and image proportions */

/* Override WordPress default content width */
.wp-block-group.dk-wrap {
    max-width: 1152px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Desktop hero layout */
@media (min-width: 1024px) {

    .wp-block-group.dk-wrap {
        max-width: 1152px;
    }

    .dk-grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    
	.dk-hero-img {
		width: 100%;
		height: 600px;
		max-height: none;
		aspect-ratio: auto;
		object-fit: cover;
		object-position: center;
		display: block;
	}

}



/* ===== REFINED AGENCY FOOTER ===== */

.dk-footer {
  background: #0b0d16;
  color: #ffffff;
}

.dk-footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 32px 28px;
  box-sizing: border-box;
}

.dk-footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.dk-footer-company h3 {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.dk-footer-company p {
  color: #a8a8b3;
  margin: 0;
}

.dk-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.dk-footer .dk-footer-links a {
  color: #c4c4ce;
  text-decoration: none;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dk-footer-contact h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 14px;
}

.dk-footer-contact p {
  color: #a8a8b3;
  margin: 0 0 22px;
  font-size: 0.95rem;
}

.dk-footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-footer-contact-details a {
  color: #c4c4ce;
  text-decoration: none;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.dk-footer-bottom {
  border-top: 1px solid #30303b;
  margin-top: 60px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.dk-footer-bottom p,
.dk-footer-bottom a {
  color: #92929e;
  font-size: 0.85rem;
  margin: 0;
}

.dk-footer a:hover {
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 767px) {
  .dk-footer-container {
    padding: 48px 24px 24px;
  }

  .dk-footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .dk-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
  }
}

.dk-form-card {
	max-width: 100%;
}

.dk-form .dk-btn-primary {
	margin-top: 0.25rem;
}


/* =======================================
   DELFINA KOZIK - RESPONSIVE LAYOUT FIX
   ======================================= */

/* Universal sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

img, video, svg {
    max-width: 100%;
}

/* WordPress layout containers */
.dk-wrap,
.wp-block-group.dk-wrap {
    width: 100%;
    max-width: 1152px;
    min-width: 0;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

/* Prevent grid children from forcing overflow */
.dk-grid-2,
.dk-grid-3,
.dk-grid-4 {
    min-width: 0;
}

.dk-grid-2 > *,
.dk-grid-3 > *,
.dk-grid-4 > * {
    min-width: 0;
}

/* Tablet and smaller */
@media (max-width: 1023px) {

    .dk-header-inner {
        width: 100%;
        max-width: 100%;
        padding: 16px 24px;
    }

    .dk-hero-img {
        max-height: none;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }
}

/* Mobile */
@media (max-width: 767px) {

    /* Main content */
    .dk-wrap,
    .wp-block-group.dk-wrap,
    .dk-home-main > .dk-wrap,
    .dk-home-main > .wp-block-group {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 20px;
        padding-right: 20px;
        margin-inline: auto;
    }

    /* All major grids become one column */
    .dk-grid-2,
    .dk-grid-3,
    .dk-grid-4,
    .dk-contact-grid,
    .dk-service-row,
    .dk-form-row,
    .dk-service-items {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 24px;
    }

    /* Hero heading */
    .dk-grid-2 h1 {
        font-size: clamp(2.75rem, 12vw, 4rem) !important;
        line-height: 1.05 !important;
        max-width: 100%;
    }

    /* Text fits available width */
    .dk-grid-2 p,
    .dk-lead,
    .dk-muted-text {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .dk-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        line-height: 1.6;
    }

    /* Hero image */
    .dk-hero-img {
        width: 100%;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        display: block;
        border-radius: 20px;
        outline-width: 4px;
    }

    .dk-hero-badge {
        left: 12px;
        bottom: -16px;
        padding: 12px 16px;
        max-width: calc(100% - 24px);
    }

    /* Service cards */
    .dk-card,
    .dk-card-outline,
    .dk-contact-card {
        width: 100%;
        max-width: 100%;
        padding: 24px;
    }

    /* Contact form */
    .dk-form-card {
        width: 100%;
        padding: 24px 18px;
    }

    .dk-field,
    .dk-field input,
    .dk-field select,
    .dk-field textarea {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* Buttons */
    .dk-btn-primary,
    .dk-btn-ghost {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }

    /* Footer */
    .dk-footer-top,
    .dk-footer .dk-grid-3 {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 36px;
    }

    .dk-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Very small phones */
@media (max-width: 380px) {

    .dk-header-inner {
        padding-inline: 16px;
    }

    .dk-wrap,
    .wp-block-group.dk-wrap {
        padding-inline: 16px;
    }

    .dk-grid-2 h1 {
        font-size: 2.75rem !important;
    }

    .dk-btn-primary,
    .dk-btn-ghost {
        font-size: 0.85rem;
        padding: 12px 18px;
    }
}
