.contact-section {
position: relative;
isolation: isolate;
overflow: hidden;
padding: 88px 24px;
color: #302a30;
background: #fffafc;
font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
.contact-section::before {
position: absolute;
inset: 18px;
z-index: -1;
border: 1px solid rgba(157, 98, 124, 0.12);
border-radius: 28px;
content: "";
pointer-events: none;
}
.contact-container {
position: relative;
z-index: 1;
width: min(1050px, 100%);
margin: 0 auto;
}
.contact-heading {
max-width: 700px;
margin: 0 auto 42px;
text-align: center;
animation: contactReveal 0.75s ease both;
}
.contact-label {
display: inline-block;
margin-bottom: 14px;
color: #946079;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.2em;
}
.contact-heading h2 {
margin: 0;
color: #302a30;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(2.15rem, 5vw, 3.45rem);
font-weight: 600;
line-height: 1.1;
}
.heading-line {
display: block;
width: 54px;
height: 2px;
margin: 19px auto 18px;
background: #946079;
border-radius: 99px;
}
.contact-heading p {
max-width: 620px;
margin: 0 auto;
color: #70666f;
font-size: 1rem;
line-height: 1.8;
}
.contact-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
align-items: stretch;
}
.contact-card {
position: relative;
min-height: 188px;
padding: 27px;
overflow: hidden;
background: rgba(255, 255, 255, 0.92);
border: 1px solid #ead6df;
border-radius: 20px;
box-shadow: 0 8px 24px rgba(73, 45, 59, 0.06);
animation: contactReveal 0.75s ease both;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card::after {
position: absolute;
right: -30px;
bottom: -42px;
width: 120px;
height: 120px;
border: 1px solid rgba(148, 96, 121, 0.12);
border-radius: 50%;
content: "";
transition: transform 0.4s ease;
}
.contact-card:hover {
transform: translateY(-7px);
border-color: #b8839b;
box-shadow: 0 18px 34px rgba(73, 45, 59, 0.13);
}
.contact-card:hover::after {
transform: scale(1.35) rotate(12deg);
}
.contact-card-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 21px;
}
.contact-icon {
display: grid;
width: 46px;
height: 46px;
place-items: center;
color: #ffffff;
background: #946079;
border-radius: 14px;
box-shadow: 0 7px 15px rgba(148, 96, 121, 0.24);
transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-icon svg {
width: 22px;
height: 22px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.6;
}
.contact-card:hover .contact-icon {
background: #6e4056;
transform: rotate(-6deg) scale(1.08);
}
.contact-card-number {
color: #bfa5b1;
font-family: Georgia, "Times New Roman", serif;
font-size: 0.86rem;
font-weight: 600;
}
.contact-card h3 {
position: relative;
z-index: 1;
margin: 0 0 8px;
color: #382f36;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.2rem;
}
.contact-card p,
.contact-card address {
position: relative;
z-index: 1;
margin: 0;
color: #6f6570;
font-size: 0.96rem;
font-style: normal;
line-height: 1.7;
}
.contact-card a {
color: #80516a;
font-weight: 700;
text-decoration: none;
transition: color 0.25s ease;
}
.contact-card a:hover,
.contact-card a:focus-visible {
color: #4f2d40;
text-decoration: underline;
text-underline-offset: 3px;
}
.contact-caption {
display: block;
position: relative;
z-index: 1;
margin-top: 8px;
color: #9a8b96;
font-size: 0.78rem;
}
.contact-card-wide {
grid-column: auto;
min-height: 188px;
}
.address-link {
display: inline-flex;
position: relative;
z-index: 1;
gap: 8px;
margin-top: 14px;
font-size: 0.88rem;
}
.address-link span {
transition: transform 0.25s ease;
}
.address-link:hover span {
transform: translateX(4px);
}
.contact-note {
display: flex;
align-items: center;
gap: 13px;
max-width: 760px;
margin: 28px auto 0;
padding: 17px 21px;
color: #665b64;
background: #fdf1f6;
border-left: 4px solid #946079;
border-radius: 13px;
animation: contactReveal 0.9s ease both;
}
.contact-note p {
margin: 0;
font-size: 0.9rem;
line-height: 1.65;
}
.note-mark {
flex: 0 0 auto;
color: #946079;
font-size: 1.2rem;
}
.contact-orbit {
position: absolute;
z-index: -1;
width: 180px;
height: 180px;
border: 1px solid rgba(148, 96, 121, 0.12);
border-radius: 50%;
pointer-events: none;
}
.contact-orbit-one {
top: -90px;
left: -55px;
animation: contactOrbit 7s ease-in-out infinite;
}
.contact-orbit-two {
right: -68px;
bottom: -95px;
animation: contactOrbitReverse 8s ease-in-out infinite;
}
@keyframes contactReveal {
from {
opacity: 0;
transform: translateY(18px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes contactOrbit {
0%, 100% { transform: translate(0) rotate(0); }
50% { transform: translate(18px, 12px) rotate(8deg); }
}
@keyframes contactOrbitReverse {
0%, 100% { transform: translate(0) rotate(0); }
50% { transform: translate(-18px, -12px) rotate(-8deg); }
}
@media (max-width: 700px) {
.contact-section {
padding: 62px 17px;
}
.contact-section::before {
inset: 9px;
border-radius: 20px;
}
.contact-grid {
grid-template-columns: 1fr;
}
.contact-card-wide {
grid-column: auto;
}
}
@media (max-width: 480px) {
.contact-section {
padding: 48px 12px;
}
.contact-card {
min-height: 0;
padding: 22px;
}
.contact-card h3 {
font-size: 1.08rem;
}
.contact-card p,
.contact-card address {
font-size: 0.92rem;
}
.contact-note {
align-items: flex-start;
padding: 15px 17px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
document.querySelectorAll('.contact-card a').forEach(function (link) {
link.addEventListener('click', function () {
link.classList.add('contact-link-used');
});
});